diff --git a/.gitignore b/.gitignore index decc337..a66883e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .bundle/ log/*.log pkg/ -spec/dummy/db/*.sqlite3 -spec/dummy/log/*.log -spec/dummy/tmp/ +spec/dummy.*/db/*.sqlite3 +spec/dummy.*/log/*.log +spec/dummy.*/tmp/ diff --git a/.travis.yml b/.travis.yml index b7400b1..7a4d1fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,10 @@ language: ruby rvm: - - 1.9.3 - - 2.0.0 - - 2.1.0 - - rbx-2 + - 2.7.7 + - 3.0.4 +matrix: + include: + - gemfile: gemfiles/rails_6.gemfile + rvm: 2.7.7 + - gemfile: gemfiles/rails_7.gemfile + rvm: 3.0.4 diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..ec8c598 --- /dev/null +++ b/Appraisals @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +appraise 'rails-6' do + gem 'rails', '>= 6', '< 7' +end + +appraise 'rails-7' do + gem 'rails', '>= 7' +end diff --git a/Gemfile.lock b/Gemfile.lock index 1a71cad..0a0e6e0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,112 +1,200 @@ PATH remote: . specs: - multi_site (0.0.1) + multi_site (0.1.2) rails (>= 4.0) - request_store (~> 1.1.0) + request_store (>= 1.0) GEM remote: https://rubygems.org/ specs: - actionmailer (4.0.2) - actionpack (= 4.0.2) - mail (~> 2.5.4) - actionpack (4.0.2) - activesupport (= 4.0.2) - builder (~> 3.1.0) - erubis (~> 2.7.0) - rack (~> 1.5.2) - rack-test (~> 0.6.2) - activemodel (4.0.2) - activesupport (= 4.0.2) - builder (~> 3.1.0) - activerecord (4.0.2) - activemodel (= 4.0.2) - activerecord-deprecated_finders (~> 1.0.2) - activesupport (= 4.0.2) - arel (~> 4.0.0) - activerecord-deprecated_finders (1.0.3) - activesupport (4.0.2) - i18n (~> 0.6, >= 0.6.4) - minitest (~> 4.2) - multi_json (~> 1.3) - thread_safe (~> 0.1) - tzinfo (~> 0.3.37) - arel (4.0.2) - atomic (1.1.14) - builder (3.1.4) - database_cleaner (1.2.0) - diff-lcs (1.2.5) - erubis (2.7.0) - factory_girl (4.3.0) - activesupport (>= 3.0.0) - faker (1.2.0) - i18n (~> 0.5) - hike (1.2.3) - i18n (0.6.9) - mail (2.5.4) - mime-types (~> 1.16) - treetop (~> 1.4.8) - mime-types (1.25.1) - minitest (4.7.5) - multi_json (1.8.4) - polyglot (0.3.5) - rack (1.5.2) - rack-test (0.6.2) - rack (>= 1.0) - rails (4.0.2) - actionmailer (= 4.0.2) - actionpack (= 4.0.2) - activerecord (= 4.0.2) - activesupport (= 4.0.2) - bundler (>= 1.3.0, < 2.0) - railties (= 4.0.2) - sprockets-rails (~> 2.0.0) - railties (4.0.2) - actionpack (= 4.0.2) - activesupport (= 4.0.2) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (10.1.1) - request_store (1.1.0) - rspec-core (2.14.7) - rspec-expectations (2.14.4) - diff-lcs (>= 1.1.3, < 2.0) - rspec-mocks (2.14.4) - rspec-rails (2.14.1) - actionpack (>= 3.0) - activemodel (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 2.14.0) - rspec-expectations (~> 2.14.0) - rspec-mocks (~> 2.14.0) - sprockets (2.12.3) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.0.1) - actionpack (>= 3.0) - activesupport (>= 3.0) - sprockets (~> 2.8) - sqlite3 (1.3.8) - thor (0.18.1) - thread_safe (0.1.3) - atomic - tilt (1.4.1) - treetop (1.4.15) - polyglot - polyglot (>= 0.3.1) - tzinfo (0.3.38) + actioncable (7.0.4.2) + actionpack (= 7.0.4.2) + activesupport (= 7.0.4.2) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (7.0.4.2) + actionpack (= 7.0.4.2) + activejob (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.0.4.2) + actionpack (= 7.0.4.2) + actionview (= 7.0.4.2) + activejob (= 7.0.4.2) + activesupport (= 7.0.4.2) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.0) + actionpack (7.0.4.2) + actionview (= 7.0.4.2) + activesupport (= 7.0.4.2) + rack (~> 2.0, >= 2.2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (7.0.4.2) + actionpack (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.0.4.2) + activesupport (= 7.0.4.2) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (7.0.4.2) + activesupport (= 7.0.4.2) + globalid (>= 0.3.6) + activemodel (7.0.4.2) + activesupport (= 7.0.4.2) + activerecord (7.0.4.2) + activemodel (= 7.0.4.2) + activesupport (= 7.0.4.2) + activestorage (7.0.4.2) + actionpack (= 7.0.4.2) + activejob (= 7.0.4.2) + activerecord (= 7.0.4.2) + activesupport (= 7.0.4.2) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (7.0.4.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + builder (3.2.4) + concurrent-ruby (1.2.0) + crass (1.0.6) + database_cleaner (2.0.1) + database_cleaner-active_record (~> 2.0.0) + database_cleaner-active_record (2.0.1) + activerecord (>= 5.a) + database_cleaner-core (~> 2.0.0) + database_cleaner-core (2.0.1) + date (3.3.3) + diff-lcs (1.5.0) + erubi (1.12.0) + factory_bot (6.2.1) + activesupport (>= 5.0.0) + factory_bot_rails (6.2.0) + factory_bot (~> 6.2.0) + railties (>= 5.0.0) + faker (3.1.0) + i18n (>= 1.8.11, < 2) + globalid (1.1.0) + activesupport (>= 5.0) + i18n (1.12.0) + concurrent-ruby (~> 1.0) + loofah (2.19.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.8.0.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.17.0) + net-imap (0.3.4) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) + timeout + net-smtp (0.3.3) + net-protocol + nio4r (2.5.8) + nokogiri (1.14.1-x86_64-darwin) + racc (~> 1.4) + racc (1.6.2) + rack (2.2.6.2) + rack-test (2.0.2) + rack (>= 1.3) + rails (7.0.4.2) + actioncable (= 7.0.4.2) + actionmailbox (= 7.0.4.2) + actionmailer (= 7.0.4.2) + actionpack (= 7.0.4.2) + actiontext (= 7.0.4.2) + actionview (= 7.0.4.2) + activejob (= 7.0.4.2) + activemodel (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + bundler (>= 1.15.0) + railties (= 7.0.4.2) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) + railties (7.0.4.2) + actionpack (= 7.0.4.2) + activesupport (= 7.0.4.2) + method_source + rake (>= 12.2) + thor (~> 1.0) + zeitwerk (~> 2.5) + rake (13.0.6) + request_store (1.5.1) + rack (>= 1.4) + rspec-core (3.12.0) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.0.1) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.11) + rspec-expectations (~> 3.11) + rspec-mocks (~> 3.11) + rspec-support (~> 3.11) + rspec-support (3.12.0) + sqlite3 (1.6.0-x86_64-darwin) + thor (1.2.1) + timeout (0.3.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.6) PLATFORMS - ruby + x86_64-darwin-21 DEPENDENCIES + appraisal database_cleaner - factory_girl + factory_bot_rails faker multi_site! rspec-rails sqlite3 + +BUNDLED WITH + 2.4.5 diff --git a/README.md b/README.md index 551fdeb..611e7b0 100644 --- a/README.md +++ b/README.md @@ -96,14 +96,14 @@ context and give us the current site selected by the application. #### Security MultiSite doesn't provide any security features. You have the responsability to implement them. For example, to guarantee that a user doesn't have access to unauthorized tenants, you can -create a before_filter action that checks if the user's site is the same as +create a before_action action that checks if the user's site is the same as current_site: ```ruby class UsersController < ApplicationController - before_filter :check_site_access + before_action :check_site_access #... def check_site_access unless current_user.site == current_site @@ -118,16 +118,18 @@ end You'll surely need cross site operations. We can get you there providing a macro that allows site switching: ```ruby -class Admin::AdminController < ApplicationController - cross_site_controller +module Admin + class AdminController < ApplicationController + cross_site_controller - def show - @admin_site = current_site - end + def show + @admin_site = current_site + end - def switch_site - self.current_site = Site.find(params[:site_id]) - redirect_to admin_admin_url, notice: "Switched to: #{current_site.url}" + def switch_site + self.current_site = Site.find(params[:site_id]) + redirect_to admin_admin_url, notice: "Switched to: #{current_site.url}" + end end end ``` @@ -159,7 +161,6 @@ Thread.new { # RoadMap - make the site model name customizable - make the param name entry customizable -- add specs for Rails 3+. Only Rails 4+ are provided at the moment # License Copyright © 2013 [Runtime Revolution](http://www.runtime-revolution.com), released under the MIT license. diff --git a/Rakefile b/Rakefile index 77dbc66..2e2d81a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,10 @@ +# frozen_string_literal: true + require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) -task :test => :spec -task :default => :spec \ No newline at end of file +task test: :spec +task default: 'matrix:spec' diff --git a/gemfiles/rails_6.gemfile b/gemfiles/rails_6.gemfile new file mode 100644 index 0000000..5e41258 --- /dev/null +++ b/gemfiles/rails_6.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", ">= 6", "< 7" + +gemspec path: "../" diff --git a/gemfiles/rails_6.gemfile.lock b/gemfiles/rails_6.gemfile.lock new file mode 100644 index 0000000..6ceaeba --- /dev/null +++ b/gemfiles/rails_6.gemfile.lock @@ -0,0 +1,209 @@ +PATH + remote: .. + specs: + multi_site (0.1.2) + rails (>= 4.0) + request_store (>= 1.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.1.7.2) + actionpack (= 6.1.7.2) + activesupport (= 6.1.7.2) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.1.7.2) + actionpack (= 6.1.7.2) + activejob (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) + mail (>= 2.7.1) + actionmailer (6.1.7.2) + actionpack (= 6.1.7.2) + actionview (= 6.1.7.2) + activejob (= 6.1.7.2) + activesupport (= 6.1.7.2) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.1.7.2) + actionview (= 6.1.7.2) + activesupport (= 6.1.7.2) + rack (~> 2.0, >= 2.0.9) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.1.7.2) + actionpack (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) + nokogiri (>= 1.8.5) + actionview (6.1.7.2) + activesupport (= 6.1.7.2) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (6.1.7.2) + activesupport (= 6.1.7.2) + globalid (>= 0.3.6) + activemodel (6.1.7.2) + activesupport (= 6.1.7.2) + activerecord (6.1.7.2) + activemodel (= 6.1.7.2) + activesupport (= 6.1.7.2) + activestorage (6.1.7.2) + actionpack (= 6.1.7.2) + activejob (= 6.1.7.2) + activerecord (= 6.1.7.2) + activesupport (= 6.1.7.2) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (6.1.7.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + builder (3.2.4) + concurrent-ruby (1.2.0) + crass (1.0.6) + database_cleaner (2.0.1) + database_cleaner-active_record (~> 2.0.0) + database_cleaner-active_record (2.0.1) + activerecord (>= 5.a) + database_cleaner-core (~> 2.0.0) + database_cleaner-core (2.0.1) + date (3.3.3) + diff-lcs (1.5.0) + erubi (1.12.0) + factory_bot (6.2.1) + activesupport (>= 5.0.0) + factory_bot_rails (6.2.0) + factory_bot (~> 6.2.0) + railties (>= 5.0.0) + faker (3.1.0) + i18n (>= 1.8.11, < 2) + globalid (1.1.0) + activesupport (>= 5.0) + i18n (1.12.0) + concurrent-ruby (~> 1.0) + loofah (2.19.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + method_source (1.0.0) + mini_mime (1.1.2) + mini_portile2 (2.8.1) + minitest (5.17.0) + net-imap (0.3.4) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) + timeout + net-smtp (0.3.3) + net-protocol + nio4r (2.5.8) + nokogiri (1.14.1) + mini_portile2 (~> 2.8.0) + racc (~> 1.4) + nokogiri (1.14.1-x86_64-darwin) + racc (~> 1.4) + racc (1.6.2) + rack (2.2.6.2) + rack-test (2.0.2) + rack (>= 1.3) + rails (6.1.7.2) + actioncable (= 6.1.7.2) + actionmailbox (= 6.1.7.2) + actionmailer (= 6.1.7.2) + actionpack (= 6.1.7.2) + actiontext (= 6.1.7.2) + actionview (= 6.1.7.2) + activejob (= 6.1.7.2) + activemodel (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) + bundler (>= 1.15.0) + railties (= 6.1.7.2) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) + railties (6.1.7.2) + actionpack (= 6.1.7.2) + activesupport (= 6.1.7.2) + method_source + rake (>= 12.2) + thor (~> 1.0) + rake (13.0.6) + request_store (1.5.1) + rack (>= 1.4) + rspec-core (3.12.1) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.0.1) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.11) + rspec-expectations (~> 3.11) + rspec-mocks (~> 3.11) + rspec-support (~> 3.11) + rspec-support (3.12.0) + sprockets (4.2.0) + concurrent-ruby (~> 1.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.6.0) + mini_portile2 (~> 2.8.0) + sqlite3 (1.6.0-x86_64-darwin) + thor (1.2.1) + timeout (0.3.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.6) + +PLATFORMS + ruby + x86_64-darwin-21 + +DEPENDENCIES + appraisal + database_cleaner + factory_bot_rails + faker + multi_site! + rails (>= 6, < 7) + rspec-rails + sqlite3 + +BUNDLED WITH + 2.4.5 diff --git a/gemfiles/rails_7.gemfile b/gemfiles/rails_7.gemfile new file mode 100644 index 0000000..4e57ffe --- /dev/null +++ b/gemfiles/rails_7.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", ">= 7" + +gemspec path: "../" diff --git a/gemfiles/rails_7.gemfile.lock b/gemfiles/rails_7.gemfile.lock new file mode 100644 index 0000000..09062f2 --- /dev/null +++ b/gemfiles/rails_7.gemfile.lock @@ -0,0 +1,201 @@ +PATH + remote: .. + specs: + multi_site (0.1.2) + rails (>= 4.0) + request_store (>= 1.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.0.4.2) + actionpack (= 7.0.4.2) + activesupport (= 7.0.4.2) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (7.0.4.2) + actionpack (= 7.0.4.2) + activejob (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.0.4.2) + actionpack (= 7.0.4.2) + actionview (= 7.0.4.2) + activejob (= 7.0.4.2) + activesupport (= 7.0.4.2) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.0) + actionpack (7.0.4.2) + actionview (= 7.0.4.2) + activesupport (= 7.0.4.2) + rack (~> 2.0, >= 2.2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (7.0.4.2) + actionpack (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.0.4.2) + activesupport (= 7.0.4.2) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (7.0.4.2) + activesupport (= 7.0.4.2) + globalid (>= 0.3.6) + activemodel (7.0.4.2) + activesupport (= 7.0.4.2) + activerecord (7.0.4.2) + activemodel (= 7.0.4.2) + activesupport (= 7.0.4.2) + activestorage (7.0.4.2) + actionpack (= 7.0.4.2) + activejob (= 7.0.4.2) + activerecord (= 7.0.4.2) + activesupport (= 7.0.4.2) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (7.0.4.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + builder (3.2.4) + concurrent-ruby (1.2.0) + crass (1.0.6) + database_cleaner (2.0.1) + database_cleaner-active_record (~> 2.0.0) + database_cleaner-active_record (2.0.1) + activerecord (>= 5.a) + database_cleaner-core (~> 2.0.0) + database_cleaner-core (2.0.1) + date (3.3.3) + diff-lcs (1.5.0) + erubi (1.12.0) + factory_bot (6.2.1) + activesupport (>= 5.0.0) + factory_bot_rails (6.2.0) + factory_bot (~> 6.2.0) + railties (>= 5.0.0) + faker (3.1.0) + i18n (>= 1.8.11, < 2) + globalid (1.1.0) + activesupport (>= 5.0) + i18n (1.12.0) + concurrent-ruby (~> 1.0) + loofah (2.19.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.17.0) + net-imap (0.3.4) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) + timeout + net-smtp (0.3.3) + net-protocol + nio4r (2.5.8) + nokogiri (1.14.1-x86_64-darwin) + racc (~> 1.4) + racc (1.6.2) + rack (2.2.6.2) + rack-test (2.0.2) + rack (>= 1.3) + rails (7.0.4.2) + actioncable (= 7.0.4.2) + actionmailbox (= 7.0.4.2) + actionmailer (= 7.0.4.2) + actionpack (= 7.0.4.2) + actiontext (= 7.0.4.2) + actionview (= 7.0.4.2) + activejob (= 7.0.4.2) + activemodel (= 7.0.4.2) + activerecord (= 7.0.4.2) + activestorage (= 7.0.4.2) + activesupport (= 7.0.4.2) + bundler (>= 1.15.0) + railties (= 7.0.4.2) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) + railties (7.0.4.2) + actionpack (= 7.0.4.2) + activesupport (= 7.0.4.2) + method_source + rake (>= 12.2) + thor (~> 1.0) + zeitwerk (~> 2.5) + rake (13.0.6) + request_store (1.5.1) + rack (>= 1.4) + rspec-core (3.12.1) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.0.1) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.11) + rspec-expectations (~> 3.11) + rspec-mocks (~> 3.11) + rspec-support (~> 3.11) + rspec-support (3.12.0) + sqlite3 (1.6.0-x86_64-darwin) + thor (1.2.1) + timeout (0.3.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.6) + +PLATFORMS + x86_64-darwin-21 + +DEPENDENCIES + appraisal + database_cleaner + factory_bot_rails + faker + multi_site! + rails (>= 7) + rspec-rails + sqlite3 + +BUNDLED WITH + 2.4.5 diff --git a/lib/multi_site.rb b/lib/multi_site.rb index c4add5e..468af98 100644 --- a/lib/multi_site.rb +++ b/lib/multi_site.rb @@ -1,15 +1,17 @@ -require "active_record" -require "action_controller" -require "active_model" -require "multi_site/version" +# frozen_string_literal: true + +require 'active_record' +require 'action_controller' +require 'active_model' +require 'multi_site/version' require 'multi_site/rails/routes' -require "multi_site/active_record.rb" -require "multi_site/action_controller.rb" -require "multi_site/supra/action_controller.rb" -require "request_store" +require 'multi_site/active_record' +require 'multi_site/action_controller' +require 'multi_site/supra/action_controller' +require 'request_store' if defined?(ActiveRecord::Base) - ActiveRecord::Base.send(:include, MultiSite::ActiveRecord) - ActionController::Base.send(:include, MultiSite::ActionController) - ActionController::Base.extend(MultiSite::Supra::ActionController::Macro) + ActiveRecord::Base.include MultiSite::ActiveRecord + ActionController::Base.include MultiSite::ActionController + ActionController::Base.extend MultiSite::Supra::ActionController::Macro end diff --git a/lib/multi_site/action_controller.rb b/lib/multi_site/action_controller.rb index 6e6c7ab..247969a 100644 --- a/lib/multi_site/action_controller.rb +++ b/lib/multi_site/action_controller.rb @@ -1,10 +1,16 @@ +# frozen_string_literal: true + module MultiSite - #Controller mixin for multi-site management + # Controller mixin for multi-site management module ActionController extend ActiveSupport::Concern included do - prepend_before_filter :find_current_site + if Rails.version.to_i > 4 + prepend_before_action :find_current_site + else + prepend_before_filter :find_current_site + end helper_method :current_site, :in_site? end @@ -21,11 +27,7 @@ def in_site? end def find_current_site - if params[:multi_site].blank? - MultiSite.current_site = nil - else - MultiSite.current_site = Site.where(:url => params[:multi_site]).first - end + MultiSite.current_site = params[:multi_site].blank? ? nil : Site.where(url: params[:multi_site]).first end end end diff --git a/lib/multi_site/active_record.rb b/lib/multi_site/active_record.rb index 97b9975..7cb02da 100644 --- a/lib/multi_site/active_record.rb +++ b/lib/multi_site/active_record.rb @@ -1,3 +1,6 @@ +# frozen_string_literal: true + +# Module MultiSite module MultiSite class << self def current_site=(site) @@ -13,9 +16,11 @@ def current_site_id end end + # Module ActiveRecord module ActiveRecord extend ActiveSupport::Concern + # Module ClassMethods module ClassMethods def has_site_scope def self.is_scoped_by_site? @@ -23,14 +28,14 @@ def self.is_scoped_by_site? end validates :site, presence: true - scope :on_site, -> { where(:site_id => MultiSite.current_site_id) } - scope :for_site, ->(site) { where(:site_id => site.try(:id)) } - belongs_to :site, class_name: "Site" + scope :on_site, -> { where(site_id: MultiSite.current_site_id) } + scope :for_site, ->(site) { where(site_id: site.try(:id)) } + belongs_to :site, class_name: 'Site' - before_validation -> { self.site ||= MultiSite.current_site }, :on => :create + before_validation -> { self.site ||= MultiSite.current_site }, on: :create end - def is_scoped_by_site? + def is_scoped_by_site? # rubocop:disable Naming/PredicateName false end end diff --git a/lib/multi_site/rails/routes.rb b/lib/multi_site/rails/routes.rb index 585b366..f62a35e 100644 --- a/lib/multi_site/rails/routes.rb +++ b/lib/multi_site/rails/routes.rb @@ -1,24 +1,30 @@ -module ActionDispatch::Routing - class Mapper - def multi_site_scope(&block) - scope ':multi_site', as:'site', :constraints => MultiSite::MultiSiteConstraints.new do - block.call +# frozen_string_literal: true + +module ActionDispatch + module Routing + # Class Mapper + class Mapper + def multi_site_scope(&block) + scope ':multi_site', as: 'site', constraints: MultiSite::MultiSiteConstraints.new do + block.call + end end end end end module MultiSite + # Class MultiSiteConstraints class MultiSiteConstraints def matches?(request) - #TODO: This is not a definitive solution. Devise principal class is configurable, - #so we can't be sure if the the routes will start with users/... - #Devise settings must be read to know the principal's name - return true if defined?(Devise) and [ 'devise/sessions', - 'users/registrations', - 'users/passwords' ].include?(request.path_parameters[:controller]) + # TODO: This is not a definitive solution. Devise principal class is configurable, + # so we can't be sure if the the routes will start with users/... + # Devise settings must be read to know the principal's name + return true if defined?(Devise) && ['devise/sessions', + 'users/registrations', + 'users/passwords'].include?(request.path_parameters[:controller]) - Site.exists?(:url => request.path_parameters[:multi_site]) + Site.exists?(url: request.path_parameters[:multi_site]) end end end diff --git a/lib/multi_site/supra/action_controller.rb b/lib/multi_site/supra/action_controller.rb index afc1087..aed56bb 100644 --- a/lib/multi_site/supra/action_controller.rb +++ b/lib/multi_site/supra/action_controller.rb @@ -1,4 +1,7 @@ +# frozen_string_literal: true + module MultiSite + # Module Supra module Supra mattr_reader :default_site # accessor to declare the default site @@ -37,6 +40,7 @@ def current_site module ActionController extend ActiveSupport::Concern + # Module Macro module Macro # The class macro to declare a supra site controller def cross_site_controller @@ -45,7 +49,11 @@ def cross_site_controller end included do - prepend_before_filter :set_current_site + if Rails.version.to_i > 4 + prepend_before_action :set_current_site + else + prepend_before_filter :set_current_site + end helper_method :current_site end @@ -65,6 +73,7 @@ def set_current_site end private + def self.find_site(site) case site when String, Integer @@ -74,4 +83,4 @@ def self.find_site(site) end end end -end \ No newline at end of file +end diff --git a/lib/multi_site/version.rb b/lib/multi_site/version.rb index 472f4aa..48ce7c6 100644 --- a/lib/multi_site/version.rb +++ b/lib/multi_site/version.rb @@ -1,3 +1,3 @@ module MultiSite - VERSION = "0.0.2" + VERSION = "0.1.2" end diff --git a/multi_site.gemspec b/multi_site.gemspec index 0d617f5..a91c2ee 100644 --- a/multi_site.gemspec +++ b/multi_site.gemspec @@ -1,24 +1,28 @@ -# -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "multi_site/version" +# frozen_string_literal: true + +$LOAD_PATH.push File.expand_path('lib', __dir__) + +require 'multi_site/version' Gem::Specification.new do |s| - s.name = "multi_site" + s.name = 'multi_site' s.version = MultiSite::VERSION - s.description = %q{Add multi-site integration into Rails applications using a shared db strategy} - s.summary = %q{Add multi-site integration into Rails applications using a shared db strategy} - s.authors = ["Runtime Revolution"] - s.files = Dir["{lib}/**/*"] - s.require_paths = %w(lib) - s.test_files = Dir.glob("spec/**/*") + s.description = 'Add multi-site integration into Rails applications using a shared db strategy' + s.summary = 'Add multi-site integration into Rails applications using a shared db strategy' + s.authors = ['Runtime Revolution'] + s.files = Dir['{lib}/**/*'] + s.require_paths = %w[lib] + s.test_files = Dir.glob('spec/**/*') + s.required_ruby_version = '>= 2.0' # rubocop:disable Gemspec/RequiredRubyVersion # dependencies s.add_dependency('rails', '>= 4.0') s.add_dependency('request_store', '>= 1.0') + s.add_development_dependency('appraisal') + s.add_development_dependency('database_cleaner') + s.add_development_dependency('factory_bot_rails') + s.add_development_dependency('faker') s.add_development_dependency('rspec-rails') - s.add_development_dependency('factory_girl') s.add_development_dependency('sqlite3') - s.add_development_dependency('faker') - s.add_development_dependency('database_cleaner') end diff --git a/spec/controllers/admin/supra_site_controller_spec.rb b/spec/controllers/admin/supra_site_controller_spec.rb index f0fc07b..6dd6321 100644 --- a/spec/controllers/admin/supra_site_controller_spec.rb +++ b/spec/controllers/admin/supra_site_controller_spec.rb @@ -1,19 +1,21 @@ -require 'spec_helper' +# frozen_string_literal: true + +require 'rails_helper' describe Admin::AdminController do - let!(:site) { FactoryGirl.create(:site) } - let!(:another_site) { FactoryGirl.create(:site, url: 'another_site') } + let!(:site) { create(:site) } + let!(:another_site) { create(:site, url: 'another_site') } before(:each) { MultiSite::Supra.default_site = site } - it "is aware of a current site selection" do + it 'is aware of a current site selection' do get :show - assigns(:admin_site).should eq(site) + expect(JSON.parse(response.body)).to eq(site.as_json) end - it "switches managed site" do - put :switch_site, site_id: another_site.id + it 'switches managed site' do + put :switch_site, params: { site_id: another_site.id } get :show - assigns(:admin_site).should eq(another_site) + expect(JSON.parse(response.body)).to eq(another_site.as_json) end -end \ No newline at end of file +end diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 9ec622e..fe0b87c 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -1,25 +1,24 @@ -require 'spec_helper' +# frozen_string_literal: true -describe UsersController do - - context "change of site scope" do +require 'rails_helper' +describe UsersController do + context 'change of site scope' do before(:each) do - @site_1 = FactoryGirl.create(:site) - @site_2 = FactoryGirl.create(:site) + @site1 = create(:site) + @site2 = create(:site) 10.times do - FactoryGirl.create(:user, :site => @site_1) - FactoryGirl.create(:user, :site => @site_2) + create(:user, site: @site1) + create(:user, site: @site2) end end - it "should be true if current scope shows site_1" do - get :index, :multi_site => @site_1.url - MultiSite.current_site.should == @site_1 + it 'should be true if current scope shows site_1' do + get :index, params: { multi_site: @site1.url } + expect(MultiSite.current_site).to eq(@site1) - get :index, :multi_site => @site_2.url - MultiSite.current_site.should == @site_2 + get :index, params: { multi_site: @site2.url } + expect(MultiSite.current_site).to eq(@site2) end - end -end \ No newline at end of file +end diff --git a/spec/dummy/.gitignore b/spec/dummy/.gitignore deleted file mode 100644 index 6a502e9..0000000 --- a/spec/dummy/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/*.log -/tmp diff --git a/spec/dummy/Gemfile b/spec/dummy/Gemfile deleted file mode 100644 index ba8e5ca..0000000 --- a/spec/dummy/Gemfile +++ /dev/null @@ -1,44 +0,0 @@ -source 'https://rubygems.org' - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.0.2' - -# Use sqlite3 as the database for Active Record -gem 'sqlite3' - -# Use SCSS for stylesheets -gem 'sass-rails', '~> 4.0.0' - -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' - -# Use CoffeeScript for .js.coffee assets and views -gem 'coffee-rails', '~> 4.0.0' - -# See https://github.com/sstephenson/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' - -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 1.2' - -gem 'request_store', '1.1.0' - -group :doc do - # bundle exec rake doc:rails generates the API under doc/api. - gem 'sdoc', require: false -end - -# Use ActiveModel has_secure_password -# gem 'bcrypt-ruby', '~> 3.1.2' - -# Use unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano', group: :development - -# Use debugger -# gem 'debugger', group: [:development, :test] diff --git a/spec/dummy/Gemfile.lock b/spec/dummy/Gemfile.lock deleted file mode 100644 index f89fc94..0000000 --- a/spec/dummy/Gemfile.lock +++ /dev/null @@ -1,117 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.0.2) - actionpack (= 4.0.2) - mail (~> 2.5.4) - actionpack (4.0.2) - activesupport (= 4.0.2) - builder (~> 3.1.0) - erubis (~> 2.7.0) - rack (~> 1.5.2) - rack-test (~> 0.6.2) - activemodel (4.0.2) - activesupport (= 4.0.2) - builder (~> 3.1.0) - activerecord (4.0.2) - activemodel (= 4.0.2) - activerecord-deprecated_finders (~> 1.0.2) - activesupport (= 4.0.2) - arel (~> 4.0.0) - activerecord-deprecated_finders (1.0.3) - activesupport (4.0.2) - i18n (~> 0.6, >= 0.6.4) - minitest (~> 4.2) - multi_json (~> 1.3) - thread_safe (~> 0.1) - tzinfo (~> 0.3.37) - arel (4.0.2) - builder (3.1.4) - coffee-rails (4.0.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.0) - coffee-script (2.3.0) - coffee-script-source - execjs - coffee-script-source (1.9.1) - erubis (2.7.0) - execjs (2.3.0) - hike (1.2.3) - i18n (0.7.0) - jbuilder (1.5.3) - activesupport (>= 3.0.0) - multi_json (>= 1.2.0) - jquery-rails (3.1.2) - railties (>= 3.0, < 5.0) - thor (>= 0.14, < 2.0) - json (1.8.2) - mail (2.5.4) - mime-types (~> 1.16) - treetop (~> 1.4.8) - mime-types (1.25.1) - minitest (4.7.5) - multi_json (1.11.0) - polyglot (0.3.5) - rack (1.5.2) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.0.2) - actionmailer (= 4.0.2) - actionpack (= 4.0.2) - activerecord (= 4.0.2) - activesupport (= 4.0.2) - bundler (>= 1.3.0, < 2.0) - railties (= 4.0.2) - sprockets-rails (~> 2.0.0) - railties (4.0.2) - actionpack (= 4.0.2) - activesupport (= 4.0.2) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (10.4.2) - rdoc (4.2.0) - json (~> 1.4) - request_store (1.1.0) - sass (3.2.19) - sass-rails (4.0.5) - railties (>= 4.0.0, < 5.0) - sass (~> 3.2.2) - sprockets (~> 2.8, < 3.0) - sprockets-rails (~> 2.0) - sdoc (0.4.1) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - sprockets (2.12.3) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.0.1) - actionpack (>= 3.0) - activesupport (>= 3.0) - sprockets (~> 2.8) - sqlite3 (1.3.10) - thor (0.19.1) - thread_safe (0.3.4) - tilt (1.4.1) - treetop (1.4.15) - polyglot - polyglot (>= 0.3.1) - tzinfo (0.3.43) - uglifier (2.7.1) - execjs (>= 0.3.0) - json (>= 1.8.0) - -PLATFORMS - ruby - -DEPENDENCIES - coffee-rails (~> 4.0.0) - jbuilder (~> 1.2) - jquery-rails - rails (= 4.0.2) - request_store (= 1.1.0) - sass-rails (~> 4.0.0) - sdoc - sqlite3 - uglifier (>= 1.3.0) diff --git a/spec/dummy/README.rdoc b/spec/dummy/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/spec/dummy/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/spec/dummy/Rakefile b/spec/dummy/Rakefile index 4135d7a..9a5ea73 100644 --- a/spec/dummy/Rakefile +++ b/spec/dummy/Rakefile @@ -1,6 +1,6 @@ # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. -require File.expand_path('../config/application', __FILE__) +require_relative "config/application" -Dummy::Application.load_tasks +Rails.application.load_tasks diff --git a/spec/dummy/app/assets/config/manifest.js b/spec/dummy/app/assets/config/manifest.js new file mode 100644 index 0000000..5cc2c08 --- /dev/null +++ b/spec/dummy/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css \ No newline at end of file diff --git a/spec/dummy/app/assets/javascripts/application.js b/spec/dummy/app/assets/javascripts/application.js deleted file mode 100644 index d6925fa..0000000 --- a/spec/dummy/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/spec/dummy/app/assets/stylesheets/application.css b/spec/dummy/app/assets/stylesheets/application.css index 3192ec8..dcd7273 100644 --- a/spec/dummy/app/assets/stylesheets/application.css +++ b/spec/dummy/app/assets/stylesheets/application.css @@ -1,13 +1 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the top of the - * compiled file, but it's generally better to create a new file per style scope. - * - *= require_self - *= require_tree . - */ +/* Application styles */ diff --git a/spec/dummy/app/channels/application_cable/channel.rb b/spec/dummy/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/spec/dummy/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/spec/dummy/app/channels/application_cable/connection.rb b/spec/dummy/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/spec/dummy/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/spec/dummy/app/controllers/admin/admin_controller.rb b/spec/dummy/app/controllers/admin/admin_controller.rb index d38feb1..8c391c4 100644 --- a/spec/dummy/app/controllers/admin/admin_controller.rb +++ b/spec/dummy/app/controllers/admin/admin_controller.rb @@ -1,12 +1,15 @@ -class Admin::AdminController < ApplicationController - cross_site_controller +module Admin + class AdminController < ApplicationController + cross_site_controller - def show - @admin_site = current_site - end + def show + @admin_site = current_site + render json: @admin_site + end - def switch_site - self.current_site = Site.find(params[:site_id]) - redirect_to admin_admin_url, notice: "Switched to: #{current_site.url}" + def switch_site + self.current_site = Site.find(params[:site_id]) + redirect_to admin_admin_url, notice: "Switched to: #{current_site.url}" + end end -end \ No newline at end of file +end diff --git a/spec/dummy/app/controllers/application_controller.rb b/spec/dummy/app/controllers/application_controller.rb index d83690e..09705d1 100644 --- a/spec/dummy/app/controllers/application_controller.rb +++ b/spec/dummy/app/controllers/application_controller.rb @@ -1,5 +1,2 @@ class ApplicationController < ActionController::Base - # Prevent CSRF attacks by raising an exception. - # For APIs, you may want to use :null_session instead. - protect_from_forgery with: :exception end diff --git a/spec/dummy/app/controllers/users_controller.rb b/spec/dummy/app/controllers/users_controller.rb index 9c3de09..ac55bb8 100644 --- a/spec/dummy/app/controllers/users_controller.rb +++ b/spec/dummy/app/controllers/users_controller.rb @@ -1,20 +1,11 @@ -class UsersController < ApplicationController +# frozen_string_literal: true +class UsersController < ApplicationController def index - @users = User.on_site + render json: { ola: 'mundo' } end - def new - @user = User.new + def show + render json: { site: current_site } end - - def create - @user = User.new(params[:user]) - if @user.valid? and @user.save - redirect_to users_path(current_site.url) - else - render :action => :new - end - end - end diff --git a/spec/dummy/app/controllers/welcome_controller.rb b/spec/dummy/app/controllers/welcome_controller.rb deleted file mode 100644 index 950d3b2..0000000 --- a/spec/dummy/app/controllers/welcome_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class WelcomeController < ApplicationController - - def index - render text: 'HELLO WORLD' - end -end diff --git a/spec/dummy/app/helpers/contests/questionnaires_helper.rb b/spec/dummy/app/helpers/contests/questionnaires_helper.rb deleted file mode 100644 index 868b657..0000000 --- a/spec/dummy/app/helpers/contests/questionnaires_helper.rb +++ /dev/null @@ -1,30 +0,0 @@ -module Contests - module QuestionnairesHelper - def link_to_remove_field(name, f) - f.hidden_field(:_destroy) + - link_to_function(raw(name), "removeField(this)", :id =>"remove-attach") - end - - def new_questionnaire_path - new_contests_questionnaire_path - end - - def edit_questionnaire_path(resource) - edit_contests_questionnaire_path(resource) - end - - def questionnaire_scope(resource) - [:contests, resource] - end - - def link_to_add_field(name, f, association) - new_object = f.object.class.reflect_on_association(association).klass.new - fields = f.fields_for(association, new_object,:child_index => "new_#{association}") do |builder| - render(association.to_s.singularize + "_fields", :f => builder) - end - link_to_function(name, "addField(this, \"#{association}\", \"#{escape_javascript(fields)}\")", - :id=>"add-attach", - :class=>"btn btn-small btn-info") - end - end -end \ No newline at end of file diff --git a/spec/dummy/app/jobs/application_job.rb b/spec/dummy/app/jobs/application_job.rb new file mode 100644 index 0000000..d394c3d --- /dev/null +++ b/spec/dummy/app/jobs/application_job.rb @@ -0,0 +1,7 @@ +class ApplicationJob < ActiveJob::Base + # Automatically retry jobs that encountered a deadlock + # retry_on ActiveRecord::Deadlocked + + # Most jobs are safe to ignore if the underlying records are no longer available + # discard_on ActiveJob::DeserializationError +end diff --git a/spec/dummy/app/mailers/application_mailer.rb b/spec/dummy/app/mailers/application_mailer.rb new file mode 100644 index 0000000..3c34c81 --- /dev/null +++ b/spec/dummy/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: "from@example.com" + layout "mailer" +end diff --git a/spec/dummy/app/models/application_record.rb b/spec/dummy/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/spec/dummy/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/spec/dummy/app/models/site.rb b/spec/dummy/app/models/site.rb index e98d8e5..f0d3c29 100644 --- a/spec/dummy/app/models/site.rb +++ b/spec/dummy/app/models/site.rb @@ -1,5 +1,2 @@ -class Site < ActiveRecord::Base - has_many :users - - validates :url, presence: true, uniqueness: true +class Site < ApplicationRecord end diff --git a/spec/dummy/app/models/user.rb b/spec/dummy/app/models/user.rb index 99363d4..1011308 100644 --- a/spec/dummy/app/models/user.rb +++ b/spec/dummy/app/models/user.rb @@ -1,3 +1,3 @@ -class User < ActiveRecord::Base +class User < ApplicationRecord has_site_scope end diff --git a/spec/dummy/app/views/admin/admin/show.erb b/spec/dummy/app/views/admin/admin/show.erb deleted file mode 100644 index 7252474..0000000 --- a/spec/dummy/app/views/admin/admin/show.erb +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/spec/dummy/app/views/layouts/application.html.erb b/spec/dummy/app/views/layouts/application.html.erb index 00acdb2..f72b4ef 100644 --- a/spec/dummy/app/views/layouts/application.html.erb +++ b/spec/dummy/app/views/layouts/application.html.erb @@ -1,14 +1,15 @@ - - Dummy - <%#= stylesheet_link_tag :all %> - <%= javascript_include_tag "application" %> - <%= csrf_meta_tag %> - - + + Dummy + + <%= csrf_meta_tags %> + <%= csp_meta_tag %> -<%= yield %> + <%= stylesheet_link_tag "application" %> + - + + <%= yield %> + diff --git a/spec/dummy/app/views/layouts/mailer.html.erb b/spec/dummy/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/spec/dummy/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/spec/dummy/app/views/layouts/mailer.text.erb b/spec/dummy/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/spec/dummy/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/spec/dummy/app/views/users/_form.html.erb b/spec/dummy/app/views/users/_form.html.erb deleted file mode 100644 index da1d4cc..0000000 --- a/spec/dummy/app/views/users/_form.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<%= form_for @user do |f| %> -
- <%= f.label :name %> - <%= f.text_field :name %> -
- - <%= f.hidden_field :site_id, :value => current_site.try(:id) %> - -
- <%= f.submit %> -
-<% end -%> \ No newline at end of file diff --git a/spec/dummy/app/views/users/edit.html.erb b/spec/dummy/app/views/users/edit.html.erb deleted file mode 100644 index 36d248f..0000000 --- a/spec/dummy/app/views/users/edit.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -Edit User -<%= render 'form' %> \ No newline at end of file diff --git a/spec/dummy/app/views/users/index.html.erb b/spec/dummy/app/views/users/index.html.erb deleted file mode 100644 index ebebb67..0000000 --- a/spec/dummy/app/views/users/index.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -Users - \ No newline at end of file diff --git a/spec/dummy/app/views/users/new.html.erb b/spec/dummy/app/views/users/new.html.erb deleted file mode 100644 index 64484ec..0000000 --- a/spec/dummy/app/views/users/new.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -New User -<%= render 'form' %> \ No newline at end of file diff --git a/spec/dummy/bin/bundle b/spec/dummy/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/spec/dummy/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/spec/dummy/bin/rails b/spec/dummy/bin/rails index 728cd85..efc0377 100755 --- a/spec/dummy/bin/rails +++ b/spec/dummy/bin/rails @@ -1,4 +1,4 @@ #!/usr/bin/env ruby -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' +APP_PATH = File.expand_path("../config/application", __dir__) +require_relative "../config/boot" +require "rails/commands" diff --git a/spec/dummy/bin/rake b/spec/dummy/bin/rake index 1724048..4fbf10b 100755 --- a/spec/dummy/bin/rake +++ b/spec/dummy/bin/rake @@ -1,4 +1,4 @@ #!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' +require_relative "../config/boot" +require "rake" Rake.application.run diff --git a/spec/dummy/bin/setup b/spec/dummy/bin/setup new file mode 100755 index 0000000..ec47b79 --- /dev/null +++ b/spec/dummy/bin/setup @@ -0,0 +1,33 @@ +#!/usr/bin/env ruby +require "fileutils" + +# path to your application root. +APP_ROOT = File.expand_path("..", __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +FileUtils.chdir APP_ROOT do + # This script is a way to set up or update your development environment automatically. + # This script is idempotent, so that you can run it at any time and get an expectable outcome. + # Add necessary setup steps to this file. + + puts "== Installing dependencies ==" + system! "gem install bundler --conservative" + system("bundle check") || system!("bundle install") + + # puts "\n== Copying sample files ==" + # unless File.exist?("config/database.yml") + # FileUtils.cp "config/database.yml.sample", "config/database.yml" + # end + + puts "\n== Preparing database ==" + system! "bin/rails db:prepare" + + puts "\n== Removing old logs and tempfiles ==" + system! "bin/rails log:clear tmp:clear" + + puts "\n== Restarting application server ==" + system! "bin/rails restart" +end diff --git a/spec/dummy/config.ru b/spec/dummy/config.ru index 5bc2a61..4a3c09a 100644 --- a/spec/dummy/config.ru +++ b/spec/dummy/config.ru @@ -1,4 +1,6 @@ # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) +require_relative "config/environment" + run Rails.application +Rails.application.load_server diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index 4cd6683..3a0d682 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -1,23 +1,21 @@ -require File.expand_path('../boot', __FILE__) +require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. -Bundler.require(:default, Rails.env) +Bundler.require(*Rails.groups) module Dummy class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. + config.load_defaults Rails::VERSION::STRING.to_f - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. + # Configuration for the application, engines, and railties goes here. + # + # These settings can be overridden in specific environments using the files + # in config/environments, which are processed later. + # # config.time_zone = 'Central Time (US & Canada)' - - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de + # config.eager_load_paths << Rails.root.join('extras') end end diff --git a/spec/dummy/config/boot.rb b/spec/dummy/config/boot.rb index 3596736..116591a 100644 --- a/spec/dummy/config/boot.rb +++ b/spec/dummy/config/boot.rb @@ -1,4 +1,5 @@ # Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__) -require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) +require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) +$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__) diff --git a/spec/dummy/config/cable.yml b/spec/dummy/config/cable.yml new file mode 100644 index 0000000..98367f8 --- /dev/null +++ b/spec/dummy/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: test + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: dummy_production diff --git a/spec/dummy/config/database.yml b/spec/dummy/config/database.yml index 51a4dd4..fcba57f 100644 --- a/spec/dummy/config/database.yml +++ b/spec/dummy/config/database.yml @@ -1,25 +1,25 @@ -# SQLite version 3.x +# SQLite. Versions 3.8.0 and up are supported. # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' -development: +# gem "sqlite3" +# +default: &default adapter: sqlite3 - database: db/development.sqlite3 - pool: 5 + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> timeout: 5000 +development: + <<: *default + database: db/development.sqlite3 + # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: - adapter: sqlite3 + <<: *default database: db/test.sqlite3 - pool: 5 - timeout: 5000 production: - adapter: sqlite3 + <<: *default database: db/production.sqlite3 - pool: 5 - timeout: 5000 diff --git a/spec/dummy/config/environment.rb b/spec/dummy/config/environment.rb index 10e0cad..426333b 100644 --- a/spec/dummy/config/environment.rb +++ b/spec/dummy/config/environment.rb @@ -1,5 +1,5 @@ # Load the Rails application. -require File.expand_path('../application', __FILE__) +require_relative 'application' # Initialize the Rails application. -Dummy::Application.initialize! +Rails.application.initialize! diff --git a/spec/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb index 9d26e12..8d1635e 100644 --- a/spec/dummy/config/environments/development.rb +++ b/spec/dummy/config/environments/development.rb @@ -1,29 +1,68 @@ -Dummy::Application.configure do +require "active_support/core_ext/integer/time" + +Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development + # In the development environment your application's code is reloaded any time + # it changes. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false + # Show full error reports. + config.consider_all_requests_local = true + + # Enable server timing + config.server_timing = true + + # Enable/disable caching. By default caching is disabled. + # 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.enable_fragment_cache_logging = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + "Cache-Control" => "public, max-age=#{2.days.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + 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. config.action_mailer.raise_delivery_errors = false + config.action_mailer.perform_caching = false + # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log - # Raise an error on page load if there are pending migrations + # Raise exceptions for disallowed deprecations. + config.active_support.disallowed_deprecation = :raise + + # Tell Active Support which deprecation messages to disallow. + config.active_support.disallowed_deprecation_warnings = [] + + # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true + # Highlight code that triggered database queries in logs. + config.active_record.verbose_query_logs = true + + + # Raises error for missing translations. + # config.i18n.raise_on_missing_translations = true + + # Annotate rendered view with file names. + # config.action_view.annotate_rendered_view_with_filenames = true + + # Uncomment if you wish to allow Action Cable access from any origin. + # config.action_cable.disable_request_forgery_protection = true end diff --git a/spec/dummy/config/environments/production.rb b/spec/dummy/config/environments/production.rb index b690b1c..83a5a16 100644 --- a/spec/dummy/config/environments/production.rb +++ b/spec/dummy/config/environments/production.rb @@ -1,11 +1,13 @@ -Dummy::Application.configure do +require "active_support/core_ext/integer/time" + +Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both thread web servers + # your application in memory, allowing both threaded web servers # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true @@ -14,67 +16,72 @@ config.consider_all_requests_local = false config.action_controller.perform_caching = true - # Enable Rack::Cache to put a simple HTTP cache in front of your application - # Add `rack-cache` to your Gemfile before enabling this. - # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. - # config.action_dispatch.rack_cache = true + # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] + # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). + # config.require_master_key = true - # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - # config.assets.css_compressor = :sass + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.asset_host = "http://assets.example.com" - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache + # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX - # Generate digests for assets URLs. - config.assets.digest = true + # Store uploaded files on the local file system (see config/storage.yml for options). + config.active_storage.service = :local - # Version of your assets, change this if you want to expire all your assets. - config.assets.version = '1.0' - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx + # Mount Action Cable outside main process or domain. + # config.action_cable.mount_path = nil + # config.action_cable.url = "wss://example.com/cable" + # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true - # Set to :debug to see everything in the log. + # Include generic and useful information about system operation, but avoid logging too much + # information to avoid inadvertent exposure of personally identifiable information (PII). config.log_level = :info # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + config.log_tags = [ :request_id ] # Use a different cache store in production. # config.cache_store = :mem_cache_store - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = "http://assets.example.com" + # Use a real queuing backend for Active Job (and separate queues per environment). + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "dummy_production" - # Precompile additional assets. - # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. - # config.assets.precompile += %w( search.js ) + config.action_mailer.perform_caching = false # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation can not be found). + # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Disable automatic flushing of the log to improve performance. - # config.autoflush_log = false + # Don't log any deprecations. + config.active_support.report_deprecations = false # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require "syslog/logger" + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name") + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false end diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index afbc0ae..64d2cf7 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -1,24 +1,31 @@ -Dummy::Application.configure do +require "active_support/core_ext/integer/time" + +# The test environment is used exclusively to run your application's +# test suite. You never need to work with it otherwise. Remember that +# your test database is "scratch space" for the test suite and is wiped +# and recreated between test runs. Don't rely on the data there! + +Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! + # Turn false under Spring and add config.action_view.cache_template_loading = true. config.cache_classes = true - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false + # Eager loading loads your whole application. When running a single test locally, + # this probably isn't necessary. It's a good idea to do in a continuous integration + # system, or in some way before deploying your code. + config.eager_load = ENV['CI'].present? - # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_assets = true - config.static_cache_control = "public, max-age=3600" + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.to_i}" + } # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false + config.cache_store = :null_store # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false @@ -26,6 +33,11 @@ # Disable request forgery protection in test environment. 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 + # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. @@ -33,4 +45,16 @@ # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + # Raise exceptions for disallowed deprecations. + config.active_support.disallowed_deprecation = :raise + + # Tell Active Support which deprecation messages to disallow. + config.active_support.disallowed_deprecation_warnings = [] + + # Raises error for missing translations. + # config.i18n.raise_on_missing_translations = true + + # Annotate rendered view with file names. + # config.action_view.annotate_rendered_view_with_filenames = true end diff --git a/spec/dummy/config/initializers/backtrace_silencers.rb b/spec/dummy/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/spec/dummy/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/dummy/config/initializers/content_security_policy.rb b/spec/dummy/config/initializers/content_security_policy.rb new file mode 100644 index 0000000..54f47cf --- /dev/null +++ b/spec/dummy/config/initializers/content_security_policy.rb @@ -0,0 +1,25 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy. +# See the Securing Rails Applications Guide for more information: +# https://guides.rubyonrails.org/security.html#content-security-policy-header + +# Rails.application.configure do +# config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end +# +# # Generate session nonces for permitted importmap and inline scripts +# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } +# config.content_security_policy_nonce_directives = %w(script-src) +# +# # Report violations without enforcing the policy. +# # config.content_security_policy_report_only = true +# end diff --git a/spec/dummy/config/initializers/filter_parameter_logging.rb b/spec/dummy/config/initializers/filter_parameter_logging.rb index 4a994e1..adc6568 100644 --- a/spec/dummy/config/initializers/filter_parameter_logging.rb +++ b/spec/dummy/config/initializers/filter_parameter_logging.rb @@ -1,4 +1,8 @@ # Be sure to restart your server when you modify this file. -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] +# Configure parameters to be filtered from the log file. Use this to limit dissemination of +# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported +# notations and behaviors. +Rails.application.config.filter_parameters += [ + :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn +] diff --git a/spec/dummy/config/initializers/inflections.rb b/spec/dummy/config/initializers/inflections.rb index ac033bf..3860f65 100644 --- a/spec/dummy/config/initializers/inflections.rb +++ b/spec/dummy/config/initializers/inflections.rb @@ -4,13 +4,13 @@ # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' +# inflect.plural /^(ox)$/i, "\\1en" +# inflect.singular /^(ox)en/i, "\\1" +# inflect.irregular "person", "people" # inflect.uncountable %w( fish sheep ) # end # These inflection rules are supported but not enabled by default: # ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' +# inflect.acronym "RESTful" # end diff --git a/spec/dummy/config/initializers/mime_types.rb b/spec/dummy/config/initializers/mime_types.rb deleted file mode 100644 index 72aca7e..0000000 --- a/spec/dummy/config/initializers/mime_types.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf -# Mime::Type.register_alias "text/html", :iphone diff --git a/spec/dummy/config/initializers/permissions_policy.rb b/spec/dummy/config/initializers/permissions_policy.rb new file mode 100644 index 0000000..00f64d7 --- /dev/null +++ b/spec/dummy/config/initializers/permissions_policy.rb @@ -0,0 +1,11 @@ +# Define an application-wide HTTP permissions policy. For further +# information see https://developers.google.com/web/updates/2018/06/feature-policy +# +# Rails.application.config.permissions_policy do |f| +# f.camera :none +# f.gyroscope :none +# f.microphone :none +# f.usb :none +# f.fullscreen :self +# f.payment :self, "https://secure.example.com" +# end diff --git a/spec/dummy/config/initializers/secret_token.rb b/spec/dummy/config/initializers/secret_token.rb deleted file mode 100644 index f159890..0000000 --- a/spec/dummy/config/initializers/secret_token.rb +++ /dev/null @@ -1,12 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure your secret_key_base is kept private -# if you're sharing your code publicly. -Dummy::Application.config.secret_key_base = '75ad7c4fa3066f9a84f7a9eb5608bc8cc36cfae40b4b12d68c5e73740d0d59b1594778fcdfc6b11a6556d51c6c8ec2c67177dc30af9fb28967802fbd46dce9da' diff --git a/spec/dummy/config/initializers/session_store.rb b/spec/dummy/config/initializers/session_store.rb deleted file mode 100644 index 155f7b0..0000000 --- a/spec/dummy/config/initializers/session_store.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' diff --git a/spec/dummy/config/initializers/wrap_parameters.rb b/spec/dummy/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/spec/dummy/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] if respond_to?(:wrap_parameters) -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/spec/dummy/config/locales/en.yml b/spec/dummy/config/locales/en.yml index 0653957..8ca56fc 100644 --- a/spec/dummy/config/locales/en.yml +++ b/spec/dummy/config/locales/en.yml @@ -4,11 +4,11 @@ # # To use the locales, use `I18n.t`: # -# I18n.t 'hello' +# I18n.t "hello" # # In views, this is aliased to just `t`: # -# <%= t('hello') %> +# <%= t("hello") %> # # To use a different locale, set it with `I18n.locale`: # @@ -16,8 +16,18 @@ # # This would use the information in config/locales/es.yml. # +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# "true": "foo" +# # To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. +# available at https://guides.rubyonrails.org/i18n.html. en: hello: "Hello world" diff --git a/spec/dummy/config/puma.rb b/spec/dummy/config/puma.rb new file mode 100644 index 0000000..daaf036 --- /dev/null +++ b/spec/dummy/config/puma.rb @@ -0,0 +1,43 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } +threads min_threads_count, max_threads_count + +# Specifies the `worker_timeout` threshold that Puma will use to wait before +# terminating a worker in development environments. +# +worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the `pidfile` that Puma will use. +pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked web server processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. +# +# preload_app! + +# Allow puma to be restarted by `bin/rails restart` command. +plugin :tmp_restart diff --git a/spec/dummy/config/routes.rb b/spec/dummy/config/routes.rb index ac7038f..4657082 100644 --- a/spec/dummy/config/routes.rb +++ b/spec/dummy/config/routes.rb @@ -1,5 +1,6 @@ -Dummy::Application.routes.draw do - root to: 'welcome#index' +Rails.application.routes.draw do + # Defines the root path route ("/") + root to: 'users#index' multi_site_scope do resources :users end diff --git a/spec/dummy/config/storage.yml b/spec/dummy/config/storage.yml new file mode 100644 index 0000000..4942ab6 --- /dev/null +++ b/spec/dummy/config/storage.yml @@ -0,0 +1,34 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use bin/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-<%= Rails.env %> + +# 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-<%= Rails.env %> + +# Use bin/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-<%= Rails.env %> + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/spec/dummy/db/development.sqlite3 b/spec/dummy/db/development.sqlite3 new file mode 100644 index 0000000..c2bba60 Binary files /dev/null and b/spec/dummy/db/development.sqlite3 differ diff --git a/spec/dummy/db/migrate/20130123110019_create_users.rb b/spec/dummy/db/migrate/20130123110019_create_users.rb deleted file mode 100644 index 212eaef..0000000 --- a/spec/dummy/db/migrate/20130123110019_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - t.integer :site_id - t.timestamps - end - end -end diff --git a/spec/dummy/db/migrate/20230130163134_create_users.rb b/spec/dummy/db/migrate/20230130163134_create_users.rb new file mode 100644 index 0000000..0a7de2c --- /dev/null +++ b/spec/dummy/db/migrate/20230130163134_create_users.rb @@ -0,0 +1,9 @@ +class CreateUsers < ActiveRecord::Migration[7.0] + def change + create_table :users do |t| + t.string :login + t.references :site + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20130129143939_create_sites.rb b/spec/dummy/db/migrate/20230130163141_create_sites.rb similarity index 67% rename from spec/dummy/db/migrate/20130129143939_create_sites.rb rename to spec/dummy/db/migrate/20230130163141_create_sites.rb index a6f2cdb..d5bc8a0 100644 --- a/spec/dummy/db/migrate/20130129143939_create_sites.rb +++ b/spec/dummy/db/migrate/20230130163141_create_sites.rb @@ -1,8 +1,7 @@ -class CreateSites < ActiveRecord::Migration +class CreateSites < ActiveRecord::Migration[7.0] def change create_table :sites do |t| t.string :url - t.timestamps end end diff --git a/spec/dummy/db/schema.rb b/spec/dummy/db/schema.rb index 3caa66d..3af2c57 100644 --- a/spec/dummy/db/schema.rb +++ b/spec/dummy/db/schema.rb @@ -1,29 +1,28 @@ -# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20130129143939) do - - create_table "sites", force: true do |t| - t.string "url" - t.datetime "created_at" - t.datetime "updated_at" +ActiveRecord::Schema[7.0].define(version: 2023_01_30_163141) do + create_table "sites", force: :cascade do |t| + t.string "url" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table "users", force: true do |t| - t.string "name" - t.integer "site_id" - t.datetime "created_at" - t.datetime "updated_at" + create_table "users", force: :cascade do |t| + t.string "login" + t.integer "site_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["site_id"], name: "index_users_on_site_id" end end diff --git a/spec/dummy/db/seeds.rb b/spec/dummy/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/spec/dummy/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 new file mode 100644 index 0000000..7bde1ee Binary files /dev/null and b/spec/dummy/db/test.sqlite3 differ diff --git a/spec/dummy/log/development.log b/spec/dummy/log/development.log new file mode 100644 index 0000000..1eea97b --- /dev/null +++ b/spec/dummy/log/development.log @@ -0,0 +1,128 @@ +  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateSurvey (20150507140855) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) CREATE TABLE "survey_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "attempts_number" integer DEFAULT 0, "finished" boolean DEFAULT 0, "active" boolean DEFAULT 0, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.1ms) CREATE TABLE "survey_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "text" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.1ms) CREATE TABLE "survey_options" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "weight" integer DEFAULT 0, "text" varchar, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.1ms) CREATE TABLE "survey_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "participant_type" varchar, "participant_id" integer, "survey_id" integer, "winner" boolean, "score" integer) +  (0.1ms) CREATE INDEX "index_survey_attempts_on_participant" ON "survey_attempts" ("participant_type", "participant_id") +  (0.2ms) CREATE TABLE "survey_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "option_id" integer, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150507140855"]] + TRANSACTION (0.4ms) commit transaction +Migrating to CreateUsers (20150507141133) + TRANSACTION (0.0ms) begin transaction +  (0.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150507141133"]] + TRANSACTION (0.2ms) commit transaction +Migrating to AddSurveyTypeToSurveySurvey (20150512173234) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) ALTER TABLE "survey_surveys" ADD "survey_type" integer + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150512173234"]] + TRANSACTION (0.2ms) commit transaction +Migrating to AddNameToUsers (20150515173554) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) ALTER TABLE "users" ADD "name" varchar + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150515173554"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.1ms) begin transaction + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2023-02-02 15:21:24.964528"], ["updated_at", "2023-02-02 15:21:24.964528"]] + TRANSACTION (0.4ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) + ActiveRecord::SchemaMigration Pluck (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) + TRANSACTION (0.0ms) begin transaction +  (0.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "site_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.1ms) CREATE INDEX "index_users_on_site_id" ON "users" ("site_id") + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20230130163134"]] + TRANSACTION (0.8ms) commit transaction +Migrating to CreateSites (20230130163141) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) CREATE TABLE "sites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20230130163141"]] + TRANSACTION (2.7ms) commit transaction + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2023-02-03 15:09:56.533183"], ["updated_at", "2023-02-03 15:09:56.533183"]] + TRANSACTION (0.3ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateSites (20230130163141) + TRANSACTION (0.1ms) begin transaction +  (0.9ms) DROP TABLE "sites" + ActiveRecord::SchemaMigration Delete All (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20230130163141"]] + TRANSACTION (0.4ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) + TRANSACTION (0.1ms) begin transaction +  (0.5ms) DROP TABLE "users" + ActiveRecord::SchemaMigration Delete All (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20230130163134"]] + TRANSACTION (0.4ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateUsers (20230130163134) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "site_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.1ms) CREATE INDEX "index_users_on_site_id" ON "users" ("site_id") + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20230130163134"]] + TRANSACTION (0.3ms) commit transaction +Migrating to CreateSites (20230130163141) + TRANSACTION (0.0ms) begin transaction +  (0.3ms) CREATE TABLE "sites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20230130163141"]] + TRANSACTION (0.4ms) commit transaction + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) DROP TABLE IF EXISTS "sites" +  (0.9ms) CREATE TABLE "sites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "users" +  (0.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "site_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.3ms) CREATE INDEX "index_users_on_site_id" ON "users" ("site_id") +  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20230130163141) +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20230130163134); + + +  (0.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2023-02-03 15:25:12.334435"], ["updated_at", "2023-02-03 15:25:12.334435"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Update (0.1ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2023-02-03 15:25:12.337895"], ["key", "environment"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "6b25ce69cd37126f6fd34a6c4fa8e27f6a19609f"], ["created_at", "2023-02-03 15:25:12.340521"], ["updated_at", "2023-02-03 15:25:12.340521"]] + TRANSACTION (0.2ms) commit transaction diff --git a/spec/dummy/log/test.log b/spec/dummy/log/test.log new file mode 100644 index 0000000..037b2ef --- /dev/null +++ b/spec/dummy/log/test.log @@ -0,0 +1,52858 @@ + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) DROP TABLE IF EXISTS "survey_answers" +  (1.1ms) CREATE TABLE "survey_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "option_id" integer, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_attempts" +  (0.4ms) CREATE TABLE "survey_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "participant_type" varchar, "participant_id" integer, "survey_id" integer, "winner" boolean, "score" integer) +  (0.3ms) CREATE INDEX "index_survey_attempts_on_participant" ON "survey_attempts" ("participant_type", "participant_id") +  (0.0ms) DROP TABLE IF EXISTS "survey_options" +  (0.3ms) CREATE TABLE "survey_options" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "weight" integer DEFAULT 0, "text" varchar, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_questions" +  (0.3ms) CREATE TABLE "survey_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "text" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_surveys" +  (0.3ms) CREATE TABLE "survey_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "attempts_number" integer DEFAULT 0, "finished" boolean DEFAULT 0, "active" boolean DEFAULT 0, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "survey_type" integer) +  (0.0ms) DROP TABLE IF EXISTS "users" +  (0.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "name" varchar) +  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20150515173554) +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20150507140855), +(20150507141133), +(20150512173234); + + +  (0.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2023-02-02 15:21:42.611492"], ["updated_at", "2023-02-02 15:21:42.611492"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "7fd999bc936ae5e768d78a63db7c5036bf0180be"], ["created_at", "2023-02-02 15:21:42.613658"], ["updated_at", "2023-02-02 15:21:42.613658"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maren Carroll"], ["description", "Cupiditate eum sint. Saepe enim ad. Ea sit rerum."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 15:29:29.822556"], ["updated_at", "2023-02-02 15:29:29.822556"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Otis Gleason"], ["description", "Quam aliquam harum. Et cupiditate occaecati. Aut quia ullam."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 15:30:27.283427"], ["updated_at", "2023-02-02 15:30:27.283427"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kimberly Johnson"], ["description", "Excepturi voluptatem eligendi. Molestiae ipsam quisquam. Eaque qui est."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 15:39:25.966476"], ["updated_at", "2023-02-02 15:39:25.966476"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 15:45:13.444073"], ["updated_at", "2023-02-02 15:45:13.444073"], ["name", "Ethelyn Johnson Ret."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harvey Muller"], ["description", "Magni repellat ipsa. Et doloribus dolores. Voluptates dolorem odit."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 15:46:53.663609"], ["updated_at", "2023-02-02 15:46:53.663609"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.9ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Madonna Aufderhar"], ["description", "Quibusdam soluta aut. Alias tempore illum. Non aut dignissimos."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 15:47:07.538970"], ["updated_at", "2023-02-02 15:47:07.538970"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 15:57:10.007320"], ["updated_at", "2023-02-02 15:57:10.007320"], ["name", "Latoria Green"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:02:55.405272"], ["updated_at", "2023-02-02 16:02:55.405272"], ["name", "Rev. Angel Borer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Giuseppe Champlin"], ["description", "Omnis id rerum. Eum minus ut. Minima aperiam voluptates."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:02:55.411727"], ["updated_at", "2023-02-02 16:02:55.411727"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:03:04.632854"], ["updated_at", "2023-02-02 16:03:04.632854"], ["name", "Rodrigo Dickens"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Britteny Green"], ["description", "Quibusdam sit sed. Cumque explicabo praesentium. Aut consequatur blanditiis."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:03:04.639148"], ["updated_at", "2023-02-02 16:03:04.639148"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:03:38.622428"], ["updated_at", "2023-02-02 16:03:38.622428"], ["name", "Haywood Wunsch MD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janet Cruickshank"], ["description", "Ratione debitis sit. Odit eaque et. Est vel possimus."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:03:38.628196"], ["updated_at", "2023-02-02 16:03:38.628196"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:04:33.166149"], ["updated_at", "2023-02-02 16:04:33.166149"], ["name", "Kathlyn Yost"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Maranda Hammes"], ["description", "In sint ab. Consequatur maxime voluptas. Natus sed ex."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:04:33.171906"], ["updated_at", "2023-02-02 16:04:33.171906"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:05:02.564999"], ["updated_at", "2023-02-02 16:05:02.564999"], ["name", "Cassy Marks I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lashay Conn"], ["description", "Est perspiciatis quibusdam. Nostrum molestias aut. Qui ullam quis."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:05:02.570097"], ["updated_at", "2023-02-02 16:05:02.570097"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:13:30.281333"], ["updated_at", "2023-02-02 16:13:30.281333"], ["name", "Mr. Nilda Wunsch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Earnest Nader"], ["description", "Error et nihil. Corporis reiciendis fugit. Omnis minus nobis."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:13:30.287903"], ["updated_at", "2023-02-02 16:13:30.287903"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:15:43.156732"], ["updated_at", "2023-02-02 16:15:43.156732"], ["name", "Branden Walter CPA"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brook Walsh"], ["description", "Aliquam et quo. Sed deleniti provident. Quasi eaque rerum."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:15:43.162514"], ["updated_at", "2023-02-02 16:15:43.162514"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:18:17.136850"], ["updated_at", "2023-02-02 16:18:17.136850"], ["name", "Pres. Deon Gorczany"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jule Walker II"], ["description", "Illo vero labore. Consequatur blanditiis qui. Omnis sit enim."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:18:17.144102"], ["updated_at", "2023-02-02 16:18:17.144102"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:18:29.162090"], ["updated_at", "2023-02-02 16:18:29.162090"], ["name", "Hyacinth Adams"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Svetlana Orn V"], ["description", "Qui at omnis. Eius nam consequuntur. Voluptas voluptatum et."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:18:29.167650"], ["updated_at", "2023-02-02 16:18:29.167650"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Hal Monahan"], ["created_at", "2023-02-02 16:18:29.173352"], ["updated_at", "2023-02-02 16:18:29.173352"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anna Boyle"], ["description", "Fuga tempora rem. Aut enim ea. Dignissimos et quam."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:18:29.174554"], ["updated_at", "2023-02-02 16:18:29.174554"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:18:59.614741"], ["updated_at", "2023-02-02 16:18:59.614741"], ["name", "Rafael Kertzmann Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ike Rolfson"], ["description", "Neque dolores tenetur. Pariatur ducimus cum. Veniam doloribus vero."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:18:59.620843"], ["updated_at", "2023-02-02 16:18:59.620843"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Chadwick Koelpin"], ["created_at", "2023-02-02 16:18:59.626483"], ["updated_at", "2023-02-02 16:18:59.626483"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Alysha Sauer"], ["correct", 0], ["created_at", "2023-02-02 16:18:59.629408"], ["updated_at", "2023-02-02 16:18:59.629408"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_2 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:26:05.603946"], ["updated_at", "2023-02-02 16:26:05.603946"], ["name", "Lurlene Parker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Refugia Mertz"], ["description", "Ut eveniet et. Nisi accusantium et. Nemo tenetur vero."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:26:05.609419"], ["updated_at", "2023-02-02 16:26:05.609419"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Marti Daniel"], ["created_at", "2023-02-02 16:26:05.614533"], ["updated_at", "2023-02-02 16:26:05.614533"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Jon Barrows"], ["correct", 0], ["created_at", "2023-02-02 16:26:05.617458"], ["updated_at", "2023-02-02 16:26:05.617458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.8ms) ROLLBACK TO SAVEPOINT active_record_1 + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_2 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:26:59.566761"], ["updated_at", "2023-02-02 16:26:59.566761"], ["name", "Jaime D'Amore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ronni Crooks"], ["description", "Inventore praesentium quaerat. Beatae repellat sed. Numquam autem neque."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:26:59.571969"], ["updated_at", "2023-02-02 16:26:59.571969"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Larry Donnelly LLD"], ["created_at", "2023-02-02 16:26:59.577065"], ["updated_at", "2023-02-02 16:26:59.577065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Karon Cronin"], ["correct", 0], ["created_at", "2023-02-02 16:26:59.580006"], ["updated_at", "2023-02-02 16:26:59.580006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.6ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_2 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:35:02.583071"], ["updated_at", "2023-02-02 16:35:02.583071"], ["name", "Christeen D'Amore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kelvin Kemmer"], ["description", "Voluptatem vero reprehenderit. Delectus aut vel. Maiores modi excepturi."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:35:02.588152"], ["updated_at", "2023-02-02 16:35:02.588152"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Agnes Stoltenberg"], ["created_at", "2023-02-02 16:35:02.593488"], ["updated_at", "2023-02-02 16:35:02.593488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "India Smitham"], ["correct", 0], ["created_at", "2023-02-02 16:35:02.596436"], ["updated_at", "2023-02-02 16:35:02.596436"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.5ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_2 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:35:45.284940"], ["updated_at", "2023-02-02 16:35:45.284940"], ["name", "Adam Block"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Demarcus Osinski"], ["description", "Reiciendis quis impedit. Hic ipsum deleniti. Impedit dolor id."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:35:45.291001"], ["updated_at", "2023-02-02 16:35:45.291001"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.1ms) SAVEPOINT active_record_2 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hiram Bauch DDS"], ["created_at", "2023-02-02 16:35:45.297352"], ["updated_at", "2023-02-02 16:35:45.297352"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.0ms) SAVEPOINT active_record_2 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Msgr. Jacquetta Stracke"], ["correct", 0], ["created_at", "2023-02-02 16:35:45.301146"], ["updated_at", "2023-02-02 16:35:45.301146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_2 + TRANSACTION (0.7ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:37:46.989779"], ["updated_at", "2023-02-02 16:37:46.989779"], ["name", "Prof. Carlene Schiller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brant Hackett"], ["description", "Ut nobis soluta. Iure quidem enim. Quidem dolorem a."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:37:46.994871"], ["updated_at", "2023-02-02 16:37:46.994871"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vernon Reilly DC"], ["created_at", "2023-02-02 16:37:46.999915"], ["updated_at", "2023-02-02 16:37:46.999915"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Sen. Dell Kuhlman"], ["correct", 0], ["created_at", "2023-02-02 16:37:47.002859"], ["updated_at", "2023-02-02 16:37:47.002859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:38:29.118987"], ["updated_at", "2023-02-02 16:38:29.118987"], ["name", "Amb. Owen Wiza"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tera Lesch"], ["description", "Sunt necessitatibus similique. Dolorum qui ut. Quo minus eos."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:38:29.124043"], ["updated_at", "2023-02-02 16:38:29.124043"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Erinn Hintz"], ["created_at", "2023-02-02 16:38:29.129016"], ["updated_at", "2023-02-02 16:38:29.129016"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Clarence Kuvalis"], ["correct", 0], ["created_at", "2023-02-02 16:38:29.131928"], ["updated_at", "2023-02-02 16:38:29.131928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.7ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:39:45.299084"], ["updated_at", "2023-02-02 16:39:45.299084"], ["name", "Delia Corkery"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Catherina Crist Jr."], ["description", "Vitae beatae culpa. Enim vitae dolores. Reiciendis dolorem voluptatem."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:39:45.305157"], ["updated_at", "2023-02-02 16:39:45.305157"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kristie Kuhlman"], ["created_at", "2023-02-02 16:39:45.311551"], ["updated_at", "2023-02-02 16:39:45.311551"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Emil Frami"], ["correct", 0], ["created_at", "2023-02-02 16:39:45.315375"], ["updated_at", "2023-02-02 16:39:45.315375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:40:29.023662"], ["updated_at", "2023-02-02 16:40:29.023662"], ["name", "Isa Herzog"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maribel Larson Ret."], ["description", "Nisi sit quos. Sint in id. Ipsum esse exercitationem."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:40:29.029141"], ["updated_at", "2023-02-02 16:40:29.029141"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Randy Gleason"], ["created_at", "2023-02-02 16:40:29.041443"], ["updated_at", "2023-02-02 16:40:29.041443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Cyrstal Hoeger I"], ["correct", 0], ["created_at", "2023-02-02 16:40:29.044653"], ["updated_at", "2023-02-02 16:40:29.044653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:40:29.047708"], ["updated_at", "2023-02-02 16:40:29.047708"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.5ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.9ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:42:29.872949"], ["updated_at", "2023-02-02 16:42:29.872949"], ["name", "Sunny Medhurst"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Winfred Williamson"], ["description", "Quos tempore tempora. Facere delectus temporibus. Deserunt est non."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:42:29.878233"], ["updated_at", "2023-02-02 16:42:29.878233"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" IS NULL AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:42:37.823770"], ["updated_at", "2023-02-02 16:42:37.823770"], ["name", "Noble Conroy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Quyen Oberbrunner"], ["description", "Delectus modi voluptates. Atque excepturi officia. Temporibus inventore eum."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:42:37.829000"], ["updated_at", "2023-02-02 16:42:37.829000"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jenniffer Huels Sr."], ["created_at", "2023-02-02 16:42:37.841300"], ["updated_at", "2023-02-02 16:42:37.841300"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Erin Daugherty"], ["correct", 0], ["created_at", "2023-02-02 16:42:37.844305"], ["updated_at", "2023-02-02 16:42:37.844305"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:42:37.847269"], ["updated_at", "2023-02-02 16:42:37.847269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.9ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:44:43.591561"], ["updated_at", "2023-02-02 16:44:43.591561"], ["name", "Fatimah Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anisa Lind"], ["description", "Esse dolor et. Est sed error. Repellat quia nobis."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:44:43.597300"], ["updated_at", "2023-02-02 16:44:43.597300"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:45:35.162744"], ["updated_at", "2023-02-02 16:45:35.162744"], ["name", "Lauralee Funk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Claude Schmitt"], ["description", "Id reiciendis et. Commodi deserunt molestiae. Magni facere quasi."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:45:35.167872"], ["updated_at", "2023-02-02 16:45:35.167872"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dillon Tillman"], ["created_at", "2023-02-02 16:45:35.179997"], ["updated_at", "2023-02-02 16:45:35.179997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Jae Waters"], ["correct", 0], ["created_at", "2023-02-02 16:45:35.183415"], ["updated_at", "2023-02-02 16:45:35.183415"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:45:35.186456"], ["updated_at", "2023-02-02 16:45:35.186456"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:45:49.857626"], ["updated_at", "2023-02-02 16:45:49.857626"], ["name", "Msgr. Hildegard Batz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Augusta Jenkins"], ["description", "Et voluptates esse. Voluptatem libero nisi. Laboriosam doloribus ut."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:45:49.862813"], ["updated_at", "2023-02-02 16:45:49.862813"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:45:49.868479"], ["updated_at", "2023-02-02 16:45:49.868479"], ["name", "Dr. Napoleon Rodriguez"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Christian Lynch"], ["created_at", "2023-02-02 16:45:49.875727"], ["updated_at", "2023-02-02 16:45:49.875727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Jeanett Bahringer"], ["correct", 0], ["created_at", "2023-02-02 16:45:49.878939"], ["updated_at", "2023-02-02 16:45:49.878939"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:45:49.881947"], ["updated_at", "2023-02-02 16:45:49.881947"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:50:46.120609"], ["updated_at", "2023-02-02 16:50:46.120609"], ["name", "Jeremy Will"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Audrey Schiller III"], ["description", "Voluptates aut non. Explicabo voluptas et. Sint expedita et."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:50:46.125828"], ["updated_at", "2023-02-02 16:50:46.125828"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:50:46.131625"], ["updated_at", "2023-02-02 16:50:46.131625"], ["name", "Golda Pouros"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lili Schaefer"], ["created_at", "2023-02-02 16:50:46.138933"], ["updated_at", "2023-02-02 16:50:46.138933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Royal Jenkins JD"], ["correct", 0], ["created_at", "2023-02-02 16:50:46.142059"], ["updated_at", "2023-02-02 16:50:46.142059"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:50:46.145190"], ["updated_at", "2023-02-02 16:50:46.145190"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.2ms) DROP TABLE IF EXISTS "survey_answers" +  (0.7ms) CREATE TABLE "survey_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "option_id" integer, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_attempts" +  (0.3ms) CREATE TABLE "survey_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "participant_type" varchar, "participant_id" integer, "survey_id" integer, "winner" boolean, "score" integer) +  (0.3ms) CREATE INDEX "index_survey_attempts_on_participant" ON "survey_attempts" ("participant_type", "participant_id") +  (0.0ms) DROP TABLE IF EXISTS "survey_options" +  (0.3ms) CREATE TABLE "survey_options" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "weight" integer DEFAULT 0, "text" varchar, "correct" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_questions" +  (0.3ms) CREATE TABLE "survey_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "text" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_surveys" +  (0.3ms) CREATE TABLE "survey_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "attempts_number" integer DEFAULT 0, "finished" boolean DEFAULT 0, "active" boolean DEFAULT 0, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "survey_type" integer) +  (0.0ms) DROP TABLE IF EXISTS "users" +  (0.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "name" varchar) +  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::SchemaMigration Pluck (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20150515173554) +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20150507140855), +(20150507141133), +(20150512173234); + + +  (0.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2023-02-02 16:51:01.734189"], ["updated_at", "2023-02-02 16:51:01.734189"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "7fd999bc936ae5e768d78a63db7c5036bf0180be"], ["created_at", "2023-02-02 16:51:01.736372"], ["updated_at", "2023-02-02 16:51:01.736372"]] + TRANSACTION (0.2ms) commit transaction + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:51:02.672588"], ["updated_at", "2023-02-02 16:51:02.672588"], ["name", "Kip Lindgren"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Britta Dickinson"], ["description", "Id vero corrupti. Beatae dolorem dolores. Ut vero rerum."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:51:02.678255"], ["updated_at", "2023-02-02 16:51:02.678255"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:51:02.684111"], ["updated_at", "2023-02-02 16:51:02.684111"], ["name", "Barrett Abshire"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Edmund Rowe"], ["created_at", "2023-02-02 16:51:02.692169"], ["updated_at", "2023-02-02 16:51:02.692169"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Temika Herzog"], ["correct", 0], ["created_at", "2023-02-02 16:51:02.695192"], ["updated_at", "2023-02-02 16:51:02.695192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:51:02.698188"], ["updated_at", "2023-02-02 16:51:02.698188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:52:08.993061"], ["updated_at", "2023-02-02 16:52:08.993061"], ["name", "Irvin Reichel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Frederic Wilkinson"], ["description", "In ut harum. Id quidem soluta. Possimus in facilis."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:52:08.998198"], ["updated_at", "2023-02-02 16:52:08.998198"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:52:09.004034"], ["updated_at", "2023-02-02 16:52:09.004034"], ["name", "Brian Bogisich LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Jani Stehr"], ["created_at", "2023-02-02 16:52:09.011331"], ["updated_at", "2023-02-02 16:52:09.011331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Andre Von"], ["correct", 0], ["created_at", "2023-02-02 16:52:09.014305"], ["updated_at", "2023-02-02 16:52:09.014305"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:52:09.017321"], ["updated_at", "2023-02-02 16:52:09.017321"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:52:09.032212"], ["updated_at", "2023-02-02 16:52:09.032212"], ["name", "The Hon. Len Botsford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Kaila Gottlieb"], ["description", "In minima placeat. Ipsum sit fugiat. At qui porro."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:52:09.033687"], ["updated_at", "2023-02-02 16:52:09.033687"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:52:09.034902"], ["updated_at", "2023-02-02 16:52:09.034902"], ["name", "Nieves Hyatt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Rodolfo Feil"], ["created_at", "2023-02-02 16:52:09.037399"], ["updated_at", "2023-02-02 16:52:09.037399"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Estrella Macejkovic"], ["correct", 0], ["created_at", "2023-02-02 16:52:09.038248"], ["updated_at", "2023-02-02 16:52:09.038248"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:52:09.039320"], ["updated_at", "2023-02-02 16:52:09.039320"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:08.357708"], ["updated_at", "2023-02-02 16:55:08.357708"], ["name", "Nery Miller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Flora Haag"], ["description", "Aspernatur laudantium voluptatum. Autem quam unde. Reprehenderit mollitia tempore."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:55:08.364048"], ["updated_at", "2023-02-02 16:55:08.364048"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:08.369842"], ["updated_at", "2023-02-02 16:55:08.369842"], ["name", "Yun Hegmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sharla Crona"], ["created_at", "2023-02-02 16:55:08.377606"], ["updated_at", "2023-02-02 16:55:08.377606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Tessie Rath"], ["correct", 0], ["created_at", "2023-02-02 16:55:08.380550"], ["updated_at", "2023-02-02 16:55:08.380550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:55:08.383584"], ["updated_at", "2023-02-02 16:55:08.383584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:08.398525"], ["updated_at", "2023-02-02 16:55:08.398525"], ["name", "Sandy Bosco"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harlan Walsh"], ["description", "Velit dolores et. Eum est sint. Dolores odit vel."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:55:08.399987"], ["updated_at", "2023-02-02 16:55:08.399987"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:08.401080"], ["updated_at", "2023-02-02 16:55:08.401080"], ["name", "Bonny Hoppe LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dave Bahringer"], ["created_at", "2023-02-02 16:55:08.403371"], ["updated_at", "2023-02-02 16:55:08.403371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "My Nitzsche"], ["correct", 0], ["created_at", "2023-02-02 16:55:08.404502"], ["updated_at", "2023-02-02 16:55:08.404502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:55:08.405591"], ["updated_at", "2023-02-02 16:55:08.405591"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:18.406006"], ["updated_at", "2023-02-02 16:55:18.406006"], ["name", "Mercedez Nicolas"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilber Schinner"], ["description", "Eius voluptas minus. Dolor laborum rerum. Porro maxime ut."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:55:18.411227"], ["updated_at", "2023-02-02 16:55:18.411227"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:18.417079"], ["updated_at", "2023-02-02 16:55:18.417079"], ["name", "Doyle Nolan LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "My Durgan DC"], ["created_at", "2023-02-02 16:55:18.424357"], ["updated_at", "2023-02-02 16:55:18.424357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Cordell Prohaska"], ["correct", 0], ["created_at", "2023-02-02 16:55:18.427585"], ["updated_at", "2023-02-02 16:55:18.427585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:55:18.430662"], ["updated_at", "2023-02-02 16:55:18.430662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:18.445462"], ["updated_at", "2023-02-02 16:55:18.445462"], ["name", "Hisako Huel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Antony Romaguera"], ["description", "Asperiores ipsam aliquid. Nulla ipsam iure. Corrupti excepturi ut."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:55:18.446929"], ["updated_at", "2023-02-02 16:55:18.446929"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:55:18.448043"], ["updated_at", "2023-02-02 16:55:18.448043"], ["name", "Melita Hane DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lakia Keeling"], ["created_at", "2023-02-02 16:55:18.450265"], ["updated_at", "2023-02-02 16:55:18.450265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Edison Grimes"], ["correct", 0], ["created_at", "2023-02-02 16:55:18.451348"], ["updated_at", "2023-02-02 16:55:18.451348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:55:18.452485"], ["updated_at", "2023-02-02 16:55:18.452485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.6ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (1.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:59:22.463652"], ["updated_at", "2023-02-02 16:59:22.463652"], ["name", "Enda West"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Beau Toy"], ["description", "Iure minima nihil. Sit qui sit. In nesciunt itaque."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:59:22.469067"], ["updated_at", "2023-02-02 16:59:22.469067"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:59:22.475087"], ["updated_at", "2023-02-02 16:59:22.475087"], ["name", "Clarice Moore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maximo Cormier"], ["created_at", "2023-02-02 16:59:22.482845"], ["updated_at", "2023-02-02 16:59:22.482845"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Karan McCullough"], ["correct", 0], ["created_at", "2023-02-02 16:59:22.486124"], ["updated_at", "2023-02-02 16:59:22.486124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:59:22.489275"], ["updated_at", "2023-02-02 16:59:22.489275"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:59:22.504931"], ["updated_at", "2023-02-02 16:59:22.504931"], ["name", "Laree Okuneva"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mitchell Franecki"], ["description", "Accusantium ex dolorem. Odit nam voluptatibus. Dolorum beatae fuga."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 16:59:22.506354"], ["updated_at", "2023-02-02 16:59:22.506354"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 16:59:22.507291"], ["updated_at", "2023-02-02 16:59:22.507291"], ["name", "Eloise Cummerata I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Neil Wiegand"], ["created_at", "2023-02-02 16:59:22.508997"], ["updated_at", "2023-02-02 16:59:22.508997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "David Bogan"], ["correct", 0], ["created_at", "2023-02-02 16:59:22.509696"], ["updated_at", "2023-02-02 16:59:22.509696"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 16:59:22.510617"], ["updated_at", "2023-02-02 16:59:22.510617"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Enoch Cormier"], ["description", "Beatae omnis sunt. Rerum repellat doloribus. Tenetur corrupti enim."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:03:07.186050"], ["updated_at", "2023-02-02 17:03:07.186050"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:03:07.193521"], ["updated_at", "2023-02-02 17:03:07.193521"], ["name", "Shavonda Kuhn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Britney Walker"], ["description", "Voluptas et sint. Veritatis commodi dolorem. Soluta minima dolore."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:03:07.201744"], ["updated_at", "2023-02-02 17:03:07.201744"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Oleta Quitzon"], ["created_at", "2023-02-02 17:03:07.202656"], ["updated_at", "2023-02-02 17:03:07.202656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chris O'Connell"], ["description", "Maxime omnis eum. Nihil voluptatibus omnis. Voluptatem ut et."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:03:07.205569"], ["updated_at", "2023-02-02 17:03:07.205569"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Msgr. Zack Balistreri"], ["created_at", "2023-02-02 17:03:07.206331"], ["updated_at", "2023-02-02 17:03:07.206331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 5], ["text", "Jack Kutch"], ["correct", 0], ["created_at", "2023-02-02 17:03:07.207060"], ["updated_at", "2023-02-02 17:03:07.207060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:03:07.208203"], ["updated_at", "2023-02-02 17:03:07.208203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.3ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Malcolm Waelchi"], ["description", "Voluptatem quos quo. Sit blanditiis non. Sit rerum quia."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.077468"], ["updated_at", "2023-02-02 17:05:56.077468"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:05:56.084258"], ["updated_at", "2023-02-02 17:05:56.084258"], ["name", "Alleen McDermott"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dion Walker"], ["description", "Pariatur cupiditate qui. Temporibus consectetur laboriosam. Iure repellendus hic."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.092156"], ["updated_at", "2023-02-02 17:05:56.092156"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ima Breitenberg MD"], ["created_at", "2023-02-02 17:05:56.093048"], ["updated_at", "2023-02-02 17:05:56.093048"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Archie Luettgen"], ["description", "Distinctio quo asperiores. Veritatis laboriosam voluptate. Sint doloribus dolores."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.095838"], ["updated_at", "2023-02-02 17:05:56.095838"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Manual Rowe Esq."], ["created_at", "2023-02-02 17:05:56.096546"], ["updated_at", "2023-02-02 17:05:56.096546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 8], ["text", "Nathan O'Connell"], ["correct", 0], ["created_at", "2023-02-02 17:05:56.097275"], ["updated_at", "2023-02-02 17:05:56.097275"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:05:56.098405"], ["updated_at", "2023-02-02 17:05:56.098405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Jason Hamill"], ["description", "Soluta harum sed. Itaque corrupti qui. Aliquid animi non."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.112157"], ["updated_at", "2023-02-02 17:05:56.112157"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:05:56.113478"], ["updated_at", "2023-02-02 17:05:56.113478"], ["name", "Magan Thiel IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lauralee Heathcote DO"], ["description", "Nisi possimus rerum. Ex delectus quidem. Id placeat et."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.116569"], ["updated_at", "2023-02-02 17:05:56.116569"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marianna Zemlak"], ["created_at", "2023-02-02 17:05:56.117558"], ["updated_at", "2023-02-02 17:05:56.117558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clinton Predovic"], ["description", "Aperiam quia omnis. Temporibus adipisci laboriosam. Voluptate beatae dolor."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.118746"], ["updated_at", "2023-02-02 17:05:56.118746"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Delilah Baumbach DDS"], ["created_at", "2023-02-02 17:05:56.119441"], ["updated_at", "2023-02-02 17:05:56.119441"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 7], ["text", "Katelyn Mosciski"], ["correct", 0], ["created_at", "2023-02-02 17:05:56.120058"], ["updated_at", "2023-02-02 17:05:56.120058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:05:56.121019"], ["updated_at", "2023-02-02 17:05:56.121019"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jenell Bogisich"], ["description", "Adipisci sed repellendus. Sequi et ipsum. Ea perspiciatis minus."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.125417"], ["updated_at", "2023-02-02 17:05:56.125417"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:05:56.126482"], ["updated_at", "2023-02-02 17:05:56.126482"], ["name", "Maybell O'Hara"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Domitila Schumm IV"], ["description", "Maxime dolorem omnis. Dolorem quia molestiae. Harum odio mollitia."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.128598"], ["updated_at", "2023-02-02 17:05:56.128598"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dorthea Rohan"], ["created_at", "2023-02-02 17:05:56.129276"], ["updated_at", "2023-02-02 17:05:56.129276"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jetta Thompson VM"], ["description", "Reprehenderit voluptas ut. Dolores veritatis perspiciatis. Quia eum possimus."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.130365"], ["updated_at", "2023-02-02 17:05:56.130365"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Glinda Schultz DDS"], ["created_at", "2023-02-02 17:05:56.131050"], ["updated_at", "2023-02-02 17:05:56.131050"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 8], ["text", "Travis Hand"], ["correct", 0], ["created_at", "2023-02-02 17:05:56.131677"], ["updated_at", "2023-02-02 17:05:56.131677"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:05:56.133042"], ["updated_at", "2023-02-02 17:05:56.133042"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chester Bogan"], ["description", "Assumenda architecto dolor. Dolorum tempore reprehenderit. Labore qui ea."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.138254"], ["updated_at", "2023-02-02 17:05:56.138254"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:05:56.139418"], ["updated_at", "2023-02-02 17:05:56.139418"], ["name", "Chasity Reinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terrell Cremin"], ["description", "Aut veniam occaecati. Aliquam ab odio. Et fugit nam."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.141674"], ["updated_at", "2023-02-02 17:05:56.141674"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jonathon Nikolaus"], ["created_at", "2023-02-02 17:05:56.142365"], ["updated_at", "2023-02-02 17:05:56.142365"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Vicente Borer"], ["description", "Non dolorum qui. Quia est repudiandae. Rerum adipisci nihil."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.143551"], ["updated_at", "2023-02-02 17:05:56.143551"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Derrick Smitham"], ["created_at", "2023-02-02 17:05:56.144244"], ["updated_at", "2023-02-02 17:05:56.144244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 0], ["text", "Leonard Mertz"], ["correct", 0], ["created_at", "2023-02-02 17:05:56.144852"], ["updated_at", "2023-02-02 17:05:56.144852"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.3ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:05:56.145753"], ["updated_at", "2023-02-02 17:05:56.145753"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Curt Wisoky"], ["description", "Sunt quae deleniti. Numquam consequatur consequuntur. Aut aperiam temporibus."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.148551"], ["updated_at", "2023-02-02 17:05:56.148551"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:05:56.149993"], ["updated_at", "2023-02-02 17:05:56.149993"], ["name", "Foster Barrows Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 4], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 4], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Germaine Harris"], ["description", "Exercitationem porro soluta. Et nihil aut. Voluptatem possimus enim."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.152647"], ["updated_at", "2023-02-02 17:05:56.152647"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 5], ["text", "Syreeta Krajcik"], ["created_at", "2023-02-02 17:05:56.153430"], ["updated_at", "2023-02-02 17:05:56.153430"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Weldon Kuhic CPA"], ["description", "Eum unde doloribus. Tenetur delectus natus. Voluptate praesentium quia."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:05:56.154582"], ["updated_at", "2023-02-02 17:05:56.154582"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 6], ["text", "Frida Jacobson"], ["created_at", "2023-02-02 17:05:56.155294"], ["updated_at", "2023-02-02 17:05:56.155294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 5], ["text", "Steve Bayer"], ["correct", 0], ["created_at", "2023-02-02 17:05:56.156205"], ["updated_at", "2023-02-02 17:05:56.156205"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-02 17:05:56.157839"], ["updated_at", "2023-02-02 17:05:56.157839"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leonida Kemmer"], ["description", "Assumenda saepe reiciendis. Repellendus enim eum. Aspernatur cupiditate nihil."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.058347"], ["updated_at", "2023-02-02 17:07:21.058347"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:07:21.064972"], ["updated_at", "2023-02-02 17:07:21.064972"], ["name", "Mckinley Jast"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Angie Koepp"], ["description", "Aspernatur aut repellendus. Quae quod perferendis. Et et odio."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.073176"], ["updated_at", "2023-02-02 17:07:21.073176"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sherry Abshire"], ["created_at", "2023-02-02 17:07:21.074118"], ["updated_at", "2023-02-02 17:07:21.074118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Osvaldo Stoltenberg IV"], ["description", "Ut et est. Laboriosam quo est. Laborum cumque eaque."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.077100"], ["updated_at", "2023-02-02 17:07:21.077100"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Sen. Benny Crona"], ["created_at", "2023-02-02 17:07:21.077818"], ["updated_at", "2023-02-02 17:07:21.077818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 2], ["text", "Dave Morar"], ["correct", 0], ["created_at", "2023-02-02 17:07:21.078551"], ["updated_at", "2023-02-02 17:07:21.078551"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:07:21.079702"], ["updated_at", "2023-02-02 17:07:21.079702"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hayley Moore"], ["description", "Quis quas et. Molestias non in. Veniam porro ullam."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.095195"], ["updated_at", "2023-02-02 17:07:21.095195"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:07:21.096452"], ["updated_at", "2023-02-02 17:07:21.096452"], ["name", "Angelica DuBuque"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Evelia Abbott PhD"], ["description", "Voluptate quibusdam quas. Magni ut quo. Rerum tempora eaque."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.099303"], ["updated_at", "2023-02-02 17:07:21.099303"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Caryn Moen"], ["created_at", "2023-02-02 17:07:21.100432"], ["updated_at", "2023-02-02 17:07:21.100432"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Blake Carter VM"], ["description", "Explicabo officia nulla. In temporibus placeat. Architecto dicta fuga."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.101674"], ["updated_at", "2023-02-02 17:07:21.101674"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Henry Roob"], ["created_at", "2023-02-02 17:07:21.102391"], ["updated_at", "2023-02-02 17:07:21.102391"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 4], ["text", "Seth Jenkins"], ["correct", 0], ["created_at", "2023-02-02 17:07:21.103101"], ["updated_at", "2023-02-02 17:07:21.103101"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:07:21.104305"], ["updated_at", "2023-02-02 17:07:21.104305"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Christeen D'Amore"], ["description", "Voluptatem molestias aperiam. Impedit consequuntur eligendi. Voluptatem et perspiciatis."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.110559"], ["updated_at", "2023-02-02 17:07:21.110559"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:07:21.111876"], ["updated_at", "2023-02-02 17:07:21.111876"], ["name", "Tamatha Mann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Crystal Kessler"], ["description", "Illo id natus. Et neque dignissimos. Praesentium dolor reprehenderit."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.114382"], ["updated_at", "2023-02-02 17:07:21.114382"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Sidney Tillman"], ["created_at", "2023-02-02 17:07:21.115187"], ["updated_at", "2023-02-02 17:07:21.115187"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ara Hills"], ["description", "Sunt earum ut. Sit alias optio. Et nisi labore."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.116767"], ["updated_at", "2023-02-02 17:07:21.116767"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Alica Mayer"], ["created_at", "2023-02-02 17:07:21.117600"], ["updated_at", "2023-02-02 17:07:21.117600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 6], ["text", "Amb. Carl Gottlieb"], ["correct", 0], ["created_at", "2023-02-02 17:07:21.118343"], ["updated_at", "2023-02-02 17:07:21.118343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:07:21.119411"], ["updated_at", "2023-02-02 17:07:21.119411"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Moshe Smith"], ["description", "Veritatis inventore enim. At molestias ipsum. Ut quam qui."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.125051"], ["updated_at", "2023-02-02 17:07:21.125051"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:07:21.126867"], ["updated_at", "2023-02-02 17:07:21.126867"], ["name", "Fred Rogahn LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tawnya Lockman"], ["description", "Suscipit voluptate totam. Voluptas eum dolores. Eligendi voluptatum ipsum."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.130779"], ["updated_at", "2023-02-02 17:07:21.130779"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lanell Schimmel"], ["created_at", "2023-02-02 17:07:21.131704"], ["updated_at", "2023-02-02 17:07:21.131704"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Lonny Cremin"], ["description", "Quo repudiandae provident. Voluptatem vel doloremque. Voluptatem sint nemo."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.133160"], ["updated_at", "2023-02-02 17:07:21.133160"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Sherron Schowalter"], ["created_at", "2023-02-02 17:07:21.134629"], ["updated_at", "2023-02-02 17:07:21.134629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 7], ["text", "Trinidad Boyle"], ["correct", 0], ["created_at", "2023-02-02 17:07:21.135705"], ["updated_at", "2023-02-02 17:07:21.135705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:07:21.136810"], ["updated_at", "2023-02-02 17:07:21.136810"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Coleman Connelly"], ["description", "Magni sit odit. Inventore delectus natus. Quia sed quidem."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.138251"], ["updated_at", "2023-02-02 17:07:21.138251"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:07:21.139071"], ["updated_at", "2023-02-02 17:07:21.139071"], ["name", "Ms. Phil Thiel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 4], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 4], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Isaiah Ledner"], ["description", "Iste id aliquid. Praesentium animi repudiandae. Praesentium rem accusantium."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.141691"], ["updated_at", "2023-02-02 17:07:21.141691"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 5], ["text", "Dane Lynch"], ["created_at", "2023-02-02 17:07:21.144030"], ["updated_at", "2023-02-02 17:07:21.144030"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayne Balistreri II"], ["description", "Est non debitis. At aliquam libero. Autem est illum."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:07:21.145911"], ["updated_at", "2023-02-02 17:07:21.145911"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 6], ["text", "Olen Weber"], ["created_at", "2023-02-02 17:07:21.146929"], ["updated_at", "2023-02-02 17:07:21.146929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 4], ["text", "Herb Bartoletti"], ["correct", 0], ["created_at", "2023-02-02 17:07:21.147612"], ["updated_at", "2023-02-02 17:07:21.147612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-02 17:07:21.148571"], ["updated_at", "2023-02-02 17:07:21.148571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lucila Schaden"], ["description", "Sunt autem magni. Qui delectus nihil. Impedit qui nisi."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.726049"], ["updated_at", "2023-02-02 17:13:04.726049"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:13:04.733005"], ["updated_at", "2023-02-02 17:13:04.733005"], ["name", "Sen. Jenny Friesen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilhemina Kerluke"], ["description", "Sed odio qui. Cupiditate vero incidunt. Doloribus fugit aliquid."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.740909"], ["updated_at", "2023-02-02 17:13:04.740909"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Son Rempel"], ["created_at", "2023-02-02 17:13:04.742054"], ["updated_at", "2023-02-02 17:13:04.742054"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Felecia Davis"], ["description", "Quia libero aliquam. Ipsa ipsam omnis. Doloremque quasi aliquid."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.744930"], ["updated_at", "2023-02-02 17:13:04.744930"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Sen. Galen Tromp"], ["created_at", "2023-02-02 17:13:04.745658"], ["updated_at", "2023-02-02 17:13:04.745658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 7], ["text", "Fletcher Toy PhD"], ["correct", 0], ["created_at", "2023-02-02 17:13:04.746423"], ["updated_at", "2023-02-02 17:13:04.746423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:13:04.747572"], ["updated_at", "2023-02-02 17:13:04.747572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (1.9ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (2.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vance Kuvalis"], ["description", "Ut aut et. Repellendus corrupti veritatis. Deleniti quae et."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.764738"], ["updated_at", "2023-02-02 17:13:04.764738"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:13:04.768250"], ["updated_at", "2023-02-02 17:13:04.768250"], ["name", "Roman Ondricka"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alfonso Boyer V"], ["description", "Adipisci deleniti inventore. Et alias cupiditate. Porro deleniti ratione."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.771220"], ["updated_at", "2023-02-02 17:13:04.771220"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Angelia Berge"], ["created_at", "2023-02-02 17:13:04.771960"], ["updated_at", "2023-02-02 17:13:04.771960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carey Hirthe"], ["description", "Delectus voluptatum et. Nulla fugit doloremque. Ipsa voluptatem atque."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.773180"], ["updated_at", "2023-02-02 17:13:04.773180"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Prudence Lesch"], ["created_at", "2023-02-02 17:13:04.773996"], ["updated_at", "2023-02-02 17:13:04.773996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 5], ["text", "Dwain Hartmann"], ["correct", 0], ["created_at", "2023-02-02 17:13:04.774642"], ["updated_at", "2023-02-02 17:13:04.774642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:13:04.775589"], ["updated_at", "2023-02-02 17:13:04.775589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stepanie Quitzon"], ["description", "Veritatis ea suscipit. Dicta deserunt quidem. Velit adipisci quae."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.780032"], ["updated_at", "2023-02-02 17:13:04.780032"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:13:04.781067"], ["updated_at", "2023-02-02 17:13:04.781067"], ["name", "Christie Runolfsdottir"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Evangeline Spinka III"], ["description", "Et consectetur harum. Repudiandae sint autem. Et provident iste."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.783208"], ["updated_at", "2023-02-02 17:13:04.783208"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Keenan Bayer"], ["created_at", "2023-02-02 17:13:04.783884"], ["updated_at", "2023-02-02 17:13:04.783884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donnette Sanford"], ["description", "Sint consequuntur facere. Est quidem sunt. Dolor repudiandae rem."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.784949"], ["updated_at", "2023-02-02 17:13:04.784949"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Paris Macejkovic"], ["created_at", "2023-02-02 17:13:04.785598"], ["updated_at", "2023-02-02 17:13:04.785598"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 0], ["text", "Amb. Marjory Hansen"], ["correct", 0], ["created_at", "2023-02-02 17:13:04.786244"], ["updated_at", "2023-02-02 17:13:04.786244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:13:04.787069"], ["updated_at", "2023-02-02 17:13:04.787069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Billi Treutel DO"], ["description", "Quos iste porro. Possimus necessitatibus quis. Consequatur aut qui."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.792403"], ["updated_at", "2023-02-02 17:13:04.792403"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:13:04.793841"], ["updated_at", "2023-02-02 17:13:04.793841"], ["name", "Errol Wiza"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Ai Koelpin"], ["description", "Ratione et impedit. Et et autem. Itaque commodi excepturi."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.798534"], ["updated_at", "2023-02-02 17:13:04.798534"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dante Mraz"], ["created_at", "2023-02-02 17:13:04.799979"], ["updated_at", "2023-02-02 17:13:04.799979"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jaye Carroll"], ["description", "Reiciendis aut dolores. Velit et at. Qui quas dolor."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.801362"], ["updated_at", "2023-02-02 17:13:04.801362"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 3], ["text", "Dr. Karl Bartoletti"], ["created_at", "2023-02-02 17:13:04.802122"], ["updated_at", "2023-02-02 17:13:04.802122"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 9], ["text", "Melisa Schuster"], ["correct", 0], ["created_at", "2023-02-02 17:13:04.802784"], ["updated_at", "2023-02-02 17:13:04.802784"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:13:04.803797"], ["updated_at", "2023-02-02 17:13:04.803797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Shavon Hamill"], ["description", "Qui fugit minima. Iure eaque molestiae. Nam perferendis harum."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.805128"], ["updated_at", "2023-02-02 17:13:04.805128"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:13:04.808483"], ["updated_at", "2023-02-02 17:13:04.808483"], ["name", "Trey Wuckert Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 4], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 4], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eugenio Crona"], ["description", "Veniam tempore id. Facilis molestiae ratione. Similique vero minima."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.811553"], ["updated_at", "2023-02-02 17:13:04.811553"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 5], ["text", "Ned Glover"], ["created_at", "2023-02-02 17:13:04.812479"], ["updated_at", "2023-02-02 17:13:04.812479"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Silas Legros"], ["description", "Inventore repellat ad. Iure quia cum. Et natus saepe."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:13:04.813629"], ["updated_at", "2023-02-02 17:13:04.813629"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 6], ["text", "Dagny Legros"], ["created_at", "2023-02-02 17:13:04.814324"], ["updated_at", "2023-02-02 17:13:04.814324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 7], ["text", "Pres. Lindsey Considine"], ["correct", 0], ["created_at", "2023-02-02 17:13:04.814978"], ["updated_at", "2023-02-02 17:13:04.814978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-02 17:13:04.815859"], ["updated_at", "2023-02-02 17:13:04.815859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.4ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.3ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Victorina Dicki"], ["description", "Et ea necessitatibus. Beatae impedit adipisci. Aut rerum veritatis."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:32:56.314181"], ["updated_at", "2023-02-02 17:32:56.314181"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sandy Moore"], ["description", "At aspernatur dolorem. Eligendi sit ad. Velit est deleniti."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:32:56.337356"], ["updated_at", "2023-02-02 17:32:56.337356"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Basil Lueilwitz"], ["description", "Non sint qui. Eligendi rerum qui. Ut expedita sit."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:32:56.340499"], ["updated_at", "2023-02-02 17:32:56.340499"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Narcisa Emmerich"], ["description", "Dicta aliquam et. Porro et cum. Odio optio quia."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:32:56.343585"], ["updated_at", "2023-02-02 17:32:56.343585"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Kristi Gutmann"], ["description", "Aliquid quam eos. Dolore eligendi nemo. Molestiae nemo ut."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:20.476472"], ["updated_at", "2023-02-02 17:33:20.476472"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Erica Batz"], ["description", "Ullam laborum neque. Enim et tempora. Quod corporis incidunt."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:20.498310"], ["updated_at", "2023-02-02 17:33:20.498310"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Trish Murphy"], ["description", "Quia sit architecto. Culpa id optio. Suscipit repellendus beatae."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:20.501535"], ["updated_at", "2023-02-02 17:33:20.501535"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jerry Abernathy"], ["description", "Debitis nesciunt voluptatem. Molestiae similique voluptatum. Voluptatem asperiores accusantium."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:20.504921"], ["updated_at", "2023-02-02 17:33:20.504921"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:33:50.916235"], ["updated_at", "2023-02-02 17:33:50.916235"], ["name", "Merrill Collier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donita Thompson"], ["description", "Quisquam veniam ducimus. Autem non ut. Et commodi odit."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:50.921342"], ["updated_at", "2023-02-02 17:33:50.921342"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:33:50.941586"], ["updated_at", "2023-02-02 17:33:50.941586"], ["name", "Cordie Rice"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Guadalupe Lesch"], ["description", "Alias id cumque. Suscipit sit reiciendis. Veritatis dolorem quia."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:50.943033"], ["updated_at", "2023-02-02 17:33:50.943033"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:33:50.945519"], ["updated_at", "2023-02-02 17:33:50.945519"], ["name", "Jong Kling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lillia McLaughlin"], ["description", "Veniam odio vero. Enim perferendis consequatur. Temporibus in eos."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:50.947235"], ["updated_at", "2023-02-02 17:33:50.947235"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:33:50.949279"], ["updated_at", "2023-02-02 17:33:50.949279"], ["name", "Joesph Emard"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Esteban Lowe"], ["description", "Tenetur aliquid temporibus. Quo mollitia in. Repellendus beatae reprehenderit."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:33:50.950511"], ["updated_at", "2023-02-02 17:33:50.950511"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:35:19.597721"], ["updated_at", "2023-02-02 17:35:19.597721"], ["name", "Vincenza Harris"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jame Schiller"], ["description", "Ducimus laudantium dolores. Et eaque iure. Consequatur numquam possimus."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:35:19.603891"], ["updated_at", "2023-02-02 17:35:19.603891"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Cory Dietrich"], ["created_at", "2023-02-02 17:35:19.616306"], ["updated_at", "2023-02-02 17:35:19.616306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Vernon O'Reilly"], ["correct", 0], ["created_at", "2023-02-02 17:35:19.619340"], ["updated_at", "2023-02-02 17:35:19.619340"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:35:19.622408"], ["updated_at", "2023-02-02 17:35:19.622408"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:35:19.637228"], ["updated_at", "2023-02-02 17:35:19.637228"], ["name", "Marisha Hermann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sparkle Casper"], ["description", "Praesentium occaecati error. Perferendis omnis eveniet. Sed non cupiditate."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:35:19.638706"], ["updated_at", "2023-02-02 17:35:19.638706"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jonas Nitzsche Sr."], ["created_at", "2023-02-02 17:35:19.641497"], ["updated_at", "2023-02-02 17:35:19.641497"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Marla Hermann IV"], ["correct", 0], ["created_at", "2023-02-02 17:35:19.642494"], ["updated_at", "2023-02-02 17:35:19.642494"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:35:19.643588"], ["updated_at", "2023-02-02 17:35:19.643588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:35:19.645606"], ["updated_at", "2023-02-02 17:35:19.645606"], ["name", "Janise Blanda"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Liza Huel Esq."], ["description", "Eligendi error eveniet. Quaerat nisi iure. Unde voluptatem et."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:35:19.646912"], ["updated_at", "2023-02-02 17:35:19.646912"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dreama Zemlak"], ["created_at", "2023-02-02 17:35:19.648889"], ["updated_at", "2023-02-02 17:35:19.648889"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Jason Zemlak II"], ["correct", 0], ["created_at", "2023-02-02 17:35:19.649626"], ["updated_at", "2023-02-02 17:35:19.649626"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:35:19.650574"], ["updated_at", "2023-02-02 17:35:19.650574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:35:19.652422"], ["updated_at", "2023-02-02 17:35:19.652422"], ["name", "Lida Weissnat"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marvin Wiza"], ["description", "Dignissimos iste aut. Laboriosam incidunt eos. Excepturi et culpa."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:35:19.653657"], ["updated_at", "2023-02-02 17:35:19.653657"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Thanh Barton"], ["created_at", "2023-02-02 17:35:19.656138"], ["updated_at", "2023-02-02 17:35:19.656138"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Cesar Russel PhD"], ["correct", 0], ["created_at", "2023-02-02 17:35:19.657219"], ["updated_at", "2023-02-02 17:35:19.657219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:35:19.658411"], ["updated_at", "2023-02-02 17:35:19.658411"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:13.159303"], ["updated_at", "2023-02-02 17:36:13.159303"], ["name", "Eda Romaguera"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Paris Pagac"], ["description", "Amet vitae quia. Temporibus doloribus optio. Inventore fuga dignissimos."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:13.164523"], ["updated_at", "2023-02-02 17:36:13.164523"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mickie Mraz"], ["created_at", "2023-02-02 17:36:13.176795"], ["updated_at", "2023-02-02 17:36:13.176795"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Hugh Pfannerstill"], ["correct", 0], ["created_at", "2023-02-02 17:36:13.179751"], ["updated_at", "2023-02-02 17:36:13.179751"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:13.182653"], ["updated_at", "2023-02-02 17:36:13.182653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:13.197611"], ["updated_at", "2023-02-02 17:36:13.197611"], ["name", "George Nienow"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clint Heller"], ["description", "Quam explicabo aut. Architecto ut qui. Tenetur minima quia."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:13.199011"], ["updated_at", "2023-02-02 17:36:13.199011"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shan Bartoletti"], ["created_at", "2023-02-02 17:36:13.201585"], ["updated_at", "2023-02-02 17:36:13.201585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Ruthanne Barton"], ["correct", 0], ["created_at", "2023-02-02 17:36:13.202734"], ["updated_at", "2023-02-02 17:36:13.202734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:13.203846"], ["updated_at", "2023-02-02 17:36:13.203846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:13.205840"], ["updated_at", "2023-02-02 17:36:13.205840"], ["name", "Deon Roberts"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gennie Ferry"], ["description", "Officiis et dolores. Vel sit aut. Quia sed ut."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:13.207028"], ["updated_at", "2023-02-02 17:36:13.207028"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Newton VonRueden DDS"], ["created_at", "2023-02-02 17:36:13.208964"], ["updated_at", "2023-02-02 17:36:13.208964"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Ora Larkin"], ["correct", 0], ["created_at", "2023-02-02 17:36:13.209717"], ["updated_at", "2023-02-02 17:36:13.209717"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:13.210641"], ["updated_at", "2023-02-02 17:36:13.210641"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:13.212417"], ["updated_at", "2023-02-02 17:36:13.212417"], ["name", "Wes Heaney"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hiroko Runolfsdottir VM"], ["description", "Voluptatum non omnis. Explicabo non provident. Cum reiciendis dignissimos."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:13.213601"], ["updated_at", "2023-02-02 17:36:13.213601"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elliot Shields"], ["created_at", "2023-02-02 17:36:13.215380"], ["updated_at", "2023-02-02 17:36:13.215380"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Sen. Carlo Schmidt"], ["correct", 0], ["created_at", "2023-02-02 17:36:13.216102"], ["updated_at", "2023-02-02 17:36:13.216102"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:13.217011"], ["updated_at", "2023-02-02 17:36:13.217011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:46.773836"], ["updated_at", "2023-02-02 17:36:46.773836"], ["name", "Prof. Rosalyn Volkman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carson Bayer"], ["description", "Et aut facilis. Aliquam et quo. Voluptas facilis et."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:46.778993"], ["updated_at", "2023-02-02 17:36:46.778993"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Nathanael Lemke"], ["created_at", "2023-02-02 17:36:46.791295"], ["updated_at", "2023-02-02 17:36:46.791295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Melita Waelchi"], ["correct", 0], ["created_at", "2023-02-02 17:36:46.794425"], ["updated_at", "2023-02-02 17:36:46.794425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:46.797507"], ["updated_at", "2023-02-02 17:36:46.797507"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:46.812433"], ["updated_at", "2023-02-02 17:36:46.812433"], ["name", "Yolando Schaden"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayla Turcotte"], ["description", "Ullam vel exercitationem. Eligendi et quae. Beatae sint dolorem."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:46.813857"], ["updated_at", "2023-02-02 17:36:46.813857"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Everett Johns"], ["created_at", "2023-02-02 17:36:46.816571"], ["updated_at", "2023-02-02 17:36:46.816571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Msgr. Katherine Carter"], ["correct", 0], ["created_at", "2023-02-02 17:36:46.817530"], ["updated_at", "2023-02-02 17:36:46.817530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:46.818621"], ["updated_at", "2023-02-02 17:36:46.818621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:46.820800"], ["updated_at", "2023-02-02 17:36:46.820800"], ["name", "Emile Klocko"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robt Heaney"], ["description", "Nulla laborum omnis. Vitae itaque nesciunt. Et qui ratione."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:46.822573"], ["updated_at", "2023-02-02 17:36:46.822573"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Natisha Ankunding"], ["created_at", "2023-02-02 17:36:46.824778"], ["updated_at", "2023-02-02 17:36:46.824778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Anibal Haley"], ["correct", 0], ["created_at", "2023-02-02 17:36:46.825522"], ["updated_at", "2023-02-02 17:36:46.825522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:46.826528"], ["updated_at", "2023-02-02 17:36:46.826528"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:36:46.828583"], ["updated_at", "2023-02-02 17:36:46.828583"], ["name", "Bulah Gottlieb VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dian Koch"], ["description", "Et numquam eos. Voluptas delectus vero. Aliquam nesciunt magnam."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:36:46.829832"], ["updated_at", "2023-02-02 17:36:46.829832"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kieth McGlynn"], ["created_at", "2023-02-02 17:36:46.831785"], ["updated_at", "2023-02-02 17:36:46.831785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Jesus Crist"], ["correct", 0], ["created_at", "2023-02-02 17:36:46.832520"], ["updated_at", "2023-02-02 17:36:46.832520"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:36:46.833577"], ["updated_at", "2023-02-02 17:36:46.833577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.6ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (1.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:39:49.055955"], ["updated_at", "2023-02-02 17:39:49.055955"], ["name", "Jimmy Schroeder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Heike Nienow V"], ["description", "Ipsum autem quam. Delectus eligendi aperiam. Voluptatem laboriosam aut."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:39:49.061060"], ["updated_at", "2023-02-02 17:39:49.061060"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clayton Stark"], ["created_at", "2023-02-02 17:39:49.073200"], ["updated_at", "2023-02-02 17:39:49.073200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Dr. Martin Sporer"], ["correct", 0], ["created_at", "2023-02-02 17:39:49.076322"], ["updated_at", "2023-02-02 17:39:49.076322"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:39:49.079392"], ["updated_at", "2023-02-02 17:39:49.079392"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:39:49.094098"], ["updated_at", "2023-02-02 17:39:49.094098"], ["name", "Altha Thiel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Thresa Leannon"], ["description", "Adipisci sed id. Asperiores fuga cupiditate. Ipsum facilis voluptate."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:39:49.095478"], ["updated_at", "2023-02-02 17:39:49.095478"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Cathy McKenzie"], ["created_at", "2023-02-02 17:39:49.098187"], ["updated_at", "2023-02-02 17:39:49.098187"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dino Sanford"], ["correct", 0], ["created_at", "2023-02-02 17:39:49.099308"], ["updated_at", "2023-02-02 17:39:49.099308"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:39:49.100437"], ["updated_at", "2023-02-02 17:39:49.100437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:39:49.103662"], ["updated_at", "2023-02-02 17:39:49.103662"], ["name", "Catalina Ward"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kelvin Wilderman"], ["description", "Voluptas est repellat. Sequi ullam ea. Tempore inventore consectetur."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:39:49.105021"], ["updated_at", "2023-02-02 17:39:49.105021"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roxana Gislason LLD"], ["created_at", "2023-02-02 17:39:49.107073"], ["updated_at", "2023-02-02 17:39:49.107073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Ms. Gavin Larkin"], ["correct", 0], ["created_at", "2023-02-02 17:39:49.107819"], ["updated_at", "2023-02-02 17:39:49.107819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:39:49.108762"], ["updated_at", "2023-02-02 17:39:49.108762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:39:49.112197"], ["updated_at", "2023-02-02 17:39:49.112197"], ["name", "Jewell Will DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Agnus Rodriguez"], ["description", "Aut consectetur et. At ut quam. Dolorem facere quidem."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:39:49.113807"], ["updated_at", "2023-02-02 17:39:49.113807"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Austin Bayer"], ["created_at", "2023-02-02 17:39:49.116737"], ["updated_at", "2023-02-02 17:39:49.116737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Amb. Frank Halvorson"], ["correct", 0], ["created_at", "2023-02-02 17:39:49.117660"], ["updated_at", "2023-02-02 17:39:49.117660"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:39:49.118683"], ["updated_at", "2023-02-02 17:39:49.118683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:40:29.435609"], ["updated_at", "2023-02-02 17:40:29.435609"], ["name", "Jimmie Torp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:40:29.452180"], ["updated_at", "2023-02-02 17:40:29.452180"], ["name", "Dr. Milo Block"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:40:29.455159"], ["updated_at", "2023-02-02 17:40:29.455159"], ["name", "Amb. Michel Monahan"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:40:29.457892"], ["updated_at", "2023-02-02 17:40:29.457892"], ["name", "Ramon Schumm"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:41:48.068658"], ["updated_at", "2023-02-02 17:41:48.068658"], ["name", "Prof. Inga Cassin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:41:48.089065"], ["updated_at", "2023-02-02 17:41:48.089065"], ["name", "Elana Tillman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:41:48.092565"], ["updated_at", "2023-02-02 17:41:48.092565"], ["name", "The Hon. Lonnie McLaughlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:41:48.095496"], ["updated_at", "2023-02-02 17:41:48.095496"], ["name", "Markita Cummerata"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:22.658880"], ["updated_at", "2023-02-02 17:42:22.658880"], ["name", "Martine Johnston III"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:22.675761"], ["updated_at", "2023-02-02 17:42:22.675761"], ["name", "Jonell Simonis"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:22.678423"], ["updated_at", "2023-02-02 17:42:22.678423"], ["name", "Ladawn Gottlieb"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:22.681288"], ["updated_at", "2023-02-02 17:42:22.681288"], ["name", "Mauro Gislason"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:35.045399"], ["updated_at", "2023-02-02 17:42:35.045399"], ["name", "Brandi Quigley DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:35.067338"], ["updated_at", "2023-02-02 17:42:35.067338"], ["name", "Enda Lindgren"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:35.070698"], ["updated_at", "2023-02-02 17:42:35.070698"], ["name", "Anderson Schroeder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:42:35.074118"], ["updated_at", "2023-02-02 17:42:35.074118"], ["name", "Carletta Cronin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:01.384267"], ["updated_at", "2023-02-02 17:44:01.384267"], ["name", "Nigel Gutkowski DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Renita Hirthe"], ["description", "Id qui rerum. Laborum sunt nihil. Eum ea est."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:01.389388"], ["updated_at", "2023-02-02 17:44:01.389388"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pedro Ferry II"], ["created_at", "2023-02-02 17:44:01.402244"], ["updated_at", "2023-02-02 17:44:01.402244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Vanetta Heathcote Jr."], ["correct", 0], ["created_at", "2023-02-02 17:44:01.405508"], ["updated_at", "2023-02-02 17:44:01.405508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.3ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:01.408538"], ["updated_at", "2023-02-02 17:44:01.408538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:01.423972"], ["updated_at", "2023-02-02 17:44:01.423972"], ["name", "Ms. Brooks Bradtke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Xavier DuBuque"], ["description", "Sint consequatur voluptatem. At accusantium sit. Autem assumenda error."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:01.425433"], ["updated_at", "2023-02-02 17:44:01.425433"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kina Gulgowski"], ["created_at", "2023-02-02 17:44:01.427993"], ["updated_at", "2023-02-02 17:44:01.427993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carletta Koelpin"], ["correct", 0], ["created_at", "2023-02-02 17:44:01.428983"], ["updated_at", "2023-02-02 17:44:01.428983"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:01.430370"], ["updated_at", "2023-02-02 17:44:01.430370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:01.432496"], ["updated_at", "2023-02-02 17:44:01.432496"], ["name", "Zachariah Boyle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Carlee McLaughlin"], ["description", "Voluptatem numquam mollitia. Omnis necessitatibus reiciendis. Non odit voluptatem."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:01.433772"], ["updated_at", "2023-02-02 17:44:01.433772"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Sam Glover"], ["created_at", "2023-02-02 17:44:01.435757"], ["updated_at", "2023-02-02 17:44:01.435757"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Tonia Mitchell PhD"], ["correct", 0], ["created_at", "2023-02-02 17:44:01.436507"], ["updated_at", "2023-02-02 17:44:01.436507"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:01.437457"], ["updated_at", "2023-02-02 17:44:01.437457"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:01.439329"], ["updated_at", "2023-02-02 17:44:01.439329"], ["name", "Haydee Morissette"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nickolas Gibson"], ["description", "Quo perspiciatis necessitatibus. Sed est enim. Minus sed dolorem."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:01.440517"], ["updated_at", "2023-02-02 17:44:01.440517"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elmer Brown"], ["created_at", "2023-02-02 17:44:01.442338"], ["updated_at", "2023-02-02 17:44:01.442338"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Basil Luettgen"], ["correct", 0], ["created_at", "2023-02-02 17:44:01.443039"], ["updated_at", "2023-02-02 17:44:01.443039"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:01.443976"], ["updated_at", "2023-02-02 17:44:01.443976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:33.479696"], ["updated_at", "2023-02-02 17:44:33.479696"], ["name", "Major Reilly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carisa Volkman"], ["description", "Aperiam ut pariatur. Vel aspernatur facilis. A omnis incidunt."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:33.485235"], ["updated_at", "2023-02-02 17:44:33.485235"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donald Kuhlman"], ["created_at", "2023-02-02 17:44:33.497449"], ["updated_at", "2023-02-02 17:44:33.497449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Ivonne Connelly CPA"], ["correct", 0], ["created_at", "2023-02-02 17:44:33.500498"], ["updated_at", "2023-02-02 17:44:33.500498"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:33.503511"], ["updated_at", "2023-02-02 17:44:33.503511"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (4.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:33.522843"], ["updated_at", "2023-02-02 17:44:33.522843"], ["name", "Msgr. Nobuko Morissette"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vina Rohan MD"], ["description", "Numquam quidem veniam. Doloribus accusamus dolor. Magni non blanditiis."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:33.524441"], ["updated_at", "2023-02-02 17:44:33.524441"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Denver DuBuque"], ["created_at", "2023-02-02 17:44:33.527387"], ["updated_at", "2023-02-02 17:44:33.527387"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Mr. Edyth Rice"], ["correct", 0], ["created_at", "2023-02-02 17:44:33.528298"], ["updated_at", "2023-02-02 17:44:33.528298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:33.529398"], ["updated_at", "2023-02-02 17:44:33.529398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:33.531880"], ["updated_at", "2023-02-02 17:44:33.531880"], ["name", "Bud Howell DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Kenneth Kutch"], ["description", "Et ut voluptatem. Animi vero odit. Quis aliquam aut."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:33.533425"], ["updated_at", "2023-02-02 17:44:33.533425"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Norman Connelly"], ["created_at", "2023-02-02 17:44:33.535628"], ["updated_at", "2023-02-02 17:44:33.535628"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Hillary Fadel"], ["correct", 0], ["created_at", "2023-02-02 17:44:33.536427"], ["updated_at", "2023-02-02 17:44:33.536427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:33.537485"], ["updated_at", "2023-02-02 17:44:33.537485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:44:33.539603"], ["updated_at", "2023-02-02 17:44:33.539603"], ["name", "Norman Bechtelar"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Palmer Leffler LLD"], ["description", "Accusantium expedita consequatur. Et ullam ut. Quaerat itaque aliquam."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:44:33.541031"], ["updated_at", "2023-02-02 17:44:33.541031"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Allyson Mueller"], ["created_at", "2023-02-02 17:44:33.543163"], ["updated_at", "2023-02-02 17:44:33.543163"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Elvin Ledner"], ["correct", 0], ["created_at", "2023-02-02 17:44:33.543908"], ["updated_at", "2023-02-02 17:44:33.543908"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:44:33.544920"], ["updated_at", "2023-02-02 17:44:33.544920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:45:43.544695"], ["updated_at", "2023-02-02 17:45:43.544695"], ["name", "Louis Gutmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Virgilio McKenzie"], ["description", "Qui commodi esse. Quia et beatae. Iure consequuntur commodi."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:45:43.550339"], ["updated_at", "2023-02-02 17:45:43.550339"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kisha Koepp"], ["created_at", "2023-02-02 17:45:43.562786"], ["updated_at", "2023-02-02 17:45:43.562786"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Buford Bogisich"], ["correct", 0], ["created_at", "2023-02-02 17:45:43.565846"], ["updated_at", "2023-02-02 17:45:43.565846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:45:43.568967"], ["updated_at", "2023-02-02 17:45:43.568967"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:45:43.586615"], ["updated_at", "2023-02-02 17:45:43.586615"], ["name", "Herb Hackett"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dorian Halvorson"], ["description", "Voluptates fugiat quam. Rem ipsa et. Tempora et aut."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:45:43.588066"], ["updated_at", "2023-02-02 17:45:43.588066"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Percy Anderson"], ["created_at", "2023-02-02 17:45:43.590872"], ["updated_at", "2023-02-02 17:45:43.590872"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Will Steuber"], ["correct", 0], ["created_at", "2023-02-02 17:45:43.591890"], ["updated_at", "2023-02-02 17:45:43.591890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:45:43.592996"], ["updated_at", "2023-02-02 17:45:43.592996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:45:43.595002"], ["updated_at", "2023-02-02 17:45:43.595002"], ["name", "Vito Mertz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Ronny Sipes"], ["description", "Vero molestias dignissimos. Dolore est doloribus. Beatae architecto dolorem."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:45:43.596519"], ["updated_at", "2023-02-02 17:45:43.596519"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chung Shanahan"], ["created_at", "2023-02-02 17:45:43.598900"], ["updated_at", "2023-02-02 17:45:43.598900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Tommie Kertzmann"], ["correct", 0], ["created_at", "2023-02-02 17:45:43.599659"], ["updated_at", "2023-02-02 17:45:43.599659"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:45:43.600670"], ["updated_at", "2023-02-02 17:45:43.600670"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:45:43.602867"], ["updated_at", "2023-02-02 17:45:43.602867"], ["name", "Brain Reichert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Antoine Anderson"], ["description", "Maiores voluptatibus fugiat. Modi esse voluptatem. Nobis quo beatae."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:45:43.604262"], ["updated_at", "2023-02-02 17:45:43.604262"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arlen Tillman"], ["created_at", "2023-02-02 17:45:43.606220"], ["updated_at", "2023-02-02 17:45:43.606220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Herschel Gislason"], ["correct", 0], ["created_at", "2023-02-02 17:45:43.606952"], ["updated_at", "2023-02-02 17:45:43.606952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:45:43.607976"], ["updated_at", "2023-02-02 17:45:43.607976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.3ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.2ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.2ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (1.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:48:06.613568"], ["updated_at", "2023-02-02 17:48:06.613568"], ["name", "Burton Feil"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Jenifer Lynch"], ["description", "Nulla numquam perferendis. Harum et optio. Id aut aperiam."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:48:06.618858"], ["updated_at", "2023-02-02 17:48:06.618858"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tawana Wiza"], ["created_at", "2023-02-02 17:48:06.631234"], ["updated_at", "2023-02-02 17:48:06.631234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Msgr. Antione Feest"], ["correct", 0], ["created_at", "2023-02-02 17:48:06.634317"], ["updated_at", "2023-02-02 17:48:06.634317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:48:06.637353"], ["updated_at", "2023-02-02 17:48:06.637353"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:48:06.652061"], ["updated_at", "2023-02-02 17:48:06.652061"], ["name", "Mohammed Jast"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alexia Runolfsdottir"], ["description", "Vero et minima. Necessitatibus incidunt natus. Repellat non recusandae."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:48:06.653478"], ["updated_at", "2023-02-02 17:48:06.653478"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elli Mante"], ["created_at", "2023-02-02 17:48:06.655970"], ["updated_at", "2023-02-02 17:48:06.655970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Erwin Weber"], ["correct", 0], ["created_at", "2023-02-02 17:48:06.656990"], ["updated_at", "2023-02-02 17:48:06.656990"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:48:06.658087"], ["updated_at", "2023-02-02 17:48:06.658087"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:48:06.660104"], ["updated_at", "2023-02-02 17:48:06.660104"], ["name", "Earnest Keeling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mattie Swaniawski"], ["description", "Sunt magnam mollitia. Unde placeat accusamus. Eligendi qui culpa."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:48:06.661441"], ["updated_at", "2023-02-02 17:48:06.661441"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Onie Zboncak"], ["created_at", "2023-02-02 17:48:06.663437"], ["updated_at", "2023-02-02 17:48:06.663437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Kimbery Halvorson"], ["correct", 0], ["created_at", "2023-02-02 17:48:06.664184"], ["updated_at", "2023-02-02 17:48:06.664184"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:48:06.665423"], ["updated_at", "2023-02-02 17:48:06.665423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:48:06.668239"], ["updated_at", "2023-02-02 17:48:06.668239"], ["name", "Donn Bergnaum Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zachery Schowalter"], ["description", "Molestiae natus illo. Ea consequuntur quos. Quam quisquam quia."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:48:06.669715"], ["updated_at", "2023-02-02 17:48:06.669715"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ken Durgan"], ["created_at", "2023-02-02 17:48:06.671766"], ["updated_at", "2023-02-02 17:48:06.671766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Tamiko Lemke"], ["correct", 0], ["created_at", "2023-02-02 17:48:06.672487"], ["updated_at", "2023-02-02 17:48:06.672487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:48:06.673601"], ["updated_at", "2023-02-02 17:48:06.673601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:55:13.430567"], ["updated_at", "2023-02-02 17:55:13.430567"], ["name", "Craig Ward"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vina Friesen"], ["description", "Et nisi qui. Laudantium vel quod. Quaerat facilis eaque."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:55:13.437030"], ["updated_at", "2023-02-02 17:55:13.437030"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Renato Gorczany"], ["created_at", "2023-02-02 17:55:13.449528"], ["updated_at", "2023-02-02 17:55:13.449528"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Jacqueline McDermott"], ["correct", 0], ["created_at", "2023-02-02 17:55:13.452600"], ["updated_at", "2023-02-02 17:55:13.452600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:55:13.455670"], ["updated_at", "2023-02-02 17:55:13.455670"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:55:13.470389"], ["updated_at", "2023-02-02 17:55:13.470389"], ["name", "Harland Yundt II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lanie Harris"], ["description", "Magnam vel quia. Id inventore quos. Ut excepturi eum."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:55:13.471819"], ["updated_at", "2023-02-02 17:55:13.471819"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sofia Heller"], ["created_at", "2023-02-02 17:55:13.474417"], ["updated_at", "2023-02-02 17:55:13.474417"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Murray Parker"], ["correct", 0], ["created_at", "2023-02-02 17:55:13.475367"], ["updated_at", "2023-02-02 17:55:13.475367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.5ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:55:13.476473"], ["updated_at", "2023-02-02 17:55:13.476473"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (1.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:55:13.480599"], ["updated_at", "2023-02-02 17:55:13.480599"], ["name", "Kirk Schaden"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Danyelle Fritsch"], ["description", "Ab aut sint. Fuga error et. Non tempore voluptas."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:55:13.482176"], ["updated_at", "2023-02-02 17:55:13.482176"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Israel Volkman"], ["created_at", "2023-02-02 17:55:13.484249"], ["updated_at", "2023-02-02 17:55:13.484249"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Imogene Wyman"], ["correct", 0], ["created_at", "2023-02-02 17:55:13.485038"], ["updated_at", "2023-02-02 17:55:13.485038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:55:13.486165"], ["updated_at", "2023-02-02 17:55:13.486165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:55:13.488341"], ["updated_at", "2023-02-02 17:55:13.488341"], ["name", "Domenic Huels"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Evonne Christiansen"], ["description", "Similique quo tempore. Et eius consequatur. Est quam ut."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:55:13.489978"], ["updated_at", "2023-02-02 17:55:13.489978"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ray Runolfsson"], ["created_at", "2023-02-02 17:55:13.491992"], ["updated_at", "2023-02-02 17:55:13.491992"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Tiesha Kassulke"], ["correct", 0], ["created_at", "2023-02-02 17:55:13.492771"], ["updated_at", "2023-02-02 17:55:13.492771"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:55:13.493804"], ["updated_at", "2023-02-02 17:55:13.493804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.3ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:55:13.505656"], ["updated_at", "2023-02-02 17:55:13.505656"], ["name", "Alfonzo Hickle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bambi Towne"], ["description", "Deleniti aut omnis. Molestias et nisi. Qui ipsa autem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:55:13.507710"], ["updated_at", "2023-02-02 17:55:13.507710"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.7ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (1.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:45.938810"], ["updated_at", "2023-02-02 17:59:45.938810"], ["name", "Kurtis King DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Justa Larson Jr."], ["description", "Consequatur quae rerum. Molestias voluptatem sed. Qui nemo voluptates."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:45.944584"], ["updated_at", "2023-02-02 17:59:45.944584"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carma Lueilwitz"], ["created_at", "2023-02-02 17:59:45.957134"], ["updated_at", "2023-02-02 17:59:45.957134"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Krystina Sipes"], ["correct", 0], ["created_at", "2023-02-02 17:59:45.960076"], ["updated_at", "2023-02-02 17:59:45.960076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:59:45.963066"], ["updated_at", "2023-02-02 17:59:45.963066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:45.978058"], ["updated_at", "2023-02-02 17:59:45.978058"], ["name", "Britt Hessel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Virginia Pouros"], ["description", "Dolorem quam delectus. Expedita aliquam similique. Pariatur qui voluptatibus."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:45.979524"], ["updated_at", "2023-02-02 17:59:45.979524"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Harriette Bergnaum"], ["created_at", "2023-02-02 17:59:45.982266"], ["updated_at", "2023-02-02 17:59:45.982266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Rupert Gorczany"], ["correct", 0], ["created_at", "2023-02-02 17:59:45.983243"], ["updated_at", "2023-02-02 17:59:45.983243"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:59:45.984313"], ["updated_at", "2023-02-02 17:59:45.984313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:45.986415"], ["updated_at", "2023-02-02 17:59:45.986415"], ["name", "Msgr. Zachariah Romaguera"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julius Kihn"], ["description", "Consequatur vitae nostrum. Perspiciatis est rem. Eaque quidem sunt."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:45.987834"], ["updated_at", "2023-02-02 17:59:45.987834"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Colby Mayert"], ["created_at", "2023-02-02 17:59:45.989882"], ["updated_at", "2023-02-02 17:59:45.989882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dr. Sylvie O'Conner"], ["correct", 0], ["created_at", "2023-02-02 17:59:45.990833"], ["updated_at", "2023-02-02 17:59:45.990833"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:59:45.992179"], ["updated_at", "2023-02-02 17:59:45.992179"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:45.994631"], ["updated_at", "2023-02-02 17:59:45.994631"], ["name", "Mr. Alfred Ondricka"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rose Cassin"], ["description", "Aut qui iusto. Ut quia ab. Voluptatem ut omnis."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:45.996020"], ["updated_at", "2023-02-02 17:59:45.996020"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marylynn Spencer"], ["created_at", "2023-02-02 17:59:45.998095"], ["updated_at", "2023-02-02 17:59:45.998095"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "William Fisher"], ["correct", 0], ["created_at", "2023-02-02 17:59:45.998865"], ["updated_at", "2023-02-02 17:59:45.998865"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 17:59:45.999888"], ["updated_at", "2023-02-02 17:59:45.999888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:46.009366"], ["updated_at", "2023-02-02 17:59:46.009366"], ["name", "Amb. Chi Keeling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Esteban Skiles"], ["description", "Rerum repellendus et. Dignissimos accusamus assumenda. Quasi necessitatibus rerum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:46.011050"], ["updated_at", "2023-02-02 17:59:46.011050"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 17:59:46.014699"], ["updated_at", "2023-02-02 17:59:46.014699"], ["name", "Esmeralda Aufderhar"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Tamisha Sporer"], ["description", "Molestiae magni rerum. A est occaecati. Non earum officiis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 17:59:46.017394"], ["updated_at", "2023-02-02 17:59:46.017394"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.2ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.374724"], ["updated_at", "2023-02-02 18:00:03.374724"], ["name", "Samuel Bednar"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Megan Dicki JD"], ["description", "Facilis natus quibusdam. Sunt quia vel. Vel natus et."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.379867"], ["updated_at", "2023-02-02 18:00:03.379867"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Idella Von IV"], ["created_at", "2023-02-02 18:00:03.392059"], ["updated_at", "2023-02-02 18:00:03.392059"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Rev. Annika McClure"], ["correct", 0], ["created_at", "2023-02-02 18:00:03.395223"], ["updated_at", "2023-02-02 18:00:03.395223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:00:03.398266"], ["updated_at", "2023-02-02 18:00:03.398266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.412873"], ["updated_at", "2023-02-02 18:00:03.412873"], ["name", "Tomi Dietrich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shaina McLaughlin"], ["description", "Nostrum aliquid eius. Veritatis non qui. Dignissimos perspiciatis distinctio."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.414277"], ["updated_at", "2023-02-02 18:00:03.414277"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Harrison Hegmann"], ["created_at", "2023-02-02 18:00:03.416819"], ["updated_at", "2023-02-02 18:00:03.416819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Emmett Grant"], ["correct", 0], ["created_at", "2023-02-02 18:00:03.417766"], ["updated_at", "2023-02-02 18:00:03.417766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:00:03.418817"], ["updated_at", "2023-02-02 18:00:03.418817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.421028"], ["updated_at", "2023-02-02 18:00:03.421028"], ["name", "Ofelia Hackett"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jena Dooley"], ["description", "Molestiae similique mollitia. Qui quo assumenda. Consequatur error voluptatem."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.422342"], ["updated_at", "2023-02-02 18:00:03.422342"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elliot Swift"], ["created_at", "2023-02-02 18:00:03.424287"], ["updated_at", "2023-02-02 18:00:03.424287"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Rev. Akiko Macejkovic"], ["correct", 0], ["created_at", "2023-02-02 18:00:03.425023"], ["updated_at", "2023-02-02 18:00:03.425023"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:00:03.425952"], ["updated_at", "2023-02-02 18:00:03.425952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.427936"], ["updated_at", "2023-02-02 18:00:03.427936"], ["name", "Shawanna Wolf"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lillian Corwin"], ["description", "Dolorem consequatur nemo. Iste autem distinctio. Repellendus aut aspernatur."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.429221"], ["updated_at", "2023-02-02 18:00:03.429221"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gonzalo Lebsack"], ["created_at", "2023-02-02 18:00:03.431100"], ["updated_at", "2023-02-02 18:00:03.431100"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Msgr. Opal Mann"], ["correct", 0], ["created_at", "2023-02-02 18:00:03.431834"], ["updated_at", "2023-02-02 18:00:03.431834"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:00:03.433023"], ["updated_at", "2023-02-02 18:00:03.433023"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.442727"], ["updated_at", "2023-02-02 18:00:03.442727"], ["name", "Collen Terry"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sean Predovic"], ["description", "Ratione ut enim. Incidunt illum dolorem. Architecto aut sapiente."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.444392"], ["updated_at", "2023-02-02 18:00:03.444392"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:00:03.459543"], ["updated_at", "2023-02-02 18:00:03.459543"], ["name", "Ms. Robert Douglas"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wendell Kuhic"], ["description", "Qui error deleniti. Enim quod inventore. Et labore earum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:00:03.461055"], ["updated_at", "2023-02-02 18:00:03.461055"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.152033"], ["updated_at", "2023-02-02 18:01:16.152033"], ["name", "Kerry Harvey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aide Powlowski"], ["description", "Aliquam ducimus culpa. Fuga id molestiae. Officiis beatae labore."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.157647"], ["updated_at", "2023-02-02 18:01:16.157647"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Abe Treutel"], ["created_at", "2023-02-02 18:01:16.170054"], ["updated_at", "2023-02-02 18:01:16.170054"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gov. Ellen Schumm"], ["correct", 0], ["created_at", "2023-02-02 18:01:16.173324"], ["updated_at", "2023-02-02 18:01:16.173324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:16.176405"], ["updated_at", "2023-02-02 18:01:16.176405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.191148"], ["updated_at", "2023-02-02 18:01:16.191148"], ["name", "Bernie Watsica IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miranda Schmeler II"], ["description", "Magnam consequatur culpa. Qui velit commodi. Suscipit quis facilis."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.192606"], ["updated_at", "2023-02-02 18:01:16.192606"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darnell Padberg"], ["created_at", "2023-02-02 18:01:16.195250"], ["updated_at", "2023-02-02 18:01:16.195250"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Owen Nolan"], ["correct", 0], ["created_at", "2023-02-02 18:01:16.196140"], ["updated_at", "2023-02-02 18:01:16.196140"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:16.197217"], ["updated_at", "2023-02-02 18:01:16.197217"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.199399"], ["updated_at", "2023-02-02 18:01:16.199399"], ["name", "Rep. Jesse Heidenreich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shawanda Auer"], ["description", "Modi ad et. Nemo voluptate voluptatum. Quisquam sequi animi."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.200831"], ["updated_at", "2023-02-02 18:01:16.200831"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Craig West"], ["created_at", "2023-02-02 18:01:16.202851"], ["updated_at", "2023-02-02 18:01:16.202851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jim Huel I"], ["correct", 0], ["created_at", "2023-02-02 18:01:16.203614"], ["updated_at", "2023-02-02 18:01:16.203614"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:16.204746"], ["updated_at", "2023-02-02 18:01:16.204746"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.207579"], ["updated_at", "2023-02-02 18:01:16.207579"], ["name", "Jesus Towne"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ulysses Runolfsdottir"], ["description", "Consequatur ipsam eos. Nulla est et. Ut totam aut."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.209258"], ["updated_at", "2023-02-02 18:01:16.209258"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Adell Cruickshank"], ["created_at", "2023-02-02 18:01:16.211503"], ["updated_at", "2023-02-02 18:01:16.211503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Suanne Ritchie VM"], ["correct", 0], ["created_at", "2023-02-02 18:01:16.212393"], ["updated_at", "2023-02-02 18:01:16.212393"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:16.214659"], ["updated_at", "2023-02-02 18:01:16.214659"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.224960"], ["updated_at", "2023-02-02 18:01:16.224960"], ["name", "Nina Christiansen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rickie Hahn"], ["description", "Molestiae fuga est. Nihil sit doloremque. Nobis consequatur sunt."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.226425"], ["updated_at", "2023-02-02 18:01:16.226425"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.5ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:16.241078"], ["updated_at", "2023-02-02 18:01:16.241078"], ["name", "Leslie Kunze"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tamie Ortiz"], ["description", "Fugiat sit cumque. Dignissimos excepturi repellat. Sequi illum fugit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:16.242622"], ["updated_at", "2023-02-02 18:01:16.242622"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.110220"], ["updated_at", "2023-02-02 18:01:51.110220"], ["name", "Deandrea Hansen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carola Hudson"], ["description", "Et consequatur eum. Pariatur reiciendis libero. Aliquam et ratione."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.115384"], ["updated_at", "2023-02-02 18:01:51.115384"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.4ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bennie Spencer"], ["created_at", "2023-02-02 18:01:51.127566"], ["updated_at", "2023-02-02 18:01:51.127566"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Syreeta Jacobi"], ["correct", 0], ["created_at", "2023-02-02 18:01:51.131104"], ["updated_at", "2023-02-02 18:01:51.131104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:51.134188"], ["updated_at", "2023-02-02 18:01:51.134188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.149196"], ["updated_at", "2023-02-02 18:01:51.149196"], ["name", "Alphonso Schmeler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dusty Funk"], ["description", "Tempore nihil voluptatem. Molestias error itaque. Odio est veniam."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.150618"], ["updated_at", "2023-02-02 18:01:51.150618"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brittni Sanford PhD"], ["created_at", "2023-02-02 18:01:51.153245"], ["updated_at", "2023-02-02 18:01:51.153245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Regine Paucek"], ["correct", 0], ["created_at", "2023-02-02 18:01:51.154290"], ["updated_at", "2023-02-02 18:01:51.154290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:51.155424"], ["updated_at", "2023-02-02 18:01:51.155424"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.157472"], ["updated_at", "2023-02-02 18:01:51.157472"], ["name", "Nada Collins PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Toney Runolfsson"], ["description", "Nostrum doloremque ut. Totam eos dolorem. Ad non vitae."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.159046"], ["updated_at", "2023-02-02 18:01:51.159046"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Val Okuneva"], ["created_at", "2023-02-02 18:01:51.161109"], ["updated_at", "2023-02-02 18:01:51.161109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Shena Schuppe"], ["correct", 0], ["created_at", "2023-02-02 18:01:51.161840"], ["updated_at", "2023-02-02 18:01:51.161840"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:51.162827"], ["updated_at", "2023-02-02 18:01:51.162827"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.164761"], ["updated_at", "2023-02-02 18:01:51.164761"], ["name", "Assunta Kertzmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donte Graham"], ["description", "Aliquid omnis pariatur. Et quidem qui. Nobis eum aut."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.165963"], ["updated_at", "2023-02-02 18:01:51.165963"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Daysi Dooley"], ["created_at", "2023-02-02 18:01:51.167832"], ["updated_at", "2023-02-02 18:01:51.167832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Kareem Mueller"], ["correct", 0], ["created_at", "2023-02-02 18:01:51.168539"], ["updated_at", "2023-02-02 18:01:51.168539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:01:51.169470"], ["updated_at", "2023-02-02 18:01:51.169470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.178878"], ["updated_at", "2023-02-02 18:01:51.178878"], ["name", "Jackie West"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Graciela Reichel"], ["description", "Voluptatem quaerat qui. Neque tenetur qui. Molestiae et et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.180328"], ["updated_at", "2023-02-02 18:01:51.180328"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:01:51.191398"], ["updated_at", "2023-02-02 18:01:51.191398"], ["name", "Wiley Bauch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Norbert Balistreri III"], ["description", "Non necessitatibus alias. Dolore ipsa reprehenderit. Aperiam eligendi explicabo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:01:51.194561"], ["updated_at", "2023-02-02 18:01:51.194561"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.383073"], ["updated_at", "2023-02-02 18:02:50.383073"], ["name", "Celesta Beier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Williams Lueilwitz"], ["description", "Cum asperiores sunt. Ducimus vitae necessitatibus. Quisquam ea quos."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.389394"], ["updated_at", "2023-02-02 18:02:50.389394"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cordell Mraz"], ["created_at", "2023-02-02 18:02:50.402004"], ["updated_at", "2023-02-02 18:02:50.402004"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Kristopher Batz LLD"], ["correct", 0], ["created_at", "2023-02-02 18:02:50.405027"], ["updated_at", "2023-02-02 18:02:50.405027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:02:50.408074"], ["updated_at", "2023-02-02 18:02:50.408074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.423056"], ["updated_at", "2023-02-02 18:02:50.423056"], ["name", "Wilmer Stroman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fairy Kling"], ["description", "Et vero iure. Consequatur et vitae. Dolor est aliquid."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.424489"], ["updated_at", "2023-02-02 18:02:50.424489"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Coreen Halvorson PhD"], ["created_at", "2023-02-02 18:02:50.427179"], ["updated_at", "2023-02-02 18:02:50.427179"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Georgeann Bode"], ["correct", 0], ["created_at", "2023-02-02 18:02:50.428151"], ["updated_at", "2023-02-02 18:02:50.428151"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:02:50.429263"], ["updated_at", "2023-02-02 18:02:50.429263"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.431278"], ["updated_at", "2023-02-02 18:02:50.431278"], ["name", "Marnie Brown"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Velia Schumm"], ["description", "Ratione nesciunt ea. Velit in voluptate. Aliquid quis quia."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.432581"], ["updated_at", "2023-02-02 18:02:50.432581"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. James Strosin"], ["created_at", "2023-02-02 18:02:50.434599"], ["updated_at", "2023-02-02 18:02:50.434599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "The Hon. Lavon Harber"], ["correct", 0], ["created_at", "2023-02-02 18:02:50.435358"], ["updated_at", "2023-02-02 18:02:50.435358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:02:50.436347"], ["updated_at", "2023-02-02 18:02:50.436347"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.438362"], ["updated_at", "2023-02-02 18:02:50.438362"], ["name", "Brock Mosciski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosanne Doyle"], ["description", "Impedit laboriosam culpa. Cupiditate incidunt dolores. Sunt incidunt pariatur."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.440143"], ["updated_at", "2023-02-02 18:02:50.440143"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Dominic Prosacco"], ["created_at", "2023-02-02 18:02:50.442882"], ["updated_at", "2023-02-02 18:02:50.442882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Santos Raynor III"], ["correct", 0], ["created_at", "2023-02-02 18:02:50.444022"], ["updated_at", "2023-02-02 18:02:50.444022"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:02:50.445234"], ["updated_at", "2023-02-02 18:02:50.445234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.454834"], ["updated_at", "2023-02-02 18:02:50.454834"], ["name", "Lashanda Hammes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lucius Renner"], ["description", "Veritatis consequatur non. Et et sed. A quidem itaque."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.456385"], ["updated_at", "2023-02-02 18:02:50.456385"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.7ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:02:50.469812"], ["updated_at", "2023-02-02 18:02:50.469812"], ["name", "Leon Von"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eddy Simonis"], ["description", "Sunt et sed. Voluptate aut et. Dolores quis et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:02:50.472766"], ["updated_at", "2023-02-02 18:02:50.472766"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.210475"], ["updated_at", "2023-02-02 18:03:49.210475"], ["name", "Miss Chadwick Roberts"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yuk Larkin"], ["description", "Porro aut quasi. Et quis iusto. Id rerum tempora."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.215954"], ["updated_at", "2023-02-02 18:03:49.215954"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kenya Beahan DVM"], ["created_at", "2023-02-02 18:03:49.228234"], ["updated_at", "2023-02-02 18:03:49.228234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Brenna Jaskolski"], ["correct", 0], ["created_at", "2023-02-02 18:03:49.231548"], ["updated_at", "2023-02-02 18:03:49.231548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:03:49.234564"], ["updated_at", "2023-02-02 18:03:49.234564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.249287"], ["updated_at", "2023-02-02 18:03:49.249287"], ["name", "Mrs. Delana Tremblay"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Carmelo Heidenreich"], ["description", "Cupiditate et dolorem. Placeat assumenda qui. Voluptatum quia voluptatem."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.250693"], ["updated_at", "2023-02-02 18:03:49.250693"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Monserrate Blanda"], ["created_at", "2023-02-02 18:03:49.253155"], ["updated_at", "2023-02-02 18:03:49.253155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Gerda Schneider"], ["correct", 0], ["created_at", "2023-02-02 18:03:49.254141"], ["updated_at", "2023-02-02 18:03:49.254141"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:03:49.255245"], ["updated_at", "2023-02-02 18:03:49.255245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.257344"], ["updated_at", "2023-02-02 18:03:49.257344"], ["name", "Janeth Maggio II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Angla Fay"], ["description", "Similique voluptates corrupti. Ea blanditiis consequuntur. Quas nesciunt voluptas."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.258739"], ["updated_at", "2023-02-02 18:03:49.258739"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Leah Hartmann"], ["created_at", "2023-02-02 18:03:49.261285"], ["updated_at", "2023-02-02 18:03:49.261285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Marya Stanton V"], ["correct", 0], ["created_at", "2023-02-02 18:03:49.262522"], ["updated_at", "2023-02-02 18:03:49.262522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:03:49.264040"], ["updated_at", "2023-02-02 18:03:49.264040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.266247"], ["updated_at", "2023-02-02 18:03:49.266247"], ["name", "Karl Stehr"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mariel Thompson"], ["description", "Eos dolores perferendis. Praesentium sit ea. Reiciendis ut ipsum."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.267615"], ["updated_at", "2023-02-02 18:03:49.267615"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Pablo Jones"], ["created_at", "2023-02-02 18:03:49.269715"], ["updated_at", "2023-02-02 18:03:49.269715"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Francesco Koss Sr."], ["correct", 0], ["created_at", "2023-02-02 18:03:49.270508"], ["updated_at", "2023-02-02 18:03:49.270508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:03:49.271513"], ["updated_at", "2023-02-02 18:03:49.271513"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.280498"], ["updated_at", "2023-02-02 18:03:49.280498"], ["name", "Stefani Ernser Ret."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Markita Frami JD"], ["description", "Optio dolores et. Odit excepturi nihil. Unde et libero."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.281890"], ["updated_at", "2023-02-02 18:03:49.281890"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.6ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:03:49.296953"], ["updated_at", "2023-02-02 18:03:49.296953"], ["name", "Hortense Orn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lavonne Waelchi DC"], ["description", "Eaque consequatur quos. Dolorum et ratione. Error iusto quo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:03:49.298447"], ["updated_at", "2023-02-02 18:03:49.298447"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.226416"], ["updated_at", "2023-02-02 18:04:04.226416"], ["name", "Clayton Wisozk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tanesha Champlin"], ["description", "Adipisci odio eaque. Perferendis in voluptas. Ut perferendis ex."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.231815"], ["updated_at", "2023-02-02 18:04:04.231815"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shan King"], ["created_at", "2023-02-02 18:04:04.244829"], ["updated_at", "2023-02-02 18:04:04.244829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Waylon Homenick"], ["correct", 0], ["created_at", "2023-02-02 18:04:04.247935"], ["updated_at", "2023-02-02 18:04:04.247935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:04.250991"], ["updated_at", "2023-02-02 18:04:04.250991"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.266137"], ["updated_at", "2023-02-02 18:04:04.266137"], ["name", "The Hon. Newton Hessel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Heidy Huel"], ["description", "At aut sed. Eaque ea atque. Officiis quas explicabo."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.267547"], ["updated_at", "2023-02-02 18:04:04.267547"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roland Boehm"], ["created_at", "2023-02-02 18:04:04.269633"], ["updated_at", "2023-02-02 18:04:04.269633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Britteny Macejkovic VM"], ["correct", 0], ["created_at", "2023-02-02 18:04:04.270388"], ["updated_at", "2023-02-02 18:04:04.270388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:04.271493"], ["updated_at", "2023-02-02 18:04:04.271493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.274105"], ["updated_at", "2023-02-02 18:04:04.274105"], ["name", "Theola Effertz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Herman Conroy"], ["description", "Enim aliquam ea. Voluptas laboriosam autem. Reprehenderit sapiente est."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.275510"], ["updated_at", "2023-02-02 18:04:04.275510"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Coralee Lueilwitz"], ["created_at", "2023-02-02 18:04:04.277471"], ["updated_at", "2023-02-02 18:04:04.277471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Tyrone Zemlak"], ["correct", 0], ["created_at", "2023-02-02 18:04:04.278218"], ["updated_at", "2023-02-02 18:04:04.278218"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:04.279167"], ["updated_at", "2023-02-02 18:04:04.279167"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.281133"], ["updated_at", "2023-02-02 18:04:04.281133"], ["name", "Sen. Willian Cole"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Giovanni Mayer"], ["description", "Maiores voluptatibus voluptates. Asperiores voluptas nobis. Quisquam quaerat et."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.282434"], ["updated_at", "2023-02-02 18:04:04.282434"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bonita Hauck"], ["created_at", "2023-02-02 18:04:04.284428"], ["updated_at", "2023-02-02 18:04:04.284428"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Adolph Sporer"], ["correct", 0], ["created_at", "2023-02-02 18:04:04.285157"], ["updated_at", "2023-02-02 18:04:04.285157"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:04.286170"], ["updated_at", "2023-02-02 18:04:04.286170"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.295967"], ["updated_at", "2023-02-02 18:04:04.295967"], ["name", "Myron Williamson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bill Nienow IV"], ["description", "Enim sit aperiam. Beatae totam quis. Tempora sit quasi."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.297737"], ["updated_at", "2023-02-02 18:04:04.297737"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:04.308681"], ["updated_at", "2023-02-02 18:04:04.308681"], ["name", "Iola Mueller VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Olen Paucek"], ["description", "Nihil reprehenderit voluptas. Quam voluptatem aspernatur. Est aut autem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:04.310970"], ["updated_at", "2023-02-02 18:04:04.310970"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.833054"], ["updated_at", "2023-02-02 18:04:38.833054"], ["name", "Eleonore Turner DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "King Quitzon"], ["description", "Iure aspernatur alias. Voluptatem sit eum. Sit blanditiis nostrum."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.838502"], ["updated_at", "2023-02-02 18:04:38.838502"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Reta Jacobs"], ["created_at", "2023-02-02 18:04:38.851313"], ["updated_at", "2023-02-02 18:04:38.851313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Max Hermann"], ["correct", 0], ["created_at", "2023-02-02 18:04:38.854509"], ["updated_at", "2023-02-02 18:04:38.854509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:38.857648"], ["updated_at", "2023-02-02 18:04:38.857648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.873061"], ["updated_at", "2023-02-02 18:04:38.873061"], ["name", "Tana Considine"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scotty Skiles"], ["description", "Fugiat ab asperiores. Quibusdam tempore itaque. Optio non iusto."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.874439"], ["updated_at", "2023-02-02 18:04:38.874439"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Merlin Adams"], ["created_at", "2023-02-02 18:04:38.876882"], ["updated_at", "2023-02-02 18:04:38.876882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Catharine Schumm DO"], ["correct", 0], ["created_at", "2023-02-02 18:04:38.877892"], ["updated_at", "2023-02-02 18:04:38.877892"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:38.878979"], ["updated_at", "2023-02-02 18:04:38.878979"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.881009"], ["updated_at", "2023-02-02 18:04:38.881009"], ["name", "Enriqueta Beier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Curtis Koss"], ["description", "Quos porro inventore. Sunt facilis dolorum. Dolores enim iusto."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.882311"], ["updated_at", "2023-02-02 18:04:38.882311"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Candy Mraz"], ["created_at", "2023-02-02 18:04:38.884428"], ["updated_at", "2023-02-02 18:04:38.884428"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Michaela Padberg"], ["correct", 0], ["created_at", "2023-02-02 18:04:38.885166"], ["updated_at", "2023-02-02 18:04:38.885166"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:38.886137"], ["updated_at", "2023-02-02 18:04:38.886137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.887982"], ["updated_at", "2023-02-02 18:04:38.887982"], ["name", "Filiberto Durgan"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marica Bogan"], ["description", "Facere deserunt velit. Molestiae voluptates recusandae. Aut ut dolorem."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.889141"], ["updated_at", "2023-02-02 18:04:38.889141"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Samuel Wilderman"], ["created_at", "2023-02-02 18:04:38.890990"], ["updated_at", "2023-02-02 18:04:38.890990"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Gov. Jere Schamberger"], ["correct", 0], ["created_at", "2023-02-02 18:04:38.891742"], ["updated_at", "2023-02-02 18:04:38.891742"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:04:38.893002"], ["updated_at", "2023-02-02 18:04:38.893002"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.902540"], ["updated_at", "2023-02-02 18:04:38.902540"], ["name", "Prof. Marty Gusikowski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Helen Jacobson"], ["description", "Magni et qui. Velit exercitationem eligendi. Assumenda dolores accusamus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.903903"], ["updated_at", "2023-02-02 18:04:38.903903"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:04:38.917622"], ["updated_at", "2023-02-02 18:04:38.917622"], ["name", "Tanner Windler DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Herschel Harvey"], ["description", "Quisquam vero sed. Reiciendis cum magni. Cum et incidunt."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:04:38.919110"], ["updated_at", "2023-02-02 18:04:38.919110"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.728891"], ["updated_at", "2023-02-02 18:05:58.728891"], ["name", "Tashina Littel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sue Kiehn"], ["description", "Delectus non corrupti. Tenetur neque sequi. Repudiandae quo quis."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.734556"], ["updated_at", "2023-02-02 18:05:58.734556"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arlen Bosco"], ["created_at", "2023-02-02 18:05:58.746736"], ["updated_at", "2023-02-02 18:05:58.746736"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sheldon Windler"], ["correct", 0], ["created_at", "2023-02-02 18:05:58.749748"], ["updated_at", "2023-02-02 18:05:58.749748"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:05:58.752764"], ["updated_at", "2023-02-02 18:05:58.752764"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.767658"], ["updated_at", "2023-02-02 18:05:58.767658"], ["name", "Rep. Yoshiko Murphy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Collin Grady"], ["description", "Omnis sint eaque. Ipsum laudantium eos. Quae ut est."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.769056"], ["updated_at", "2023-02-02 18:05:58.769056"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jolene Orn"], ["created_at", "2023-02-02 18:05:58.771458"], ["updated_at", "2023-02-02 18:05:58.771458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Esteban Harris"], ["correct", 0], ["created_at", "2023-02-02 18:05:58.772509"], ["updated_at", "2023-02-02 18:05:58.772509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:05:58.773639"], ["updated_at", "2023-02-02 18:05:58.773639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.775689"], ["updated_at", "2023-02-02 18:05:58.775689"], ["name", "Raylene Brekke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Estella Jaskolski"], ["description", "Rerum repellendus vel. Esse provident possimus. Nostrum neque voluptatibus."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.777133"], ["updated_at", "2023-02-02 18:05:58.777133"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lorita Bednar"], ["created_at", "2023-02-02 18:05:58.779102"], ["updated_at", "2023-02-02 18:05:58.779102"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Pres. Babara Cummerata"], ["correct", 0], ["created_at", "2023-02-02 18:05:58.779838"], ["updated_at", "2023-02-02 18:05:58.779838"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:05:58.780816"], ["updated_at", "2023-02-02 18:05:58.780816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.783104"], ["updated_at", "2023-02-02 18:05:58.783104"], ["name", "Meghann Hilpert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roger Carter"], ["description", "Fuga quod saepe. Ut quasi dicta. Non doloremque consequatur."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.784833"], ["updated_at", "2023-02-02 18:05:58.784833"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Cedric Gibson"], ["created_at", "2023-02-02 18:05:58.787028"], ["updated_at", "2023-02-02 18:05:58.787028"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Rubye Goyette"], ["correct", 0], ["created_at", "2023-02-02 18:05:58.787781"], ["updated_at", "2023-02-02 18:05:58.787781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:05:58.788784"], ["updated_at", "2023-02-02 18:05:58.788784"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.797795"], ["updated_at", "2023-02-02 18:05:58.797795"], ["name", "Angel Wiegand"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Luanne Bayer"], ["description", "Voluptatibus vitae et. Et neque consequatur. Consectetur saepe consequuntur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.799436"], ["updated_at", "2023-02-02 18:05:58.799436"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:05:58.811932"], ["updated_at", "2023-02-02 18:05:58.811932"], ["name", "Erick Wehner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Archie Dooley"], ["description", "Voluptatem quia unde. Quod tempore sint. Ut ipsa veritatis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:05:58.813942"], ["updated_at", "2023-02-02 18:05:58.813942"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.693628"], ["updated_at", "2023-02-02 18:06:35.693628"], ["name", "Laurene Rolfson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kristan Carter"], ["description", "Odit omnis nam. In atque et. Et qui omnis."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.698942"], ["updated_at", "2023-02-02 18:06:35.698942"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Yuette Bartoletti"], ["created_at", "2023-02-02 18:06:35.711213"], ["updated_at", "2023-02-02 18:06:35.711213"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Britt Huels"], ["correct", 0], ["created_at", "2023-02-02 18:06:35.714448"], ["updated_at", "2023-02-02 18:06:35.714448"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:06:35.717456"], ["updated_at", "2023-02-02 18:06:35.717456"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.732909"], ["updated_at", "2023-02-02 18:06:35.732909"], ["name", "Ashleigh Lueilwitz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charley Fritsch DC"], ["description", "Omnis est libero. Itaque soluta non. Alias et maiores."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.734403"], ["updated_at", "2023-02-02 18:06:35.734403"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Refugio Heller DO"], ["created_at", "2023-02-02 18:06:35.736971"], ["updated_at", "2023-02-02 18:06:35.736971"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Natosha Maggio"], ["correct", 0], ["created_at", "2023-02-02 18:06:35.737968"], ["updated_at", "2023-02-02 18:06:35.737968"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:06:35.739081"], ["updated_at", "2023-02-02 18:06:35.739081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.741179"], ["updated_at", "2023-02-02 18:06:35.741179"], ["name", "Alana Hackett"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Greg Brown"], ["description", "Magni maiores ut. Aut esse reprehenderit. Qui accusantium illo."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.742651"], ["updated_at", "2023-02-02 18:06:35.742651"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jazmin Kerluke"], ["created_at", "2023-02-02 18:06:35.745720"], ["updated_at", "2023-02-02 18:06:35.745720"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Rudolf DuBuque Jr."], ["correct", 0], ["created_at", "2023-02-02 18:06:35.746621"], ["updated_at", "2023-02-02 18:06:35.746621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:06:35.747691"], ["updated_at", "2023-02-02 18:06:35.747691"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.749705"], ["updated_at", "2023-02-02 18:06:35.749705"], ["name", "Jenifer Wuckert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alejandro Heathcote"], ["description", "Enim modi quidem. Soluta eius totam. Fugit dolorem assumenda."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.750973"], ["updated_at", "2023-02-02 18:06:35.750973"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nickie Greenfelder"], ["created_at", "2023-02-02 18:06:35.752951"], ["updated_at", "2023-02-02 18:06:35.752951"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Deja Zemlak"], ["correct", 0], ["created_at", "2023-02-02 18:06:35.753694"], ["updated_at", "2023-02-02 18:06:35.753694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:06:35.754681"], ["updated_at", "2023-02-02 18:06:35.754681"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.763585"], ["updated_at", "2023-02-02 18:06:35.763585"], ["name", "Ellamae Cormier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bernie Schowalter JD"], ["description", "Ut sit sit. Quasi reprehenderit deserunt. Quas fugiat recusandae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.765068"], ["updated_at", "2023-02-02 18:06:35.765068"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:06:35.779459"], ["updated_at", "2023-02-02 18:06:35.779459"], ["name", "Anthony Witting"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Theo Veum"], ["description", "Deserunt accusantium similique. Suscipit similique asperiores. Qui quae tempora."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:06:35.780979"], ["updated_at", "2023-02-02 18:06:35.780979"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.717867"], ["updated_at", "2023-02-02 18:11:25.717867"], ["name", "Sid Hand"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nicol Conn"], ["description", "Optio sunt adipisci. Reprehenderit itaque quis. Et voluptatem fugit."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.723876"], ["updated_at", "2023-02-02 18:11:25.723876"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Dillon Cole"], ["created_at", "2023-02-02 18:11:25.739278"], ["updated_at", "2023-02-02 18:11:25.739278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Terra Gulgowski III"], ["correct", 0], ["created_at", "2023-02-02 18:11:25.742509"], ["updated_at", "2023-02-02 18:11:25.742509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:11:25.746019"], ["updated_at", "2023-02-02 18:11:25.746019"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.761344"], ["updated_at", "2023-02-02 18:11:25.761344"], ["name", "Betsy Littel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edmundo Morar"], ["description", "Et voluptas nesciunt. Sed minus consequuntur. Accusantium molestiae aliquam."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.762877"], ["updated_at", "2023-02-02 18:11:25.762877"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Rudolf Goldner"], ["created_at", "2023-02-02 18:11:25.765422"], ["updated_at", "2023-02-02 18:11:25.765422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "The Hon. Rosita Altenwerth"], ["correct", 0], ["created_at", "2023-02-02 18:11:25.766541"], ["updated_at", "2023-02-02 18:11:25.766541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:11:25.767630"], ["updated_at", "2023-02-02 18:11:25.767630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.769975"], ["updated_at", "2023-02-02 18:11:25.769975"], ["name", "Paz Reichel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jo Torphy"], ["description", "Id est sequi. Qui vel sit. Et tenetur esse."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.771477"], ["updated_at", "2023-02-02 18:11:25.771477"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elvia O'Hara"], ["created_at", "2023-02-02 18:11:25.773956"], ["updated_at", "2023-02-02 18:11:25.773956"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Luther Jacobs"], ["correct", 0], ["created_at", "2023-02-02 18:11:25.774783"], ["updated_at", "2023-02-02 18:11:25.774783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:11:25.775828"], ["updated_at", "2023-02-02 18:11:25.775828"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.777860"], ["updated_at", "2023-02-02 18:11:25.777860"], ["name", "Gertrudis Schowalter III"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vernia Nikolaus"], ["description", "Aut aut in. Rem modi voluptatem. Enim quasi inventore."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.779136"], ["updated_at", "2023-02-02 18:11:25.779136"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Mack Beier"], ["created_at", "2023-02-02 18:11:25.781153"], ["updated_at", "2023-02-02 18:11:25.781153"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Pres. Karine Wisoky"], ["correct", 0], ["created_at", "2023-02-02 18:11:25.781913"], ["updated_at", "2023-02-02 18:11:25.781913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:11:25.782924"], ["updated_at", "2023-02-02 18:11:25.782924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.794367"], ["updated_at", "2023-02-02 18:11:25.794367"], ["name", "Efrain Lind"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jonathon Johnston"], ["description", "Deserunt veniam error. Sit quia aut. Ex et dolores."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.798106"], ["updated_at", "2023-02-02 18:11:25.798106"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:11:25.812294"], ["updated_at", "2023-02-02 18:11:25.812294"], ["name", "Kraig Miller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elease Fadel"], ["description", "Consequuntur consequatur sed. Rerum aut iusto. Aliquam neque eos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.814104"], ["updated_at", "2023-02-02 18:11:25.814104"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Winston Mitchell"], ["description", "Modi ullam doloribus. Minus non perferendis. Placeat voluptatem repellendus."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:11:25.831081"], ["updated_at", "2023-02-02 18:11:25.831081"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Raleigh Cole"], ["created_at", "2023-02-02 18:11:25.832336"], ["updated_at", "2023-02-02 18:11:25.832336"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Tora Klocko II"], ["correct", 0], ["created_at", "2023-02-02 18:11:25.833195"], ["updated_at", "2023-02-02 18:11:25.833195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.391695"], ["updated_at", "2023-02-02 18:12:43.391695"], ["name", "Nathanial Schuster"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Erna Wintheiser"], ["description", "Expedita ipsum itaque. Tempora possimus sint. Ad facere aut."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.397245"], ["updated_at", "2023-02-02 18:12:43.397245"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jesse Brakus"], ["created_at", "2023-02-02 18:12:43.409500"], ["updated_at", "2023-02-02 18:12:43.409500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Zachary Monahan"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.412505"], ["updated_at", "2023-02-02 18:12:43.412505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:12:43.415492"], ["updated_at", "2023-02-02 18:12:43.415492"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.430424"], ["updated_at", "2023-02-02 18:12:43.430424"], ["name", "Jame O'Connell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Benjamin Witting"], ["description", "Ut optio delectus. Repellat tempore non. Nam debitis est."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.431925"], ["updated_at", "2023-02-02 18:12:43.431925"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Clorinda Kuhn"], ["created_at", "2023-02-02 18:12:43.434836"], ["updated_at", "2023-02-02 18:12:43.434836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Tinisha Frami"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.435924"], ["updated_at", "2023-02-02 18:12:43.435924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:12:43.437058"], ["updated_at", "2023-02-02 18:12:43.437058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.439151"], ["updated_at", "2023-02-02 18:12:43.439151"], ["name", "Homer Roob"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Allan Becker"], ["description", "Harum et quisquam. Iusto at qui. Cumque dolorem fugiat."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.440443"], ["updated_at", "2023-02-02 18:12:43.440443"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Lia Veum"], ["created_at", "2023-02-02 18:12:43.442993"], ["updated_at", "2023-02-02 18:12:43.442993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Kimbra Flatley"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.443999"], ["updated_at", "2023-02-02 18:12:43.443999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:12:43.445224"], ["updated_at", "2023-02-02 18:12:43.445224"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.447417"], ["updated_at", "2023-02-02 18:12:43.447417"], ["name", "Karri Sanford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sherise Kuphal DVM"], ["description", "Excepturi dolorem quisquam. Facilis enim ea. Repudiandae non ab."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.448830"], ["updated_at", "2023-02-02 18:12:43.448830"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chiquita Mills"], ["created_at", "2023-02-02 18:12:43.450842"], ["updated_at", "2023-02-02 18:12:43.450842"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Terri Yundt"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.451593"], ["updated_at", "2023-02-02 18:12:43.451593"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:12:43.452624"], ["updated_at", "2023-02-02 18:12:43.452624"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.463085"], ["updated_at", "2023-02-02 18:12:43.463085"], ["name", "Salvatore Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rene Kutch Ret."], ["description", "Facilis eligendi perferendis. Dolorem incidunt est. Sapiente vel quia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.464581"], ["updated_at", "2023-02-02 18:12:43.464581"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:12:43.479430"], ["updated_at", "2023-02-02 18:12:43.479430"], ["name", "Ryan Swift"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edythe Aufderhar"], ["description", "Accusamus dolores et. Quis et nihil. Dolores et consequatur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.481226"], ["updated_at", "2023-02-02 18:12:43.481226"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Boris Spencer Ret."], ["description", "Mollitia perspiciatis sed. Eos quis qui. Corrupti nam adipisci."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.497649"], ["updated_at", "2023-02-02 18:12:43.497649"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Krista Dooley Jr."], ["created_at", "2023-02-02 18:12:43.499246"], ["updated_at", "2023-02-02 18:12:43.499246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Mr. Alysia Larson"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.500399"], ["updated_at", "2023-02-02 18:12:43.500399"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Liberty Zulauf"], ["description", "Nihil cum ex. Ipsa ut maxime. Omnis dolore et."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:12:43.502667"], ["updated_at", "2023-02-02 18:12:43.502667"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jayne Volkman"], ["created_at", "2023-02-02 18:12:43.503797"], ["updated_at", "2023-02-02 18:12:43.503797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Willian Pfeffer IV"], ["correct", 0], ["created_at", "2023-02-02 18:12:43.504581"], ["updated_at", "2023-02-02 18:12:43.504581"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.251134"], ["updated_at", "2023-02-02 18:13:20.251134"], ["name", "Mr. Lemuel Wintheiser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Elba Schimmel"], ["description", "Aut accusantium provident. Omnis ea ut. Non ea provident."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.256241"], ["updated_at", "2023-02-02 18:13:20.256241"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ambrose Weimann"], ["created_at", "2023-02-02 18:13:20.268348"], ["updated_at", "2023-02-02 18:13:20.268348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Leif Swift III"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.271561"], ["updated_at", "2023-02-02 18:13:20.271561"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:13:20.274527"], ["updated_at", "2023-02-02 18:13:20.274527"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.289838"], ["updated_at", "2023-02-02 18:13:20.289838"], ["name", "Robin Ferry"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sage Gleason Ret."], ["description", "Sapiente amet et. Et aperiam eum. Unde eos et."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.291293"], ["updated_at", "2023-02-02 18:13:20.291293"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blair O'Conner"], ["created_at", "2023-02-02 18:13:20.293785"], ["updated_at", "2023-02-02 18:13:20.293785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Gayle Heidenreich"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.294822"], ["updated_at", "2023-02-02 18:13:20.294822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:13:20.295935"], ["updated_at", "2023-02-02 18:13:20.295935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.297975"], ["updated_at", "2023-02-02 18:13:20.297975"], ["name", "Carl Harvey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scotty Upton"], ["description", "Non quae illo. Molestiae ex et. Aut dolorem laudantium."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.299400"], ["updated_at", "2023-02-02 18:13:20.299400"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clemente Gutkowski"], ["created_at", "2023-02-02 18:13:20.301576"], ["updated_at", "2023-02-02 18:13:20.301576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Victor Auer"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.302340"], ["updated_at", "2023-02-02 18:13:20.302340"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:13:20.303376"], ["updated_at", "2023-02-02 18:13:20.303376"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.305551"], ["updated_at", "2023-02-02 18:13:20.305551"], ["name", "Casey Jacobson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Paul Hudson"], ["description", "Iure rerum iusto. Voluptatem ea provident. Nihil pariatur nulla."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.307236"], ["updated_at", "2023-02-02 18:13:20.307236"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deloise Metz"], ["created_at", "2023-02-02 18:13:20.309819"], ["updated_at", "2023-02-02 18:13:20.309819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Lorri Ritchie V"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.310612"], ["updated_at", "2023-02-02 18:13:20.310612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:13:20.311606"], ["updated_at", "2023-02-02 18:13:20.311606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.320129"], ["updated_at", "2023-02-02 18:13:20.320129"], ["name", "Annamarie Dach Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marcel Lebsack"], ["description", "Nobis rem voluptates. Et repudiandae unde. Repellat rerum distinctio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.321721"], ["updated_at", "2023-02-02 18:13:20.321721"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:13:20.335009"], ["updated_at", "2023-02-02 18:13:20.335009"], ["name", "Ali Satterfield"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Abel Yost"], ["description", "Aut veritatis sequi. Et explicabo culpa. Quae laboriosam ex."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.336494"], ["updated_at", "2023-02-02 18:13:20.336494"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Chan Marvin"], ["description", "Eos at facilis. Veniam molestiae blanditiis. Voluptatem odio consequatur."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.352991"], ["updated_at", "2023-02-02 18:13:20.352991"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gerry Beier"], ["created_at", "2023-02-02 18:13:20.354239"], ["updated_at", "2023-02-02 18:13:20.354239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Arnita Bashirian"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.355144"], ["updated_at", "2023-02-02 18:13:20.355144"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dinorah Green"], ["description", "Quis voluptas eius. Ut et corporis. Rem iusto non."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:13:20.357476"], ["updated_at", "2023-02-02 18:13:20.357476"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Merlin Balistreri"], ["created_at", "2023-02-02 18:13:20.359148"], ["updated_at", "2023-02-02 18:13:20.359148"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Macie Hickle CPA"], ["correct", 0], ["created_at", "2023-02-02 18:13:20.360420"], ["updated_at", "2023-02-02 18:13:20.360420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.702938"], ["updated_at", "2023-02-02 18:15:13.702938"], ["name", "Eddy Fisher"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lee Hamill"], ["description", "Illo laborum amet. Aliquid atque et. Aut ad officiis."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.708048"], ["updated_at", "2023-02-02 18:15:13.708048"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Madeline Medhurst"], ["created_at", "2023-02-02 18:15:13.720183"], ["updated_at", "2023-02-02 18:15:13.720183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Eddy Schneider"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.723375"], ["updated_at", "2023-02-02 18:15:13.723375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:13.726397"], ["updated_at", "2023-02-02 18:15:13.726397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.741438"], ["updated_at", "2023-02-02 18:15:13.741438"], ["name", "Fausto Turner DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elias Rippin"], ["description", "Quam modi ipsa. Modi at unde. Quasi reprehenderit et."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.742857"], ["updated_at", "2023-02-02 18:15:13.742857"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ned Deckow"], ["created_at", "2023-02-02 18:15:13.745740"], ["updated_at", "2023-02-02 18:15:13.745740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Isiah Nitzsche"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.746601"], ["updated_at", "2023-02-02 18:15:13.746601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:13.747662"], ["updated_at", "2023-02-02 18:15:13.747662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.749725"], ["updated_at", "2023-02-02 18:15:13.749725"], ["name", "Kenneth Wuckert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fumiko Swift"], ["description", "Quasi omnis ullam. Eaque ab quasi. Omnis doloribus illum."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.751175"], ["updated_at", "2023-02-02 18:15:13.751175"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Johnnie Schamberger"], ["created_at", "2023-02-02 18:15:13.753379"], ["updated_at", "2023-02-02 18:15:13.753379"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Theda Emmerich"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.754128"], ["updated_at", "2023-02-02 18:15:13.754128"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:13.755117"], ["updated_at", "2023-02-02 18:15:13.755117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.757272"], ["updated_at", "2023-02-02 18:15:13.757272"], ["name", "Manuel Corwin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shu Beatty DC"], ["description", "Ducimus iusto voluptatem. Earum magni vero. Facere quaerat laboriosam."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.758672"], ["updated_at", "2023-02-02 18:15:13.758672"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kaylee Lowe"], ["created_at", "2023-02-02 18:15:13.760673"], ["updated_at", "2023-02-02 18:15:13.760673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dr. Sharon Buckridge"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.761458"], ["updated_at", "2023-02-02 18:15:13.761458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:13.762507"], ["updated_at", "2023-02-02 18:15:13.762507"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.772087"], ["updated_at", "2023-02-02 18:15:13.772087"], ["name", "Dreama Koelpin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joann Swift"], ["description", "Omnis molestiae eos. Quia hic perspiciatis. Optio odio doloremque."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.773635"], ["updated_at", "2023-02-02 18:15:13.773635"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:13.787544"], ["updated_at", "2023-02-02 18:15:13.787544"], ["name", "Fausto Lynch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shiela Flatley"], ["description", "Sequi nulla alias. Explicabo sed consequatur. Quaerat omnis sunt."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.789640"], ["updated_at", "2023-02-02 18:15:13.789640"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reba O'Hara"], ["description", "Id aut et. Et necessitatibus rerum. Non ipsa quo."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.804334"], ["updated_at", "2023-02-02 18:15:13.804334"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dee Pfannerstill"], ["created_at", "2023-02-02 18:15:13.805440"], ["updated_at", "2023-02-02 18:15:13.805440"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rosendo Torphy"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.806202"], ["updated_at", "2023-02-02 18:15:13.806202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Muriel Ziemann"], ["description", "Unde est dolores. Eveniet facilis autem. Et vel voluptate."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:13.809092"], ["updated_at", "2023-02-02 18:15:13.809092"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jarod Greenfelder"], ["created_at", "2023-02-02 18:15:13.810493"], ["updated_at", "2023-02-02 18:15:13.810493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Reggie Kunde"], ["correct", 0], ["created_at", "2023-02-02 18:15:13.811288"], ["updated_at", "2023-02-02 18:15:13.811288"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.538580"], ["updated_at", "2023-02-02 18:15:53.538580"], ["name", "Amb. Stephan Cummings"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clemente Keebler Ret."], ["description", "Veritatis et et. Tenetur velit aut. Quia doloribus dolorem."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.544588"], ["updated_at", "2023-02-02 18:15:53.544588"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Angelica Hegmann"], ["created_at", "2023-02-02 18:15:53.557211"], ["updated_at", "2023-02-02 18:15:53.557211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Rev. Roger Schaden"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.560273"], ["updated_at", "2023-02-02 18:15:53.560273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:53.563385"], ["updated_at", "2023-02-02 18:15:53.563385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.578171"], ["updated_at", "2023-02-02 18:15:53.578171"], ["name", "Dwana O'Kon"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Frederica Ritchie"], ["description", "Voluptas culpa a. Magni sunt porro. Quos vero repudiandae."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.579594"], ["updated_at", "2023-02-02 18:15:53.579594"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kandy Boyer V"], ["created_at", "2023-02-02 18:15:53.582587"], ["updated_at", "2023-02-02 18:15:53.582587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Rod Schmitt"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.583693"], ["updated_at", "2023-02-02 18:15:53.583693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:53.584882"], ["updated_at", "2023-02-02 18:15:53.584882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.586981"], ["updated_at", "2023-02-02 18:15:53.586981"], ["name", "Pres. Marco Kunde"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marlin Donnelly"], ["description", "Id voluptates eum. Suscipit sint ex. Doloremque architecto qui."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.588304"], ["updated_at", "2023-02-02 18:15:53.588304"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jonnie Batz"], ["created_at", "2023-02-02 18:15:53.590378"], ["updated_at", "2023-02-02 18:15:53.590378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Marcos Jakubowski"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.591156"], ["updated_at", "2023-02-02 18:15:53.591156"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:53.592134"], ["updated_at", "2023-02-02 18:15:53.592134"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.594095"], ["updated_at", "2023-02-02 18:15:53.594095"], ["name", "Meri Thompson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosaura Roob"], ["description", "Sed doloribus nihil. Vel sit eos. Debitis et accusantium."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.595345"], ["updated_at", "2023-02-02 18:15:53.595345"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Quincy Kuphal"], ["created_at", "2023-02-02 18:15:53.597302"], ["updated_at", "2023-02-02 18:15:53.597302"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "William Kub"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.598007"], ["updated_at", "2023-02-02 18:15:53.598007"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:15:53.598955"], ["updated_at", "2023-02-02 18:15:53.598955"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.610796"], ["updated_at", "2023-02-02 18:15:53.610796"], ["name", "Sid Armstrong"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emile Pfannerstill"], ["description", "Dolor rerum qui. Quia perspiciatis nihil. Neque ad consequatur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.613137"], ["updated_at", "2023-02-02 18:15:53.613137"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:15:53.625366"], ["updated_at", "2023-02-02 18:15:53.625366"], ["name", "Ms. Leatrice Mitchell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donny Upton PhD"], ["description", "Nisi voluptates est. Expedita non molestiae. Velit et saepe."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.627885"], ["updated_at", "2023-02-02 18:15:53.627885"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rickey Hessel"], ["description", "Eveniet error laborum. Laborum corporis harum. Dignissimos dolorum et."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.645622"], ["updated_at", "2023-02-02 18:15:53.645622"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tobias Kuhic"], ["created_at", "2023-02-02 18:15:53.646863"], ["updated_at", "2023-02-02 18:15:53.646863"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Toby Yost"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.647676"], ["updated_at", "2023-02-02 18:15:53.647676"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.8ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Arden Mitchell"], ["description", "Ut quas velit. Iure rem aut. Dolorem repellat est."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:15:53.652241"], ["updated_at", "2023-02-02 18:15:53.652241"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Rigoberto Will"], ["created_at", "2023-02-02 18:15:53.656344"], ["updated_at", "2023-02-02 18:15:53.656344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Silvana Mills"], ["correct", 0], ["created_at", "2023-02-02 18:15:53.658421"], ["updated_at", "2023-02-02 18:15:53.658421"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.674604"], ["updated_at", "2023-02-02 18:16:09.674604"], ["name", "Kiley Steuber"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Abram Koch"], ["description", "Consequatur repellendus iure. Quidem natus exercitationem. Consequatur animi eius."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.679801"], ["updated_at", "2023-02-02 18:16:09.679801"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kandis Treutel"], ["created_at", "2023-02-02 18:16:09.691887"], ["updated_at", "2023-02-02 18:16:09.691887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Armandina Feest"], ["correct", 0], ["created_at", "2023-02-02 18:16:09.695024"], ["updated_at", "2023-02-02 18:16:09.695024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.8ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:16:09.698081"], ["updated_at", "2023-02-02 18:16:09.698081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.713822"], ["updated_at", "2023-02-02 18:16:09.713822"], ["name", "Anitra Schimmel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Collette Bernier DVM"], ["description", "Voluptate minus suscipit. Recusandae et excepturi. Reiciendis cupiditate corporis."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.715297"], ["updated_at", "2023-02-02 18:16:09.715297"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Bruno Ward"], ["created_at", "2023-02-02 18:16:09.718680"], ["updated_at", "2023-02-02 18:16:09.718680"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gonzalo Brekke PhD"], ["correct", 0], ["created_at", "2023-02-02 18:16:09.719647"], ["updated_at", "2023-02-02 18:16:09.719647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:16:09.720779"], ["updated_at", "2023-02-02 18:16:09.720779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.722933"], ["updated_at", "2023-02-02 18:16:09.722933"], ["name", "Jonna Rutherford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fabian McClure"], ["description", "Corporis voluptates rem. Et odio sequi. Et maiores soluta."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.724270"], ["updated_at", "2023-02-02 18:16:09.724270"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Richard Hilpert"], ["created_at", "2023-02-02 18:16:09.726226"], ["updated_at", "2023-02-02 18:16:09.726226"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Shayne Jacobs DO"], ["correct", 0], ["created_at", "2023-02-02 18:16:09.726978"], ["updated_at", "2023-02-02 18:16:09.726978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:16:09.727945"], ["updated_at", "2023-02-02 18:16:09.727945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.729942"], ["updated_at", "2023-02-02 18:16:09.729942"], ["name", "Aubrey Feeney"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bruno Christiansen"], ["description", "Eveniet quos qui. Distinctio eum sint. Eveniet odit aut."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.731230"], ["updated_at", "2023-02-02 18:16:09.731230"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mi Nicolas"], ["created_at", "2023-02-02 18:16:09.733152"], ["updated_at", "2023-02-02 18:16:09.733152"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Chang Connelly"], ["correct", 0], ["created_at", "2023-02-02 18:16:09.733912"], ["updated_at", "2023-02-02 18:16:09.733912"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:16:09.735006"], ["updated_at", "2023-02-02 18:16:09.735006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.745468"], ["updated_at", "2023-02-02 18:16:09.745468"], ["name", "Nichol Feeney"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shaquita Zboncak"], ["description", "Ad autem ut. Dolorem voluptatibus consequatur. In rerum adipisci."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.746901"], ["updated_at", "2023-02-02 18:16:09.746901"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:16:09.758293"], ["updated_at", "2023-02-02 18:16:09.758293"], ["name", "Lakeshia Fahey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lacey Ziemann"], ["description", "Possimus est error. Voluptatem sed atque. Totam assumenda perferendis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.760051"], ["updated_at", "2023-02-02 18:16:09.760051"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Glenn Anderson"], ["description", "Et cupiditate et. Qui sed iste. Maxime consequatur qui."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.774706"], ["updated_at", "2023-02-02 18:16:09.774706"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brad Schiller"], ["created_at", "2023-02-02 18:16:09.776286"], ["updated_at", "2023-02-02 18:16:09.776286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Rosamaria Willms Jr."], ["correct", 0], ["created_at", "2023-02-02 18:16:09.777286"], ["updated_at", "2023-02-02 18:16:09.777286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Thanh Roberts"], ["description", "Labore excepturi adipisci. Cum nostrum dolor. Aperiam suscipit maiores."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:16:09.779285"], ["updated_at", "2023-02-02 18:16:09.779285"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Georgianne Mosciski"], ["created_at", "2023-02-02 18:16:09.780695"], ["updated_at", "2023-02-02 18:16:09.780695"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Mr. Merlyn Morissette"], ["correct", 0], ["created_at", "2023-02-02 18:16:09.781539"], ["updated_at", "2023-02-02 18:16:09.781539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.325977"], ["updated_at", "2023-02-02 18:17:46.325977"], ["name", "Mr. Floyd Turner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emmett Ledner IV"], ["description", "Possimus qui libero. Illo itaque ullam. Unde necessitatibus magni."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.331357"], ["updated_at", "2023-02-02 18:17:46.331357"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gustavo Quigley"], ["created_at", "2023-02-02 18:17:46.345769"], ["updated_at", "2023-02-02 18:17:46.345769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Vern Tremblay DDS"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.348915"], ["updated_at", "2023-02-02 18:17:46.348915"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:17:46.351992"], ["updated_at", "2023-02-02 18:17:46.351992"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.367286"], ["updated_at", "2023-02-02 18:17:46.367286"], ["name", "Alease Schroeder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Lekisha Romaguera"], ["description", "Deleniti vel eos. Quia molestias itaque. Minima dolores consequuntur."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.368857"], ["updated_at", "2023-02-02 18:17:46.368857"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mathew Purdy"], ["created_at", "2023-02-02 18:17:46.371701"], ["updated_at", "2023-02-02 18:17:46.371701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Delois Shanahan"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.372732"], ["updated_at", "2023-02-02 18:17:46.372732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:17:46.374044"], ["updated_at", "2023-02-02 18:17:46.374044"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.376404"], ["updated_at", "2023-02-02 18:17:46.376404"], ["name", "Rev. Dale Kihn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Susanna Considine"], ["description", "Animi eligendi voluptatem. Nihil ad adipisci. Ut dolor sequi."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.377823"], ["updated_at", "2023-02-02 18:17:46.377823"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Le Doyle"], ["created_at", "2023-02-02 18:17:46.379884"], ["updated_at", "2023-02-02 18:17:46.379884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Dr. Kirstin Schmitt"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.380656"], ["updated_at", "2023-02-02 18:17:46.380656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:17:46.381644"], ["updated_at", "2023-02-02 18:17:46.381644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.383610"], ["updated_at", "2023-02-02 18:17:46.383610"], ["name", "Solomon Collins"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Randell Reichert"], ["description", "Est culpa voluptatem. Enim laboriosam accusamus. Fugit optio nulla."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.384913"], ["updated_at", "2023-02-02 18:17:46.384913"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vonda Beer"], ["created_at", "2023-02-02 18:17:46.386874"], ["updated_at", "2023-02-02 18:17:46.386874"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Matthew Bode"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.387625"], ["updated_at", "2023-02-02 18:17:46.387625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:17:46.388607"], ["updated_at", "2023-02-02 18:17:46.388607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.398678"], ["updated_at", "2023-02-02 18:17:46.398678"], ["name", "Deandre Jones DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elidia Dooley"], ["description", "Voluptates occaecati facere. Accusantium unde voluptatem. Repellat consequuntur qui."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.400042"], ["updated_at", "2023-02-02 18:17:46.400042"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:17:46.409467"], ["updated_at", "2023-02-02 18:17:46.409467"], ["name", "Paul Green"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Neville Anderson"], ["description", "Fugiat voluptatem libero. Quasi enim tempora. Ut voluptate qui."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.411392"], ["updated_at", "2023-02-02 18:17:46.411392"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tyrell Marvin"], ["description", "Qui dolor ut. Et voluptate itaque. Adipisci iusto consequatur."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.430016"], ["updated_at", "2023-02-02 18:17:46.430016"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Felipe Cormier"], ["created_at", "2023-02-02 18:17:46.431217"], ["updated_at", "2023-02-02 18:17:46.431217"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Marylyn Runolfsson"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.432141"], ["updated_at", "2023-02-02 18:17:46.432141"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Paula Simonis Jr."], ["description", "Debitis culpa et. Ea vel fugiat. Molestias dicta alias."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.435070"], ["updated_at", "2023-02-02 18:17:46.435070"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garrett Dibbert"], ["created_at", "2023-02-02 18:17:46.436609"], ["updated_at", "2023-02-02 18:17:46.436609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Santos Ziemann"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.437505"], ["updated_at", "2023-02-02 18:17:46.437505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jewell Fay"], ["description", "Numquam error id. Expedita molestiae et. Magnam asperiores provident."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:17:46.444341"], ["updated_at", "2023-02-02 18:17:46.444341"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shayne Conroy"], ["created_at", "2023-02-02 18:17:46.446625"], ["updated_at", "2023-02-02 18:17:46.446625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Wilber Reichel"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.447834"], ["updated_at", "2023-02-02 18:17:46.447834"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "The Hon. Everett White"], ["correct", 1], ["created_at", "2023-02-02 18:17:46.448742"], ["updated_at", "2023-02-02 18:17:46.448742"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Herbert Hodkiewicz IV"], ["correct", 0], ["created_at", "2023-02-02 18:17:46.449570"], ["updated_at", "2023-02-02 18:17:46.449570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.329581"], ["updated_at", "2023-02-02 18:19:14.329581"], ["name", "Ayesha Bashirian"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stacey Ferry II"], ["description", "Et ut omnis. Suscipit est voluptas. Expedita illum corporis."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.334874"], ["updated_at", "2023-02-02 18:19:14.334874"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chi Erdman"], ["created_at", "2023-02-02 18:19:14.347216"], ["updated_at", "2023-02-02 18:19:14.347216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Miss Dot Haley"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.350494"], ["updated_at", "2023-02-02 18:19:14.350494"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:14.353572"], ["updated_at", "2023-02-02 18:19:14.353572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.368404"], ["updated_at", "2023-02-02 18:19:14.368404"], ["name", "The Hon. Michale Bradtke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sherilyn Bayer DVM"], ["description", "Ut non accusamus. Iste et non. Minus qui earum."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.369872"], ["updated_at", "2023-02-02 18:19:14.369872"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amos Pagac"], ["created_at", "2023-02-02 18:19:14.372817"], ["updated_at", "2023-02-02 18:19:14.372817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Logan Gleichner"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.373820"], ["updated_at", "2023-02-02 18:19:14.373820"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:14.374957"], ["updated_at", "2023-02-02 18:19:14.374957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.377022"], ["updated_at", "2023-02-02 18:19:14.377022"], ["name", "Helene Moen DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Monroe Mertz"], ["description", "Fuga hic esse. Eaque officia culpa. Pariatur eum et."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.378312"], ["updated_at", "2023-02-02 18:19:14.378312"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jerrod Kuhlman DVM"], ["created_at", "2023-02-02 18:19:14.380296"], ["updated_at", "2023-02-02 18:19:14.380296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Jenae Kuvalis"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.381024"], ["updated_at", "2023-02-02 18:19:14.381024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:14.382039"], ["updated_at", "2023-02-02 18:19:14.382039"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.383950"], ["updated_at", "2023-02-02 18:19:14.383950"], ["name", "Josue Auer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Naomi Rogahn JD"], ["description", "Ab nulla commodi. Distinctio ducimus ab. Et sunt sit."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.385204"], ["updated_at", "2023-02-02 18:19:14.385204"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jean Yost V"], ["created_at", "2023-02-02 18:19:14.387664"], ["updated_at", "2023-02-02 18:19:14.387664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Chantell Prosacco"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.388771"], ["updated_at", "2023-02-02 18:19:14.388771"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:14.390083"], ["updated_at", "2023-02-02 18:19:14.390083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.398956"], ["updated_at", "2023-02-02 18:19:14.398956"], ["name", "Fairy Wisoky DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chung Bergstrom"], ["description", "Veniam ut omnis. Nisi placeat ab. Qui et corporis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.400351"], ["updated_at", "2023-02-02 18:19:14.400351"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:14.411818"], ["updated_at", "2023-02-02 18:19:14.411818"], ["name", "Miss Elbert Konopelski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hue Welch"], ["description", "Excepturi libero minima. Quis non sit. Aut laudantium aut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.413295"], ["updated_at", "2023-02-02 18:19:14.413295"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (4.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jewel Jast"], ["description", "Dolorem qui nulla. Rerum dignissimos praesentium. Et est delectus."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.435907"], ["updated_at", "2023-02-02 18:19:14.435907"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Taina Reichert"], ["created_at", "2023-02-02 18:19:14.439268"], ["updated_at", "2023-02-02 18:19:14.439268"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Treena D'Amore"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.440504"], ["updated_at", "2023-02-02 18:19:14.440504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cheryle Beatty"], ["description", "Fuga reprehenderit consectetur. Dolores minus nihil. Illum aut aliquid."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.442788"], ["updated_at", "2023-02-02 18:19:14.442788"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shante McLaughlin"], ["created_at", "2023-02-02 18:19:14.443969"], ["updated_at", "2023-02-02 18:19:14.443969"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Judi Kub"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.444797"], ["updated_at", "2023-02-02 18:19:14.444797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sheilah Reichert DDS"], ["description", "Nulla fugiat est. Qui eos mollitia. Consequatur dolor distinctio."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.449103"], ["updated_at", "2023-02-02 18:19:14.449103"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alaina Bernier"], ["created_at", "2023-02-02 18:19:14.450362"], ["updated_at", "2023-02-02 18:19:14.450362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Shayne Upton DDS"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.451195"], ["updated_at", "2023-02-02 18:19:14.451195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Gov. Carson Rodriguez"], ["correct", 1], ["created_at", "2023-02-02 18:19:14.451995"], ["updated_at", "2023-02-02 18:19:14.451995"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Chae Langosh"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.452793"], ["updated_at", "2023-02-02 18:19:14.452793"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jen Conroy"], ["description", "Autem reprehenderit quis. Et magnam natus. Dolor molestias consequatur."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:14.455093"], ["updated_at", "2023-02-02 18:19:14.455093"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Guadalupe Wiegand"], ["created_at", "2023-02-02 18:19:14.456915"], ["updated_at", "2023-02-02 18:19:14.456915"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Shannon Keebler"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.458076"], ["updated_at", "2023-02-02 18:19:14.458076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Izetta Walsh"], ["correct", 0], ["created_at", "2023-02-02 18:19:14.460286"], ["updated_at", "2023-02-02 18:19:14.460286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "August Durgan"], ["correct", 1], ["created_at", "2023-02-02 18:19:14.461526"], ["updated_at", "2023-02-02 18:19:14.461526"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.810852"], ["updated_at", "2023-02-02 18:19:26.810852"], ["name", "Karolyn Kihn IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harvey Aufderhar"], ["description", "Et sunt ex. Ea voluptatem dolores. Voluptatem necessitatibus molestiae."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.816498"], ["updated_at", "2023-02-02 18:19:26.816498"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Boris Berge"], ["created_at", "2023-02-02 18:19:26.828998"], ["updated_at", "2023-02-02 18:19:26.828998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Johnnie Hegmann"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.832330"], ["updated_at", "2023-02-02 18:19:26.832330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:26.835348"], ["updated_at", "2023-02-02 18:19:26.835348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.850524"], ["updated_at", "2023-02-02 18:19:26.850524"], ["name", "Rev. Lawanda Hauck"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bebe Jast"], ["description", "Sed recusandae veritatis. Minus ipsa maxime. Sint et doloremque."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.851964"], ["updated_at", "2023-02-02 18:19:26.851964"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dwain Cormier"], ["created_at", "2023-02-02 18:19:26.854033"], ["updated_at", "2023-02-02 18:19:26.854033"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Edgar Gusikowski"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.854761"], ["updated_at", "2023-02-02 18:19:26.854761"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:26.855750"], ["updated_at", "2023-02-02 18:19:26.855750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.857661"], ["updated_at", "2023-02-02 18:19:26.857661"], ["name", "Petronila Rath"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yi Streich"], ["description", "Maiores porro voluptatem. Repellendus porro nesciunt. Eos est voluptatibus."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.858923"], ["updated_at", "2023-02-02 18:19:26.858923"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeramy Baumbach"], ["created_at", "2023-02-02 18:19:26.860791"], ["updated_at", "2023-02-02 18:19:26.860791"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Denny Dickinson"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.861496"], ["updated_at", "2023-02-02 18:19:26.861496"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:26.862431"], ["updated_at", "2023-02-02 18:19:26.862431"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.864328"], ["updated_at", "2023-02-02 18:19:26.864328"], ["name", "Iris Stamm"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cary Jacobson"], ["description", "Maiores corrupti vero. Labore vel omnis. Voluptate itaque dolorum."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.865796"], ["updated_at", "2023-02-02 18:19:26.865796"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Kathrin Bergstrom"], ["created_at", "2023-02-02 18:19:26.868484"], ["updated_at", "2023-02-02 18:19:26.868484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Karri Bauch DC"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.869438"], ["updated_at", "2023-02-02 18:19:26.869438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:26.870595"], ["updated_at", "2023-02-02 18:19:26.870595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.879371"], ["updated_at", "2023-02-02 18:19:26.879371"], ["name", "Donnie Block"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anthony Bayer"], ["description", "Enim ad rem. Cumque dolorem laboriosam. Et aut doloremque."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.881006"], ["updated_at", "2023-02-02 18:19:26.881006"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:26.894137"], ["updated_at", "2023-02-02 18:19:26.894137"], ["name", "Tamela Price"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alba Lubowitz"], ["description", "Ut facilis ducimus. Ducimus corrupti explicabo. Enim maxime voluptatem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.896041"], ["updated_at", "2023-02-02 18:19:26.896041"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Brigid Goodwin"], ["description", "Eaque illo dolores. Maiores est occaecati. Non voluptate dolor."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.913456"], ["updated_at", "2023-02-02 18:19:26.913456"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cory Frami"], ["created_at", "2023-02-02 18:19:26.914864"], ["updated_at", "2023-02-02 18:19:26.914864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Meg Aufderhar"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.916035"], ["updated_at", "2023-02-02 18:19:26.916035"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zack Borer"], ["description", "Necessitatibus est sed. Quas unde quod. Quod doloremque qui."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.918803"], ["updated_at", "2023-02-02 18:19:26.918803"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Venessa Quigley I"], ["created_at", "2023-02-02 18:19:26.920193"], ["updated_at", "2023-02-02 18:19:26.920193"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Lane Doyle"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.920974"], ["updated_at", "2023-02-02 18:19:26.920974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donette Becker DC"], ["description", "Sed a deserunt. Nihil sed hic. Quidem soluta id."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.925850"], ["updated_at", "2023-02-02 18:19:26.925850"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vito Mertz PhD"], ["created_at", "2023-02-02 18:19:26.927775"], ["updated_at", "2023-02-02 18:19:26.927775"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Breann Howell"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.928875"], ["updated_at", "2023-02-02 18:19:26.928875"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Jarod Reichert"], ["correct", 1], ["created_at", "2023-02-02 18:19:26.929765"], ["updated_at", "2023-02-02 18:19:26.929765"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Mr. Kory Turcotte"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.930586"], ["updated_at", "2023-02-02 18:19:26.930586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mui Bailey"], ["description", "Vitae debitis quo. Aut incidunt et. Distinctio ipsa et."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:26.933903"], ["updated_at", "2023-02-02 18:19:26.933903"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tawana Bartell"], ["created_at", "2023-02-02 18:19:26.937020"], ["updated_at", "2023-02-02 18:19:26.937020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Renae Schroeder DVM"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.938110"], ["updated_at", "2023-02-02 18:19:26.938110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Harold Hauck DO"], ["correct", 0], ["created_at", "2023-02-02 18:19:26.939070"], ["updated_at", "2023-02-02 18:19:26.939070"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Sen. Walter Halvorson"], ["correct", 1], ["created_at", "2023-02-02 18:19:26.939877"], ["updated_at", "2023-02-02 18:19:26.939877"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Shala Stroman Ret."], ["correct", 1], ["created_at", "2023-02-02 18:19:26.940669"], ["updated_at", "2023-02-02 18:19:26.940669"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.469511"], ["updated_at", "2023-02-02 18:19:43.469511"], ["name", "Dominick Goodwin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tyree Jerde"], ["description", "Sunt alias nisi. Quasi tenetur nisi. Maxime occaecati nobis."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.474671"], ["updated_at", "2023-02-02 18:19:43.474671"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kimberely Walter I"], ["created_at", "2023-02-02 18:19:43.486769"], ["updated_at", "2023-02-02 18:19:43.486769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Msgr. Lon Kshlerin"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.490117"], ["updated_at", "2023-02-02 18:19:43.490117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:43.493103"], ["updated_at", "2023-02-02 18:19:43.493103"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.507745"], ["updated_at", "2023-02-02 18:19:43.507745"], ["name", "Ryan Weber"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hae Littel"], ["description", "Rerum similique illum. Asperiores esse sunt. Iste repellendus similique."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.509241"], ["updated_at", "2023-02-02 18:19:43.509241"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Stewart Keebler"], ["created_at", "2023-02-02 18:19:43.512176"], ["updated_at", "2023-02-02 18:19:43.512176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Connie Dietrich"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.513199"], ["updated_at", "2023-02-02 18:19:43.513199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:43.514310"], ["updated_at", "2023-02-02 18:19:43.514310"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.516368"], ["updated_at", "2023-02-02 18:19:43.516368"], ["name", "Merrill Kirlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emily Beer"], ["description", "Nam voluptatum hic. Laboriosam incidunt ratione. Ratione qui est."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.517843"], ["updated_at", "2023-02-02 18:19:43.517843"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chauncey Berge MD"], ["created_at", "2023-02-02 18:19:43.520073"], ["updated_at", "2023-02-02 18:19:43.520073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Fr. Marisela Beier"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.520864"], ["updated_at", "2023-02-02 18:19:43.520864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:43.521887"], ["updated_at", "2023-02-02 18:19:43.521887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.523931"], ["updated_at", "2023-02-02 18:19:43.523931"], ["name", "Sabrina Hudson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Trinidad Weimann"], ["description", "Voluptatem perspiciatis voluptatem. Fuga eum ipsum. Optio incidunt et."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.525269"], ["updated_at", "2023-02-02 18:19:43.525269"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Milo Ziemann"], ["created_at", "2023-02-02 18:19:43.527243"], ["updated_at", "2023-02-02 18:19:43.527243"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Van Dietrich"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.527956"], ["updated_at", "2023-02-02 18:19:43.527956"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:19:43.528896"], ["updated_at", "2023-02-02 18:19:43.528896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.537939"], ["updated_at", "2023-02-02 18:19:43.537939"], ["name", "Brent Stehr"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeffie Funk Esq."], ["description", "Ea aut placeat. Totam aut suscipit. Minus rem nihil."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.539382"], ["updated_at", "2023-02-02 18:19:43.539382"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:19:43.549105"], ["updated_at", "2023-02-02 18:19:43.549105"], ["name", "Lourdes Hettinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amelia Leannon"], ["description", "Laborum debitis unde. Cum enim sit. Sint enim et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.550657"], ["updated_at", "2023-02-02 18:19:43.550657"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Arthur Schmitt"], ["description", "Sunt nostrum ut. Et quis quia. Quibusdam est dicta."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.565170"], ["updated_at", "2023-02-02 18:19:43.565170"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Janise Lind"], ["created_at", "2023-02-02 18:19:43.567463"], ["updated_at", "2023-02-02 18:19:43.567463"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Roy Christiansen"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.568486"], ["updated_at", "2023-02-02 18:19:43.568486"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Zachery Schowalter"], ["description", "Maxime voluptatem et. Doloribus necessitatibus sed. Praesentium est ut."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.571133"], ["updated_at", "2023-02-02 18:19:43.571133"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jorge Huel"], ["created_at", "2023-02-02 18:19:43.572607"], ["updated_at", "2023-02-02 18:19:43.572607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Byron Schumm DC"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.573512"], ["updated_at", "2023-02-02 18:19:43.573512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ayako Johns"], ["description", "Ipsa neque autem. Animi aut molestiae. Voluptate est accusantium."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.578201"], ["updated_at", "2023-02-02 18:19:43.578201"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Andera Daniel"], ["created_at", "2023-02-02 18:19:43.579381"], ["updated_at", "2023-02-02 18:19:43.579381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (1.6ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Kiyoko Bauch LLD"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.580201"], ["updated_at", "2023-02-02 18:19:43.580201"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Terence Bradtke"], ["correct", 1], ["created_at", "2023-02-02 18:19:43.582703"], ["updated_at", "2023-02-02 18:19:43.582703"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "David Weber I"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.583578"], ["updated_at", "2023-02-02 18:19:43.583578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tonda Wolff DO"], ["description", "Aut maxime sint. Alias ut totam. Consectetur eaque at."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:19:43.585942"], ["updated_at", "2023-02-02 18:19:43.585942"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lilly Kuhn DVM"], ["created_at", "2023-02-02 18:19:43.588051"], ["updated_at", "2023-02-02 18:19:43.588051"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Cordell Hagenes"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.589515"], ["updated_at", "2023-02-02 18:19:43.589515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Glynda Legros"], ["correct", 0], ["created_at", "2023-02-02 18:19:43.590374"], ["updated_at", "2023-02-02 18:19:43.590374"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Toya Padberg"], ["correct", 1], ["created_at", "2023-02-02 18:19:43.591135"], ["updated_at", "2023-02-02 18:19:43.591135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Diedre Leannon"], ["correct", 1], ["created_at", "2023-02-02 18:19:43.591944"], ["updated_at", "2023-02-02 18:19:43.591944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.694393"], ["updated_at", "2023-02-02 18:21:37.694393"], ["name", "Dorothea Kovacek"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cheyenne Terry"], ["description", "Nobis accusantium totam. Quae nostrum laborum. Fugiat aliquam ut."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.700638"], ["updated_at", "2023-02-02 18:21:37.700638"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Zackary Gleichner"], ["created_at", "2023-02-02 18:21:37.713286"], ["updated_at", "2023-02-02 18:21:37.713286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Msgr. Heidy Yundt"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.716344"], ["updated_at", "2023-02-02 18:21:37.716344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:21:37.719330"], ["updated_at", "2023-02-02 18:21:37.719330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.734525"], ["updated_at", "2023-02-02 18:21:37.734525"], ["name", "Sonny Bauch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marlon Cronin"], ["description", "Animi officia ad. Necessitatibus quis quia. Perferendis neque consequatur."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.736111"], ["updated_at", "2023-02-02 18:21:37.736111"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Milton Mohr VM"], ["created_at", "2023-02-02 18:21:37.738642"], ["updated_at", "2023-02-02 18:21:37.738642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Polly Wintheiser JD"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.739659"], ["updated_at", "2023-02-02 18:21:37.739659"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:21:37.740823"], ["updated_at", "2023-02-02 18:21:37.740823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.742829"], ["updated_at", "2023-02-02 18:21:37.742829"], ["name", "Teddy Wintheiser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lazaro Hessel PhD"], ["description", "Saepe corrupti est. Explicabo et laborum. Eos error excepturi."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.744101"], ["updated_at", "2023-02-02 18:21:37.744101"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kiley Jones"], ["created_at", "2023-02-02 18:21:37.746085"], ["updated_at", "2023-02-02 18:21:37.746085"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Kandra Daugherty"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.746820"], ["updated_at", "2023-02-02 18:21:37.746820"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:21:37.747757"], ["updated_at", "2023-02-02 18:21:37.747757"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.749567"], ["updated_at", "2023-02-02 18:21:37.749567"], ["name", "Korey Graham"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Albert Rohan"], ["description", "Nihil et blanditiis. Qui non odio. Officia eum aut."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.750725"], ["updated_at", "2023-02-02 18:21:37.750725"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Reinaldo Hartmann"], ["created_at", "2023-02-02 18:21:37.752807"], ["updated_at", "2023-02-02 18:21:37.752807"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Barry Jast"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.753673"], ["updated_at", "2023-02-02 18:21:37.753673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:21:37.755386"], ["updated_at", "2023-02-02 18:21:37.755386"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.764402"], ["updated_at", "2023-02-02 18:21:37.764402"], ["name", "Dorsey Goyette VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emanuel Beatty LLD"], ["description", "Ut at iste. Omnis corporis harum. Consectetur qui qui."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.765734"], ["updated_at", "2023-02-02 18:21:37.765734"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:21:37.776574"], ["updated_at", "2023-02-02 18:21:37.776574"], ["name", "Cesar Schulist VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bruce Kilback"], ["description", "Quasi laboriosam ipsam. Expedita laborum reiciendis. Repudiandae et est."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.778445"], ["updated_at", "2023-02-02 18:21:37.778445"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (1.7ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (1.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Isaura Walker"], ["description", "Reprehenderit ut rerum. Quasi ut aut. Error odit sequi."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.797093"], ["updated_at", "2023-02-02 18:21:37.797093"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Aldo Hackett MD"], ["created_at", "2023-02-02 18:21:37.798469"], ["updated_at", "2023-02-02 18:21:37.798469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Kaleigh Sporer"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.799502"], ["updated_at", "2023-02-02 18:21:37.799502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nicholas Lang"], ["description", "Et accusamus sapiente. Minima possimus aut. Quia odit qui."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.801829"], ["updated_at", "2023-02-02 18:21:37.801829"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Otha Smith"], ["created_at", "2023-02-02 18:21:37.803243"], ["updated_at", "2023-02-02 18:21:37.803243"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Everette Dibbert"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.804271"], ["updated_at", "2023-02-02 18:21:37.804271"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reba Romaguera"], ["description", "Nam corporis numquam. Non sed ex. Nisi officia et."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.810226"], ["updated_at", "2023-02-02 18:21:37.810226"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Kamilah Runolfsdottir"], ["created_at", "2023-02-02 18:21:37.811631"], ["updated_at", "2023-02-02 18:21:37.811631"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Damien Abernathy"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.812467"], ["updated_at", "2023-02-02 18:21:37.812467"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Rep. Walter Pollich"], ["correct", 1], ["created_at", "2023-02-02 18:21:37.813276"], ["updated_at", "2023-02-02 18:21:37.813276"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Malika Metz"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.814005"], ["updated_at", "2023-02-02 18:21:37.814005"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denita Connelly"], ["description", "Iusto nobis magni. Atque similique molestiae. Accusamus occaecati vitae."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:21:37.816584"], ["updated_at", "2023-02-02 18:21:37.816584"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Van Wilkinson"], ["created_at", "2023-02-02 18:21:37.818479"], ["updated_at", "2023-02-02 18:21:37.818479"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Napoleon Beahan"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.819804"], ["updated_at", "2023-02-02 18:21:37.819804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Daryl Nader"], ["correct", 0], ["created_at", "2023-02-02 18:21:37.821293"], ["updated_at", "2023-02-02 18:21:37.821293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Candy Becker III"], ["created_at", "2023-02-02 18:21:37.823020"], ["updated_at", "2023-02-02 18:21:37.823020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 2], ["text", "Mi Farrell"], ["correct", 1], ["created_at", "2023-02-02 18:21:37.824084"], ["updated_at", "2023-02-02 18:21:37.824084"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Arnetta Bailey"], ["created_at", "2023-02-02 18:21:37.824897"], ["updated_at", "2023-02-02 18:21:37.824897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 5], ["text", "Genevie Krajcik"], ["correct", 1], ["created_at", "2023-02-02 18:21:37.825699"], ["updated_at", "2023-02-02 18:21:37.825699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:05.970787"], ["updated_at", "2023-02-02 18:22:05.970787"], ["name", "Prof. Marie Ledner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lou Kreiger"], ["description", "Aut minus vel. Vero repudiandae iste. Deserunt adipisci voluptate."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:05.977311"], ["updated_at", "2023-02-02 18:22:05.977311"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Young Lemke"], ["created_at", "2023-02-02 18:22:05.989832"], ["updated_at", "2023-02-02 18:22:05.989832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Demetrice Auer"], ["correct", 0], ["created_at", "2023-02-02 18:22:05.992919"], ["updated_at", "2023-02-02 18:22:05.992919"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:22:05.995944"], ["updated_at", "2023-02-02 18:22:05.995944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:06.011758"], ["updated_at", "2023-02-02 18:22:06.011758"], ["name", "Wilmer King"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terica Crona"], ["description", "Doloremque sit voluptates. Et ex et. Quibusdam sed consequatur."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.013328"], ["updated_at", "2023-02-02 18:22:06.013328"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Luann Barton"], ["created_at", "2023-02-02 18:22:06.015986"], ["updated_at", "2023-02-02 18:22:06.015986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Jake Runolfsdottir"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.017037"], ["updated_at", "2023-02-02 18:22:06.017037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:22:06.018219"], ["updated_at", "2023-02-02 18:22:06.018219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:06.020386"], ["updated_at", "2023-02-02 18:22:06.020386"], ["name", "William Jast"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sonny Marquardt Esq."], ["description", "Cupiditate consequuntur voluptas. Ad voluptatem et. Officia quia occaecati."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.022062"], ["updated_at", "2023-02-02 18:22:06.022062"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Micah Bartell"], ["created_at", "2023-02-02 18:22:06.024269"], ["updated_at", "2023-02-02 18:22:06.024269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Daisy Wiza"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.025021"], ["updated_at", "2023-02-02 18:22:06.025021"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:22:06.026020"], ["updated_at", "2023-02-02 18:22:06.026020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:06.028010"], ["updated_at", "2023-02-02 18:22:06.028010"], ["name", "Keren Anderson Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Rubie Reichert"], ["description", "Nostrum ut et. Qui quis est. Mollitia et quis."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.029240"], ["updated_at", "2023-02-02 18:22:06.029240"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alva Mann"], ["created_at", "2023-02-02 18:22:06.031299"], ["updated_at", "2023-02-02 18:22:06.031299"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Shanae Hermiston"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.032384"], ["updated_at", "2023-02-02 18:22:06.032384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:22:06.034324"], ["updated_at", "2023-02-02 18:22:06.034324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:06.044448"], ["updated_at", "2023-02-02 18:22:06.044448"], ["name", "Garth Lemke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rayford Dach"], ["description", "Facilis omnis aliquam. Amet placeat odio. Et vero natus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.045891"], ["updated_at", "2023-02-02 18:22:06.045891"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.5ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:22:06.060523"], ["updated_at", "2023-02-02 18:22:06.060523"], ["name", "Rayford Ortiz I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leigh Veum"], ["description", "Esse debitis id. Eos aut consequatur. Enim repudiandae rerum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.062059"], ["updated_at", "2023-02-02 18:22:06.062059"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Edie Auer"], ["description", "Nihil dolor eos. Iusto sint laboriosam. Qui ut voluptas."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.079373"], ["updated_at", "2023-02-02 18:22:06.079373"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edelmira Gutkowski"], ["created_at", "2023-02-02 18:22:06.080675"], ["updated_at", "2023-02-02 18:22:06.080675"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lincoln Hackett"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.081559"], ["updated_at", "2023-02-02 18:22:06.081559"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ollie Schroeder"], ["description", "Enim rerum illum. Et aperiam repellat. Architecto nihil atque."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.083923"], ["updated_at", "2023-02-02 18:22:06.083923"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Mendy Treutel"], ["created_at", "2023-02-02 18:22:06.085319"], ["updated_at", "2023-02-02 18:22:06.085319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Deshawn Prosacco"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.086034"], ["updated_at", "2023-02-02 18:22:06.086034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Markus Ratke"], ["description", "Voluptas totam et. Tempore commodi non. Ipsum omnis quas."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.090067"], ["updated_at", "2023-02-02 18:22:06.090067"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sheila Block"], ["created_at", "2023-02-02 18:22:06.091481"], ["updated_at", "2023-02-02 18:22:06.091481"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Queenie Reichel"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.092315"], ["updated_at", "2023-02-02 18:22:06.092315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Ervin White"], ["correct", 1], ["created_at", "2023-02-02 18:22:06.093082"], ["updated_at", "2023-02-02 18:22:06.093082"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Perry Rodriguez"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.093804"], ["updated_at", "2023-02-02 18:22:06.093804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zachariah Aufderhar"], ["description", "Adipisci pariatur nobis. A voluptas temporibus. Quaerat adipisci soluta."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:22:06.095607"], ["updated_at", "2023-02-02 18:22:06.095607"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Doyle Pfannerstill"], ["created_at", "2023-02-02 18:22:06.096647"], ["updated_at", "2023-02-02 18:22:06.096647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Katlyn Maggio"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.097554"], ["updated_at", "2023-02-02 18:22:06.097554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garnet Kling"], ["created_at", "2023-02-02 18:22:06.098727"], ["updated_at", "2023-02-02 18:22:06.098727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 2], ["text", "Ilse Kuhn"], ["correct", 0], ["created_at", "2023-02-02 18:22:06.100012"], ["updated_at", "2023-02-02 18:22:06.100012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Grady Gerhold"], ["created_at", "2023-02-02 18:22:06.101045"], ["updated_at", "2023-02-02 18:22:06.101045"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 2], ["text", "Lanette Hickle"], ["correct", 1], ["created_at", "2023-02-02 18:22:06.102054"], ["updated_at", "2023-02-02 18:22:06.102054"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Michael Schaden"], ["created_at", "2023-02-02 18:22:06.102841"], ["updated_at", "2023-02-02 18:22:06.102841"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 5], ["text", "Bernadette Kuvalis"], ["correct", 1], ["created_at", "2023-02-02 18:22:06.103625"], ["updated_at", "2023-02-02 18:22:06.103625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.463348"], ["updated_at", "2023-02-02 18:23:35.463348"], ["name", "Titus D'Amore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Laura Gottlieb"], ["description", "Quibusdam praesentium quo. Ipsam odit natus. Quibusdam facilis est."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.468589"], ["updated_at", "2023-02-02 18:23:35.468589"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vince Moen"], ["created_at", "2023-02-02 18:23:35.480822"], ["updated_at", "2023-02-02 18:23:35.480822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Msgr. Cedric Halvorson"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.483914"], ["updated_at", "2023-02-02 18:23:35.483914"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:23:35.486902"], ["updated_at", "2023-02-02 18:23:35.486902"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.501722"], ["updated_at", "2023-02-02 18:23:35.501722"], ["name", "Vikki Beer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeffry Hackett"], ["description", "Nihil ab consequatur. Quasi vel consequuntur. Nesciunt ipsa reprehenderit."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.503211"], ["updated_at", "2023-02-02 18:23:35.503211"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Dwight Conn"], ["created_at", "2023-02-02 18:23:35.505792"], ["updated_at", "2023-02-02 18:23:35.505792"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Christiane Farrell"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.506747"], ["updated_at", "2023-02-02 18:23:35.506747"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:23:35.507835"], ["updated_at", "2023-02-02 18:23:35.507835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.509855"], ["updated_at", "2023-02-02 18:23:35.509855"], ["name", "Madge Little"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lyndon Gulgowski"], ["description", "Atque sunt placeat. Cum est ullam. Facilis quos inventore."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.511114"], ["updated_at", "2023-02-02 18:23:35.511114"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Barrett Altenwerth"], ["created_at", "2023-02-02 18:23:35.513069"], ["updated_at", "2023-02-02 18:23:35.513069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Stevie Luettgen"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.513783"], ["updated_at", "2023-02-02 18:23:35.513783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:23:35.514715"], ["updated_at", "2023-02-02 18:23:35.514715"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.516941"], ["updated_at", "2023-02-02 18:23:35.516941"], ["name", "Ana Reilly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shonna Stoltenberg"], ["description", "Ab fugit recusandae. Corrupti dolor omnis. Harum nemo dolor."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.518738"], ["updated_at", "2023-02-02 18:23:35.518738"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Camellia Veum"], ["created_at", "2023-02-02 18:23:35.521049"], ["updated_at", "2023-02-02 18:23:35.521049"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Renato Kuphal VM"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.521848"], ["updated_at", "2023-02-02 18:23:35.521848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:23:35.522900"], ["updated_at", "2023-02-02 18:23:35.522900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (1.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.536355"], ["updated_at", "2023-02-02 18:23:35.536355"], ["name", "Mohammad Fahey DDS"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chauncey Crooks"], ["description", "Facere amet quas. Rerum libero officiis. Nihil minima mollitia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.538945"], ["updated_at", "2023-02-02 18:23:35.538945"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:23:35.552121"], ["updated_at", "2023-02-02 18:23:35.552121"], ["name", "Modesta Schowalter"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jim Reinger"], ["description", "Similique officiis assumenda. Quis nihil corrupti. Aut velit quidem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.553569"], ["updated_at", "2023-02-02 18:23:35.553569"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shannon Murphy"], ["description", "Iure porro occaecati. Impedit et deleniti. Rerum in consectetur."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.570118"], ["updated_at", "2023-02-02 18:23:35.570118"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Toshia Medhurst"], ["created_at", "2023-02-02 18:23:35.571335"], ["updated_at", "2023-02-02 18:23:35.571335"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 7], ["text", "Aimee Okuneva"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.572155"], ["updated_at", "2023-02-02 18:23:35.572155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charley Treutel"], ["description", "In tempora nisi. Qui vel amet. Qui quibusdam necessitatibus."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.574251"], ["updated_at", "2023-02-02 18:23:35.574251"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bradly Prohaska"], ["created_at", "2023-02-02 18:23:35.575743"], ["updated_at", "2023-02-02 18:23:35.575743"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Gilbert Mante"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.576719"], ["updated_at", "2023-02-02 18:23:35.576719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zachery Kuhn"], ["description", "Ut rem dolorem. Adipisci in beatae. Cum sed molestiae."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.580504"], ["updated_at", "2023-02-02 18:23:35.580504"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amal Lebsack"], ["created_at", "2023-02-02 18:23:35.582076"], ["updated_at", "2023-02-02 18:23:35.582076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Elmer Murray"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.583699"], ["updated_at", "2023-02-02 18:23:35.583699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mendy Wyman"], ["correct", 1], ["created_at", "2023-02-02 18:23:35.584867"], ["updated_at", "2023-02-02 18:23:35.584867"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Lissette Roob"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.585683"], ["updated_at", "2023-02-02 18:23:35.585683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shae Blick"], ["description", "Repellendus minus ullam. Vel necessitatibus tempore. Et facere fuga."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:23:35.587693"], ["updated_at", "2023-02-02 18:23:35.587693"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tory Nader"], ["created_at", "2023-02-02 18:23:35.588808"], ["updated_at", "2023-02-02 18:23:35.588808"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Trudi Treutel"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.589591"], ["updated_at", "2023-02-02 18:23:35.589591"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Darrin Harvey"], ["correct", 0], ["created_at", "2023-02-02 18:23:35.590509"], ["updated_at", "2023-02-02 18:23:35.590509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Vida Feest I"], ["correct", 1], ["created_at", "2023-02-02 18:23:35.591317"], ["updated_at", "2023-02-02 18:23:35.591317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Ettie D'Amore"], ["correct", 1], ["created_at", "2023-02-02 18:23:35.592117"], ["updated_at", "2023-02-02 18:23:35.592117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.099902"], ["updated_at", "2023-02-02 18:24:48.099902"], ["name", "The Hon. Lance Langworth"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Beatriz Jacobson"], ["description", "Repudiandae similique necessitatibus. Nostrum iure at. Impedit voluptas qui."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.105721"], ["updated_at", "2023-02-02 18:24:48.105721"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nu Fay"], ["created_at", "2023-02-02 18:24:48.122653"], ["updated_at", "2023-02-02 18:24:48.122653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Dorine Rice"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.125759"], ["updated_at", "2023-02-02 18:24:48.125759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:24:48.128920"], ["updated_at", "2023-02-02 18:24:48.128920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.144337"], ["updated_at", "2023-02-02 18:24:48.144337"], ["name", "Shelby Walsh"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hyun Emmerich"], ["description", "Temporibus aliquam ab. Molestiae culpa numquam. Enim itaque doloremque."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.145825"], ["updated_at", "2023-02-02 18:24:48.145825"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chiquita Hickle"], ["created_at", "2023-02-02 18:24:48.148426"], ["updated_at", "2023-02-02 18:24:48.148426"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Refugia Conroy"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.149477"], ["updated_at", "2023-02-02 18:24:48.149477"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:24:48.150566"], ["updated_at", "2023-02-02 18:24:48.150566"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.152770"], ["updated_at", "2023-02-02 18:24:48.152770"], ["name", "Jerold Price"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Olga Veum"], ["description", "Eos distinctio voluptatem. Et modi natus. Placeat et architecto."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.154213"], ["updated_at", "2023-02-02 18:24:48.154213"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Colton King III"], ["created_at", "2023-02-02 18:24:48.156818"], ["updated_at", "2023-02-02 18:24:48.156818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Sol Schultz"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.158114"], ["updated_at", "2023-02-02 18:24:48.158114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:24:48.159407"], ["updated_at", "2023-02-02 18:24:48.159407"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.161501"], ["updated_at", "2023-02-02 18:24:48.161501"], ["name", "Marlo Lemke Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Raquel Shanahan JD"], ["description", "Aliquid ducimus mollitia. Amet quos nemo. Numquam animi incidunt."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.162861"], ["updated_at", "2023-02-02 18:24:48.162861"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Adriane Schaefer CPA"], ["created_at", "2023-02-02 18:24:48.164952"], ["updated_at", "2023-02-02 18:24:48.164952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 6], ["text", "Dr. Moshe Yost"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.165736"], ["updated_at", "2023-02-02 18:24:48.165736"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:24:48.166721"], ["updated_at", "2023-02-02 18:24:48.166721"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.175611"], ["updated_at", "2023-02-02 18:24:48.175611"], ["name", "Cruz Huels"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Margarite Kshlerin"], ["description", "Odit facere officia. Illo alias sint. Nobis vel natus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.177282"], ["updated_at", "2023-02-02 18:24:48.177282"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:24:48.191877"], ["updated_at", "2023-02-02 18:24:48.191877"], ["name", "Chassidy Abshire"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eduardo Davis"], ["description", "Vero sequi maiores. Asperiores rerum ea. Assumenda dolor quia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.193444"], ["updated_at", "2023-02-02 18:24:48.193444"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leeanne Legros"], ["description", "Eum quis quo. A magnam quia. Et a magni."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.209740"], ["updated_at", "2023-02-02 18:24:48.209740"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Missy Ernser"], ["created_at", "2023-02-02 18:24:48.211198"], ["updated_at", "2023-02-02 18:24:48.211198"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ayesha Greenfelder"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.212191"], ["updated_at", "2023-02-02 18:24:48.212191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dot Beatty"], ["description", "Et enim rerum. Voluptatum deleniti explicabo. Voluptatem et quia."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.214981"], ["updated_at", "2023-02-02 18:24:48.214981"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alphonso Armstrong"], ["created_at", "2023-02-02 18:24:48.216320"], ["updated_at", "2023-02-02 18:24:48.216320"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Damion MacGyver"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.217295"], ["updated_at", "2023-02-02 18:24:48.217295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Angelina Wilderman"], ["description", "Qui odio est. Corrupti assumenda inventore. At reprehenderit iusto."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.221466"], ["updated_at", "2023-02-02 18:24:48.221466"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Norman Huels LLD"], ["created_at", "2023-02-02 18:24:48.222707"], ["updated_at", "2023-02-02 18:24:48.222707"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Miss Lue Kertzmann"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.223656"], ["updated_at", "2023-02-02 18:24:48.223656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Chantell Schultz"], ["correct", 1], ["created_at", "2023-02-02 18:24:48.224458"], ["updated_at", "2023-02-02 18:24:48.224458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Russell Kunze"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.225232"], ["updated_at", "2023-02-02 18:24:48.225232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Felipe Luettgen"], ["description", "Expedita laudantium consequatur. Adipisci repellat ex. Ut soluta occaecati."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:24:48.227593"], ["updated_at", "2023-02-02 18:24:48.227593"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kristie Kshlerin"], ["created_at", "2023-02-02 18:24:48.229881"], ["updated_at", "2023-02-02 18:24:48.229881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Deon Jenkins"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.231381"], ["updated_at", "2023-02-02 18:24:48.231381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Jamar Dooley"], ["correct", 0], ["created_at", "2023-02-02 18:24:48.233230"], ["updated_at", "2023-02-02 18:24:48.233230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Mario Kris"], ["correct", 1], ["created_at", "2023-02-02 18:24:48.234506"], ["updated_at", "2023-02-02 18:24:48.234506"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Ramon Bahringer"], ["correct", 1], ["created_at", "2023-02-02 18:24:48.237071"], ["updated_at", "2023-02-02 18:24:48.237071"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.021846"], ["updated_at", "2023-02-02 18:25:46.021846"], ["name", "Alphonse Fahey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mandie Braun"], ["description", "Vel dolor culpa. Sed ea atque. Quam beatae voluptatem."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.027425"], ["updated_at", "2023-02-02 18:25:46.027425"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Heather Aufderhar"], ["created_at", "2023-02-02 18:25:46.039875"], ["updated_at", "2023-02-02 18:25:46.039875"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Msgr. Norbert Wiegand"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.042984"], ["updated_at", "2023-02-02 18:25:46.042984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:25:46.046064"], ["updated_at", "2023-02-02 18:25:46.046064"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.061277"], ["updated_at", "2023-02-02 18:25:46.061277"], ["name", "Roseanne Rutherford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Ted Beer"], ["description", "Qui eaque culpa. Sit voluptas at. Ut dolor dolorum."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.062840"], ["updated_at", "2023-02-02 18:25:46.062840"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kerry Kunze"], ["created_at", "2023-02-02 18:25:46.065937"], ["updated_at", "2023-02-02 18:25:46.065937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 8], ["text", "Modesto Gorczany"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.066815"], ["updated_at", "2023-02-02 18:25:46.066815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:25:46.067877"], ["updated_at", "2023-02-02 18:25:46.067877"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.069844"], ["updated_at", "2023-02-02 18:25:46.069844"], ["name", "Preston Franecki"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Omar Klein"], ["description", "Reprehenderit excepturi fuga. Perferendis nesciunt provident. Facere quis maiores."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.071168"], ["updated_at", "2023-02-02 18:25:46.071168"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Alverta Ondricka"], ["created_at", "2023-02-02 18:25:46.073148"], ["updated_at", "2023-02-02 18:25:46.073148"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Deloris Zulauf"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.073843"], ["updated_at", "2023-02-02 18:25:46.073843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:25:46.074795"], ["updated_at", "2023-02-02 18:25:46.074795"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.077084"], ["updated_at", "2023-02-02 18:25:46.077084"], ["name", "Amb. Malcom Runte"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Phillip Walker LLD"], ["description", "Delectus aut adipisci. In quia doloribus. Aut est commodi."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.078902"], ["updated_at", "2023-02-02 18:25:46.078902"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dion Leffler"], ["created_at", "2023-02-02 18:25:46.081261"], ["updated_at", "2023-02-02 18:25:46.081261"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Otis Greenholt"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.082000"], ["updated_at", "2023-02-02 18:25:46.082000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:25:46.083099"], ["updated_at", "2023-02-02 18:25:46.083099"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.091869"], ["updated_at", "2023-02-02 18:25:46.091869"], ["name", "The Hon. Xenia Lockman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jasper Kutch"], ["description", "Reprehenderit nulla quod. Tempora fuga qui. Et ratione aut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.093993"], ["updated_at", "2023-02-02 18:25:46.093993"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.8ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:25:46.109729"], ["updated_at", "2023-02-02 18:25:46.109729"], ["name", "Mason Larson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Allen Kovacek"], ["description", "Quis qui ipsum. Ut qui rerum. Est molestiae ut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.112701"], ["updated_at", "2023-02-02 18:25:46.112701"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Josephina Beatty DO"], ["description", "Laudantium at consequuntur. Ex aliquam et. Neque nesciunt enim."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.130630"], ["updated_at", "2023-02-02 18:25:46.130630"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wilford Witting"], ["created_at", "2023-02-02 18:25:46.132520"], ["updated_at", "2023-02-02 18:25:46.132520"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Delphine Wolff Sr."], ["correct", 0], ["created_at", "2023-02-02 18:25:46.135359"], ["updated_at", "2023-02-02 18:25:46.135359"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Granville Dickens"], ["description", "Ut est adipisci. Inventore incidunt ea. Aperiam asperiores perferendis."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.138626"], ["updated_at", "2023-02-02 18:25:46.138626"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Antwan Keebler"], ["created_at", "2023-02-02 18:25:46.140149"], ["updated_at", "2023-02-02 18:25:46.140149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 2], ["text", "Darrin Fritsch"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.141223"], ["updated_at", "2023-02-02 18:25:46.141223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Danica Nikolaus"], ["description", "Est dignissimos dolorem. Similique enim fugiat. Aut veniam est."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.148369"], ["updated_at", "2023-02-02 18:25:46.148369"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Zana Goldner Jr."], ["created_at", "2023-02-02 18:25:46.150172"], ["updated_at", "2023-02-02 18:25:46.150172"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 9], ["text", "Brooks Effertz"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.151244"], ["updated_at", "2023-02-02 18:25:46.151244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darcel Sauer PhD"], ["description", "Quas asperiores impedit. Qui ut iure. Qui reiciendis excepturi."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:25:46.154840"], ["updated_at", "2023-02-02 18:25:46.154840"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nickolas Daugherty"], ["created_at", "2023-02-02 18:25:46.157883"], ["updated_at", "2023-02-02 18:25:46.157883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Audrie Jast LLD"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.159074"], ["updated_at", "2023-02-02 18:25:46.159074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 4], ["text", "Sarai Sipes PhD"], ["correct", 0], ["created_at", "2023-02-02 18:25:46.160313"], ["updated_at", "2023-02-02 18:25:46.160313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 3], ["text", "Selma Swift"], ["correct", 1], ["created_at", "2023-02-02 18:25:46.161914"], ["updated_at", "2023-02-02 18:25:46.161914"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Hector Bosco"], ["correct", 1], ["created_at", "2023-02-02 18:25:46.163358"], ["updated_at", "2023-02-02 18:25:46.163358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.5ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.303794"], ["updated_at", "2023-02-02 18:28:32.303794"], ["name", "Merlin DuBuque"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilburn Doyle"], ["description", "Perferendis molestiae ad. Aliquam qui eius. Non consequuntur ut."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.309157"], ["updated_at", "2023-02-02 18:28:32.309157"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Therese Kilback"], ["created_at", "2023-02-02 18:28:32.321550"], ["updated_at", "2023-02-02 18:28:32.321550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Del Stokes"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.324606"], ["updated_at", "2023-02-02 18:28:32.324606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:28:32.327651"], ["updated_at", "2023-02-02 18:28:32.327651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.342538"], ["updated_at", "2023-02-02 18:28:32.342538"], ["name", "Mandi Hilpert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ryan Herzog"], ["description", "Quam earum vel. Quod fuga ipsum. Qui qui ipsum."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.343921"], ["updated_at", "2023-02-02 18:28:32.343921"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Giuseppina Franecki Jr."], ["created_at", "2023-02-02 18:28:32.346619"], ["updated_at", "2023-02-02 18:28:32.346619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cory Rau"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.347557"], ["updated_at", "2023-02-02 18:28:32.347557"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:28:32.348691"], ["updated_at", "2023-02-02 18:28:32.348691"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.350657"], ["updated_at", "2023-02-02 18:28:32.350657"], ["name", "Eugenio Howell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosario Bashirian"], ["description", "Consequuntur laborum necessitatibus. Enim atque non. Voluptate id et."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.352030"], ["updated_at", "2023-02-02 18:28:32.352030"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dorotha Pagac"], ["created_at", "2023-02-02 18:28:32.354260"], ["updated_at", "2023-02-02 18:28:32.354260"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jacqueline Oberbrunner LLD"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.354996"], ["updated_at", "2023-02-02 18:28:32.354996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:28:32.355964"], ["updated_at", "2023-02-02 18:28:32.355964"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.357976"], ["updated_at", "2023-02-02 18:28:32.357976"], ["name", "Rob Becker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Thanh Walker"], ["description", "Consequatur unde praesentium. Magnam et inventore. Maxime ut consectetur."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.359282"], ["updated_at", "2023-02-02 18:28:32.359282"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Emil Zboncak"], ["created_at", "2023-02-02 18:28:32.361227"], ["updated_at", "2023-02-02 18:28:32.361227"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Keith Yost"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.361946"], ["updated_at", "2023-02-02 18:28:32.361946"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:28:32.362934"], ["updated_at", "2023-02-02 18:28:32.362934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.372809"], ["updated_at", "2023-02-02 18:28:32.372809"], ["name", "Alyson Kub"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Frederic Rowe"], ["description", "Reprehenderit voluptatem at. Nostrum est ut. Perferendis voluptates odio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.374628"], ["updated_at", "2023-02-02 18:28:32.374628"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:28:32.386568"], ["updated_at", "2023-02-02 18:28:32.386568"], ["name", "Johnnie Denesik"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Randa Welch"], ["description", "Vel libero quae. Quaerat deleniti et. Voluptas possimus magnam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.389086"], ["updated_at", "2023-02-02 18:28:32.389086"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jaqueline Wunsch"], ["description", "Ut possimus dicta. Nihil eveniet et. Quia animi quae."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.406761"], ["updated_at", "2023-02-02 18:28:32.406761"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Therese Boyer DVM"], ["created_at", "2023-02-02 18:28:32.408178"], ["updated_at", "2023-02-02 18:28:32.408178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cassie Douglas"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.409037"], ["updated_at", "2023-02-02 18:28:32.409037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Odell Prosacco DDS"], ["description", "Est sed quidem. Enim saepe dolores. Et consequatur totam."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.411340"], ["updated_at", "2023-02-02 18:28:32.411340"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ayako Emard"], ["created_at", "2023-02-02 18:28:32.414040"], ["updated_at", "2023-02-02 18:28:32.414040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Kieth Walter"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.415174"], ["updated_at", "2023-02-02 18:28:32.415174"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dylan Boyle"], ["description", "Distinctio deleniti odio. Iusto sequi consequatur. Enim qui qui."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.420049"], ["updated_at", "2023-02-02 18:28:32.420049"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lewis Rath"], ["created_at", "2023-02-02 18:28:32.422091"], ["updated_at", "2023-02-02 18:28:32.422091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Arnette Waters JD"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.423639"], ["updated_at", "2023-02-02 18:28:32.423639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (3.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mathew Marvin"], ["description", "Dolorem modi enim. Dolorem nulla reprehenderit. Et rerum dolorem."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:28:32.432676"], ["updated_at", "2023-02-02 18:28:32.432676"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Riley Mitchell"], ["created_at", "2023-02-02 18:28:32.434545"], ["updated_at", "2023-02-02 18:28:32.434545"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amalia Toy"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.436016"], ["updated_at", "2023-02-02 18:28:32.436016"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Earnestine Sporer"], ["correct", 0], ["created_at", "2023-02-02 18:28:32.438427"], ["updated_at", "2023-02-02 18:28:32.438427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Austin Ratke I"], ["correct", 1], ["created_at", "2023-02-02 18:28:32.440046"], ["updated_at", "2023-02-02 18:28:32.440046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Marni Schowalter"], ["correct", 1], ["created_at", "2023-02-02 18:28:32.441512"], ["updated_at", "2023-02-02 18:28:32.441512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.407655"], ["updated_at", "2023-02-02 18:29:16.407655"], ["name", "Ara Beier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mohammed Luettgen"], ["description", "Voluptatem non mollitia. Quia iste qui. Deleniti ea voluptate."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.412831"], ["updated_at", "2023-02-02 18:29:16.412831"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Heike Weber"], ["created_at", "2023-02-02 18:29:16.425259"], ["updated_at", "2023-02-02 18:29:16.425259"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mr. Svetlana King"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.428434"], ["updated_at", "2023-02-02 18:29:16.428434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:16.431512"], ["updated_at", "2023-02-02 18:29:16.431512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (1.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.447752"], ["updated_at", "2023-02-02 18:29:16.447752"], ["name", "Lorie VonRueden DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nena Pfannerstill"], ["description", "Asperiores officiis accusamus. Modi blanditiis quo. Et facere aut."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.449252"], ["updated_at", "2023-02-02 18:29:16.449252"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blanch Altenwerth"], ["created_at", "2023-02-02 18:29:16.452118"], ["updated_at", "2023-02-02 18:29:16.452118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Sidney Legros"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.452937"], ["updated_at", "2023-02-02 18:29:16.452937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:16.454007"], ["updated_at", "2023-02-02 18:29:16.454007"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.456046"], ["updated_at", "2023-02-02 18:29:16.456046"], ["name", "Zola Weissnat IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Celesta Schuster"], ["description", "Sed earum sit. Id neque ipsum. Aliquid aut iure."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.457333"], ["updated_at", "2023-02-02 18:29:16.457333"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Junie Bins"], ["created_at", "2023-02-02 18:29:16.459274"], ["updated_at", "2023-02-02 18:29:16.459274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Lacy Kub"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.459982"], ["updated_at", "2023-02-02 18:29:16.459982"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:16.460924"], ["updated_at", "2023-02-02 18:29:16.460924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.462765"], ["updated_at", "2023-02-02 18:29:16.462765"], ["name", "Amb. Gracia Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cleveland Upton"], ["description", "Perferendis praesentium aspernatur. Quisquam nam eligendi. Enim a officiis."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.464278"], ["updated_at", "2023-02-02 18:29:16.464278"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Margarito Herman"], ["created_at", "2023-02-02 18:29:16.467252"], ["updated_at", "2023-02-02 18:29:16.467252"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Virgie Conroy"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.468153"], ["updated_at", "2023-02-02 18:29:16.468153"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:16.469257"], ["updated_at", "2023-02-02 18:29:16.469257"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.7ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.480762"], ["updated_at", "2023-02-02 18:29:16.480762"], ["name", "Carmine Hane"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elene Gutmann"], ["description", "Perspiciatis dolores et. Rerum labore architecto. Fugiat laborum quia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.482572"], ["updated_at", "2023-02-02 18:29:16.482572"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:16.493579"], ["updated_at", "2023-02-02 18:29:16.493579"], ["name", "Elden Beatty"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Darcie Kemmer"], ["description", "Consequatur ab ratione. Velit rerum laboriosam. Provident eius dolorem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.495870"], ["updated_at", "2023-02-02 18:29:16.495870"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Karlene Abernathy LLD"], ["description", "Occaecati repudiandae ratione. Labore iusto itaque. Quis quod sed."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.511309"], ["updated_at", "2023-02-02 18:29:16.511309"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Dion Streich"], ["created_at", "2023-02-02 18:29:16.513315"], ["updated_at", "2023-02-02 18:29:16.513315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Napoleon Mayert"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.514502"], ["updated_at", "2023-02-02 18:29:16.514502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Normand Herman"], ["description", "Dolorum quidem dicta. Ullam optio culpa. Ducimus cumque quibusdam."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.516999"], ["updated_at", "2023-02-02 18:29:16.516999"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Veronique Crooks"], ["created_at", "2023-02-02 18:29:16.518306"], ["updated_at", "2023-02-02 18:29:16.518306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Loren Rath DDS"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.519107"], ["updated_at", "2023-02-02 18:29:16.519107"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Woodrow Hills"], ["description", "Illo aut sit. Repellendus quia quo. Quis tempora quia."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.523262"], ["updated_at", "2023-02-02 18:29:16.523262"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Donald O'Keefe"], ["created_at", "2023-02-02 18:29:16.524498"], ["updated_at", "2023-02-02 18:29:16.524498"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Msgr. Hipolito Reilly"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.525300"], ["updated_at", "2023-02-02 18:29:16.525300"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kesha Homenick"], ["description", "Minus est unde. In dolor et. Sequi suscipit reprehenderit."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:16.527686"], ["updated_at", "2023-02-02 18:29:16.527686"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Juan Schroeder"], ["created_at", "2023-02-02 18:29:16.528823"], ["updated_at", "2023-02-02 18:29:16.528823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Myles Hackett"], ["correct", 0], ["created_at", "2023-02-02 18:29:16.529879"], ["updated_at", "2023-02-02 18:29:16.529879"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Alva Kuhn Esq."], ["correct", 0], ["created_at", "2023-02-02 18:29:16.531206"], ["updated_at", "2023-02-02 18:29:16.531206"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Samantha Pacocha"], ["correct", 1], ["created_at", "2023-02-02 18:29:16.532298"], ["updated_at", "2023-02-02 18:29:16.532298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Colin Metz"], ["correct", 1], ["created_at", "2023-02-02 18:29:16.533346"], ["updated_at", "2023-02-02 18:29:16.533346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.032829"], ["updated_at", "2023-02-02 18:29:43.032829"], ["name", "Fr. Velda Rath"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Hipolito Heller"], ["description", "Veritatis qui fugiat. Ut nisi soluta. Similique autem nihil."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.038449"], ["updated_at", "2023-02-02 18:29:43.038449"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hester Simonis"], ["created_at", "2023-02-02 18:29:43.051859"], ["updated_at", "2023-02-02 18:29:43.051859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Oren Murphy"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.056079"], ["updated_at", "2023-02-02 18:29:43.056079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:43.059980"], ["updated_at", "2023-02-02 18:29:43.059980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.076747"], ["updated_at", "2023-02-02 18:29:43.076747"], ["name", "Marshall McDermott"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Paul Stamm"], ["description", "Dolores sunt itaque. Fuga rerum voluptatum. Deserunt aut qui."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.078449"], ["updated_at", "2023-02-02 18:29:43.078449"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Taisha Borer"], ["created_at", "2023-02-02 18:29:43.081944"], ["updated_at", "2023-02-02 18:29:43.081944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Maire Heaney"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.083112"], ["updated_at", "2023-02-02 18:29:43.083112"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:43.084345"], ["updated_at", "2023-02-02 18:29:43.084345"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.086893"], ["updated_at", "2023-02-02 18:29:43.086893"], ["name", "Doug Bogisich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scott Connelly"], ["description", "Reprehenderit assumenda eligendi. Magni perspiciatis eos. Voluptatem excepturi et."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.088394"], ["updated_at", "2023-02-02 18:29:43.088394"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Salley McGlynn VM"], ["created_at", "2023-02-02 18:29:43.090628"], ["updated_at", "2023-02-02 18:29:43.090628"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Dante Frami"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.091383"], ["updated_at", "2023-02-02 18:29:43.091383"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:43.092391"], ["updated_at", "2023-02-02 18:29:43.092391"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.094393"], ["updated_at", "2023-02-02 18:29:43.094393"], ["name", "Victor Batz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rolando Thompson"], ["description", "Ea inventore sequi. In ut quia. Possimus voluptatem quas."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.095685"], ["updated_at", "2023-02-02 18:29:43.095685"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jenny Bergstrom VM"], ["created_at", "2023-02-02 18:29:43.097779"], ["updated_at", "2023-02-02 18:29:43.097779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Noel Jacobi"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.098540"], ["updated_at", "2023-02-02 18:29:43.098540"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:29:43.099539"], ["updated_at", "2023-02-02 18:29:43.099539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.110166"], ["updated_at", "2023-02-02 18:29:43.110166"], ["name", "Dr. Deon Murphy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Blossom Hoeger"], ["description", "Distinctio unde molestiae. Vitae consequatur qui. Minus et id."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.111809"], ["updated_at", "2023-02-02 18:29:43.111809"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:29:43.122013"], ["updated_at", "2023-02-02 18:29:43.122013"], ["name", "Prof. Lorette Terry"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alvaro Robel"], ["description", "Minima aut accusantium. Facilis doloremque dolorem. Suscipit nesciunt repellendus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.123843"], ["updated_at", "2023-02-02 18:29:43.123843"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Talitha Doyle"], ["description", "Qui voluptates deserunt. Id ut ad. Suscipit officia sapiente."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.138297"], ["updated_at", "2023-02-02 18:29:43.138297"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gail Stiedemann"], ["created_at", "2023-02-02 18:29:43.139903"], ["updated_at", "2023-02-02 18:29:43.139903"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Trinidad Bechtelar"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.140749"], ["updated_at", "2023-02-02 18:29:43.140749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ernesto Lynch"], ["description", "Cupiditate quisquam quidem. Tempora enim fugiat. Unde deleniti quisquam."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.142662"], ["updated_at", "2023-02-02 18:29:43.142662"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Teofila Flatley"], ["created_at", "2023-02-02 18:29:43.143806"], ["updated_at", "2023-02-02 18:29:43.143806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Andreas Skiles"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.144866"], ["updated_at", "2023-02-02 18:29:43.144866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lida Beatty"], ["description", "Tempora voluptas rerum. Nesciunt praesentium odit. Consequatur atque aut."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.148662"], ["updated_at", "2023-02-02 18:29:43.148662"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Santiago Pagac"], ["created_at", "2023-02-02 18:29:43.149895"], ["updated_at", "2023-02-02 18:29:43.149895"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Amb. Chad Brakus"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.150718"], ["updated_at", "2023-02-02 18:29:43.150718"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Edward Kertzmann"], ["description", "Iste possimus nam. Libero animi doloribus. Voluptatibus enim quo."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:29:43.153812"], ["updated_at", "2023-02-02 18:29:43.153812"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Leigh Kemmer"], ["created_at", "2023-02-02 18:29:43.155403"], ["updated_at", "2023-02-02 18:29:43.155403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mrs. Odis Volkman"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.156617"], ["updated_at", "2023-02-02 18:29:43.156617"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Ms. Terese Hessel"], ["correct", 0], ["created_at", "2023-02-02 18:29:43.157500"], ["updated_at", "2023-02-02 18:29:43.157500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.3ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.085878"], ["updated_at", "2023-02-02 18:31:44.085878"], ["name", "Zack Zboncak"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Crystal Yost"], ["description", "Neque inventore tempore. Qui eos quia. Ut aut qui."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.091559"], ["updated_at", "2023-02-02 18:31:44.091559"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Moises Roberts"], ["created_at", "2023-02-02 18:31:44.104181"], ["updated_at", "2023-02-02 18:31:44.104181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Shaneka Streich"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.107221"], ["updated_at", "2023-02-02 18:31:44.107221"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:31:44.110370"], ["updated_at", "2023-02-02 18:31:44.110370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.125304"], ["updated_at", "2023-02-02 18:31:44.125304"], ["name", "Helaine Hammes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Yolando Stehr"], ["description", "Ut quasi molestias. Vel est doloribus. Quisquam minima sit."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.126838"], ["updated_at", "2023-02-02 18:31:44.126838"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chanell Powlowski"], ["created_at", "2023-02-02 18:31:44.129368"], ["updated_at", "2023-02-02 18:31:44.129368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Jamel Fahey"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.130435"], ["updated_at", "2023-02-02 18:31:44.130435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:31:44.131538"], ["updated_at", "2023-02-02 18:31:44.131538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.133495"], ["updated_at", "2023-02-02 18:31:44.133495"], ["name", "Glory Moore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Gertha Waters"], ["description", "Aut possimus sunt. Molestiae et dolorum. Velit velit id."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.134770"], ["updated_at", "2023-02-02 18:31:44.134770"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Karima Wisoky"], ["created_at", "2023-02-02 18:31:44.136704"], ["updated_at", "2023-02-02 18:31:44.136704"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Kam Baumbach"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.137396"], ["updated_at", "2023-02-02 18:31:44.137396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:31:44.138362"], ["updated_at", "2023-02-02 18:31:44.138362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.140201"], ["updated_at", "2023-02-02 18:31:44.140201"], ["name", "Serena Bosco"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Moshe Bednar IV"], ["description", "Aperiam autem velit. A quia eum. Voluptatem alias animi."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.141513"], ["updated_at", "2023-02-02 18:31:44.141513"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ollie Funk"], ["created_at", "2023-02-02 18:31:44.144292"], ["updated_at", "2023-02-02 18:31:44.144292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mr. Rosalba Okuneva"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.145323"], ["updated_at", "2023-02-02 18:31:44.145323"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:31:44.146487"], ["updated_at", "2023-02-02 18:31:44.146487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.157227"], ["updated_at", "2023-02-02 18:31:44.157227"], ["name", "Msgr. Krishna Thompson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Michel Torphy"], ["description", "Odio enim et. Optio laudantium quo. Occaecati modi nam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.159391"], ["updated_at", "2023-02-02 18:31:44.159391"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:31:44.171747"], ["updated_at", "2023-02-02 18:31:44.171747"], ["name", "Vivienne Osinski Ret."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lilla Corkery Jr."], ["description", "Qui ab quis. Magnam delectus quaerat. Laborum esse eos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.173423"], ["updated_at", "2023-02-02 18:31:44.173423"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.8ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Altha Wuckert"], ["description", "Et sed eius. Explicabo dolores asperiores. Voluptas eos repellendus."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.191627"], ["updated_at", "2023-02-02 18:31:44.191627"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Adam Batz"], ["created_at", "2023-02-02 18:31:44.193291"], ["updated_at", "2023-02-02 18:31:44.193291"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Bernie Sauer VM"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.194751"], ["updated_at", "2023-02-02 18:31:44.194751"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leora Bins"], ["description", "Voluptas nesciunt quasi. Sed voluptate sit. Voluptate eos excepturi."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.197286"], ["updated_at", "2023-02-02 18:31:44.197286"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kathlyn Windler"], ["created_at", "2023-02-02 18:31:44.198427"], ["updated_at", "2023-02-02 18:31:44.198427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Joane Rolfson"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.199381"], ["updated_at", "2023-02-02 18:31:44.199381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kirk Collins"], ["description", "Qui aut maiores. Cumque porro voluptatem. Perferendis quis inventore."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.203425"], ["updated_at", "2023-02-02 18:31:44.203425"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hye Considine"], ["created_at", "2023-02-02 18:31:44.204618"], ["updated_at", "2023-02-02 18:31:44.204618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mariel DuBuque"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.205396"], ["updated_at", "2023-02-02 18:31:44.205396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Emilio Bernier"], ["description", "Ut eaque nemo. Temporibus sequi culpa. Qui nam eum."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:31:44.208002"], ["updated_at", "2023-02-02 18:31:44.208002"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeane Rippin"], ["created_at", "2023-02-02 18:31:44.210419"], ["updated_at", "2023-02-02 18:31:44.210419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mercy Gerlach"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.211783"], ["updated_at", "2023-02-02 18:31:44.211783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mitsue Mosciski"], ["correct", 0], ["created_at", "2023-02-02 18:31:44.212685"], ["updated_at", "2023-02-02 18:31:44.212685"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Pres. Prince Von"], ["correct", 1], ["created_at", "2023-02-02 18:31:44.213449"], ["updated_at", "2023-02-02 18:31:44.213449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Archie Jerde"], ["correct", 1], ["created_at", "2023-02-02 18:31:44.214181"], ["updated_at", "2023-02-02 18:31:44.214181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.155351"], ["updated_at", "2023-02-02 18:32:40.155351"], ["name", "Daryl Crona"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tana Goldner"], ["description", "Eaque aut magnam. Adipisci deleniti id. Omnis culpa minima."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.160565"], ["updated_at", "2023-02-02 18:32:40.160565"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Helen Schneider"], ["created_at", "2023-02-02 18:32:40.173027"], ["updated_at", "2023-02-02 18:32:40.173027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Kathlene Klocko"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.176255"], ["updated_at", "2023-02-02 18:32:40.176255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:32:40.179836"], ["updated_at", "2023-02-02 18:32:40.179836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.195508"], ["updated_at", "2023-02-02 18:32:40.195508"], ["name", "Msgr. Bryce Konopelski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Towanda Ward"], ["description", "Animi reprehenderit est. Eos aut quis. Voluptatem ipsam quo."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.197224"], ["updated_at", "2023-02-02 18:32:40.197224"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marquis Gerhold"], ["created_at", "2023-02-02 18:32:40.200211"], ["updated_at", "2023-02-02 18:32:40.200211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Vinnie Spinka"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.201105"], ["updated_at", "2023-02-02 18:32:40.201105"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:32:40.202224"], ["updated_at", "2023-02-02 18:32:40.202224"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.204967"], ["updated_at", "2023-02-02 18:32:40.204967"], ["name", "Sen. Maurice Doyle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Jeremy Frami"], ["description", "Esse placeat earum. Ea laudantium qui. Saepe et cum."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.207383"], ["updated_at", "2023-02-02 18:32:40.207383"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Karima Skiles DVM"], ["created_at", "2023-02-02 18:32:40.210316"], ["updated_at", "2023-02-02 18:32:40.210316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Lucinda Beatty"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.211232"], ["updated_at", "2023-02-02 18:32:40.211232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:32:40.212484"], ["updated_at", "2023-02-02 18:32:40.212484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.215004"], ["updated_at", "2023-02-02 18:32:40.215004"], ["name", "Mao Yundt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reed Donnelly CPA"], ["description", "Laudantium doloremque quas. Repellat occaecati ex. Ipsum dolore vel."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.217051"], ["updated_at", "2023-02-02 18:32:40.217051"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Veronika Mitchell"], ["created_at", "2023-02-02 18:32:40.219783"], ["updated_at", "2023-02-02 18:32:40.219783"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Elliot Schiller Esq."], ["correct", 0], ["created_at", "2023-02-02 18:32:40.222379"], ["updated_at", "2023-02-02 18:32:40.222379"]] + TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:32:40.225372"], ["updated_at", "2023-02-02 18:32:40.225372"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.237019"], ["updated_at", "2023-02-02 18:32:40.237019"], ["name", "Jae Swaniawski Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maybelle Gutmann Esq."], ["description", "Eum delectus perspiciatis. Qui aut consequatur. Distinctio ex dignissimos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.238754"], ["updated_at", "2023-02-02 18:32:40.238754"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:32:40.262916"], ["updated_at", "2023-02-02 18:32:40.262916"], ["name", "Daphne Mills"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Giuseppina Kirlin VM"], ["description", "Amet consectetur perspiciatis. Est quas voluptatibus. Odio error aut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.266898"], ["updated_at", "2023-02-02 18:32:40.266898"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.6ms) TRUNCATE TABLE "survey_questions" +  (1.2ms) DELETE FROM "survey_questions" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.8ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leone Ziemann"], ["description", "Pariatur nihil quia. Repudiandae in doloremque. Distinctio consequatur ut."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.292669"], ["updated_at", "2023-02-02 18:32:40.292669"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Val Aufderhar"], ["created_at", "2023-02-02 18:32:40.296945"], ["updated_at", "2023-02-02 18:32:40.296945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Jerlene Terry"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.298486"], ["updated_at", "2023-02-02 18:32:40.298486"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Nila Satterfield"], ["description", "Et veritatis animi. Totam dignissimos nesciunt. Nisi id dolorum."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.303568"], ["updated_at", "2023-02-02 18:32:40.303568"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Warner Buckridge"], ["created_at", "2023-02-02 18:32:40.307404"], ["updated_at", "2023-02-02 18:32:40.307404"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Delcie Bailey"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.308615"], ["updated_at", "2023-02-02 18:32:40.308615"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yulanda Bode IV"], ["description", "Et iure sit. Deleniti veritatis nihil. Nobis animi quis."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.313443"], ["updated_at", "2023-02-02 18:32:40.313443"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hung Hirthe"], ["created_at", "2023-02-02 18:32:40.314780"], ["updated_at", "2023-02-02 18:32:40.314780"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Ezequiel Tremblay PhD"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.315599"], ["updated_at", "2023-02-02 18:32:40.315599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mohamed Harris"], ["description", "Qui et nesciunt. Fuga assumenda ut. Similique rerum quibusdam."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:32:40.319186"], ["updated_at", "2023-02-02 18:32:40.319186"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gil Pagac"], ["created_at", "2023-02-02 18:32:40.320684"], ["updated_at", "2023-02-02 18:32:40.320684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Micki Streich"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.321778"], ["updated_at", "2023-02-02 18:32:40.321778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Jacques Ratke DC"], ["correct", 0], ["created_at", "2023-02-02 18:32:40.322723"], ["updated_at", "2023-02-02 18:32:40.322723"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "The Hon. Katheleen Hoeger"], ["correct", 1], ["created_at", "2023-02-02 18:32:40.323684"], ["updated_at", "2023-02-02 18:32:40.323684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Shalanda Boehm Sr."], ["correct", 1], ["created_at", "2023-02-02 18:32:40.324601"], ["updated_at", "2023-02-02 18:32:40.324601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (2.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:33:09.439120"], ["updated_at", "2023-02-02 18:33:09.439120"], ["name", "Danyell Batz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sonny Upton"], ["description", "Perspiciatis quos cumque. Voluptatibus dolor quos. Consequatur et delectus."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:33:09.444229"], ["updated_at", "2023-02-02 18:33:09.444229"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mafalda Kessler"], ["created_at", "2023-02-02 18:33:09.456159"], ["updated_at", "2023-02-02 18:33:09.456159"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) SAVEPOINT active_record_1 + Survey::Option Create (0.6ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Patrick Streich"], ["correct", 0], ["created_at", "2023-02-02 18:33:09.459454"], ["updated_at", "2023-02-02 18:33:09.459454"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:15.924881"], ["updated_at", "2023-02-02 18:34:15.924881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.9ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:15.957293"], ["updated_at", "2023-02-02 18:34:15.957293"], ["name", "Sen. Nick Wisozk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Debby Stracke I"], ["description", "Aut quis quibusdam. Error debitis cumque. Reiciendis quidem maxime."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:15.959841"], ["updated_at", "2023-02-02 18:34:15.959841"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeremy Gorczany"], ["created_at", "2023-02-02 18:34:15.963421"], ["updated_at", "2023-02-02 18:34:15.963421"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Soledad Champlin DVM"], ["correct", 0], ["created_at", "2023-02-02 18:34:15.964662"], ["updated_at", "2023-02-02 18:34:15.964662"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:17.444522"], ["updated_at", "2023-02-02 18:34:17.444522"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (1.0ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:17.451341"], ["updated_at", "2023-02-02 18:34:17.451341"], ["name", "Lucio Bernier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lon Paucek"], ["description", "Blanditiis laboriosam quas. Sint fuga at. Explicabo iusto quo."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:17.454626"], ["updated_at", "2023-02-02 18:34:17.454626"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Filiberto Waelchi DO"], ["created_at", "2023-02-02 18:34:17.459546"], ["updated_at", "2023-02-02 18:34:17.459546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.5ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Tuan Gutmann DC"], ["correct", 0], ["created_at", "2023-02-02 18:34:17.461912"], ["updated_at", "2023-02-02 18:34:17.461912"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:18.209984"], ["updated_at", "2023-02-02 18:34:18.209984"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.7ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:18.216810"], ["updated_at", "2023-02-02 18:34:18.216810"], ["name", "Pres. Ellis Armstrong"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scott Halvorson"], ["description", "Commodi voluptatem eligendi. Sit in totam. Similique molestiae assumenda."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:18.220307"], ["updated_at", "2023-02-02 18:34:18.220307"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Micheal Ryan I"], ["created_at", "2023-02-02 18:34:18.225216"], ["updated_at", "2023-02-02 18:34:18.225216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Nestor Stroman"], ["correct", 0], ["created_at", "2023-02-02 18:34:18.227086"], ["updated_at", "2023-02-02 18:34:18.227086"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:24.410689"], ["updated_at", "2023-02-02 18:34:24.410689"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.2ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.8ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:24.433129"], ["updated_at", "2023-02-02 18:34:24.433129"], ["name", "Willian Beier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leandro Braun Jr."], ["description", "Dolores explicabo quisquam. Aut nesciunt odio. Sit dolores porro."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:24.436001"], ["updated_at", "2023-02-02 18:34:24.436001"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:24.452777"], ["updated_at", "2023-02-02 18:34:24.452777"], ["name", "Nathanael Kassulke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Johnsie Reichert"], ["description", "Ut est nihil. Est voluptate fugit. Ut maxime autem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:24.454901"], ["updated_at", "2023-02-02 18:34:24.454901"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Desmond Oberbrunner"], ["description", "Est pariatur quis. Et temporibus cum. Doloremque alias quasi."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:24.473185"], ["updated_at", "2023-02-02 18:34:24.473185"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mauricio Dibbert"], ["created_at", "2023-02-02 18:34:24.474552"], ["updated_at", "2023-02-02 18:34:24.474552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Carlota Hegmann DC"], ["correct", 0], ["created_at", "2023-02-02 18:34:24.475587"], ["updated_at", "2023-02-02 18:34:24.475587"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Thaddeus O'Hara"], ["description", "Odit ut illo. Quia minus adipisci. Neque qui sunt."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:25.075744"], ["updated_at", "2023-02-02 18:34:25.075744"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Silas Trantow"], ["created_at", "2023-02-02 18:34:25.079254"], ["updated_at", "2023-02-02 18:34:25.079254"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Gov. Lupe White"], ["correct", 0], ["created_at", "2023-02-02 18:34:25.081940"], ["updated_at", "2023-02-02 18:34:25.081940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harley Cronin"], ["description", "Delectus expedita enim. Voluptatem voluptates enim. Voluptatem dolorem ratione."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:25.519471"], ["updated_at", "2023-02-02 18:34:25.519471"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Aide Glover"], ["created_at", "2023-02-02 18:34:25.520963"], ["updated_at", "2023-02-02 18:34:25.520963"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.5ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Deangelo Gerhold"], ["correct", 0], ["created_at", "2023-02-02 18:34:25.521920"], ["updated_at", "2023-02-02 18:34:25.521920"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Majorie Cassin"], ["description", "Harum ipsum est. Facere voluptate aut. Quibusdam id et."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:25.891875"], ["updated_at", "2023-02-02 18:34:25.891875"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Thurman Daugherty VM"], ["created_at", "2023-02-02 18:34:25.895145"], ["updated_at", "2023-02-02 18:34:25.895145"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Leland Deckow"], ["correct", 0], ["created_at", "2023-02-02 18:34:25.897652"], ["updated_at", "2023-02-02 18:34:25.897652"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Ms. Ileana Schimmel"], ["correct", 0], ["created_at", "2023-02-02 18:34:26.847461"], ["updated_at", "2023-02-02 18:34:26.847461"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", nil], ["text", "Mr. Mattie Champlin"], ["correct", 1], ["created_at", "2023-02-02 18:34:27.198102"], ["updated_at", "2023-02-02 18:34:27.198102"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mrs. Palmer Douglas"], ["correct", 1], ["created_at", "2023-02-02 18:34:27.546958"], ["updated_at", "2023-02-02 18:34:27.546958"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.493981"], ["updated_at", "2023-02-02 18:34:32.493981"], ["name", "Dr. Shirley Hagenes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Noel Maggio"], ["description", "Ullam enim ratione. Id aut voluptatum. Qui debitis officiis."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.499282"], ["updated_at", "2023-02-02 18:34:32.499282"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alfredia Tremblay"], ["created_at", "2023-02-02 18:34:32.512773"], ["updated_at", "2023-02-02 18:34:32.512773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Denna Moen"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.515986"], ["updated_at", "2023-02-02 18:34:32.515986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:32.518932"], ["updated_at", "2023-02-02 18:34:32.518932"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.533818"], ["updated_at", "2023-02-02 18:34:32.533818"], ["name", "Ivory Waelchi"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darrel Dare"], ["description", "In ad eos. Impedit qui assumenda. Laboriosam nisi distinctio."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.535245"], ["updated_at", "2023-02-02 18:34:32.535245"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Leif Gleichner"], ["created_at", "2023-02-02 18:34:32.537751"], ["updated_at", "2023-02-02 18:34:32.537751"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rufina Orn"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.538752"], ["updated_at", "2023-02-02 18:34:32.538752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:32.539832"], ["updated_at", "2023-02-02 18:34:32.539832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.541860"], ["updated_at", "2023-02-02 18:34:32.541860"], ["name", "Lianne Ullrich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Natacha Hane"], ["description", "Quasi omnis cumque. Non quod nesciunt. Molestiae magnam rem."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.543259"], ["updated_at", "2023-02-02 18:34:32.543259"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Angelo Flatley"], ["created_at", "2023-02-02 18:34:32.545324"], ["updated_at", "2023-02-02 18:34:32.545324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Monroe Wiegand IV"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.546065"], ["updated_at", "2023-02-02 18:34:32.546065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:32.547017"], ["updated_at", "2023-02-02 18:34:32.547017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.549160"], ["updated_at", "2023-02-02 18:34:32.549160"], ["name", "Elissa Marvin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julene Berge"], ["description", "Commodi sunt cupiditate. Quo omnis fuga. Illum similique in."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.550629"], ["updated_at", "2023-02-02 18:34:32.550629"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Virgilio Heidenreich"], ["created_at", "2023-02-02 18:34:32.552933"], ["updated_at", "2023-02-02 18:34:32.552933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Anton Crist"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.553806"], ["updated_at", "2023-02-02 18:34:32.553806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:34:32.556883"], ["updated_at", "2023-02-02 18:34:32.556883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.566554"], ["updated_at", "2023-02-02 18:34:32.566554"], ["name", "Floyd Abbott"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stacey Turner"], ["description", "Adipisci et sunt. Et praesentium perferendis. Laudantium omnis optio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.569283"], ["updated_at", "2023-02-02 18:34:32.569283"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.8ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:34:32.581884"], ["updated_at", "2023-02-02 18:34:32.581884"], ["name", "Evelin Mraz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jessie Kozey"], ["description", "Quis eos molestiae. Sed distinctio nemo. Maxime laboriosam id."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.583366"], ["updated_at", "2023-02-02 18:34:32.583366"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sherilyn Bailey"], ["description", "Asperiores libero qui. Sed iure et. Pariatur consectetur officia."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.599132"], ["updated_at", "2023-02-02 18:34:32.599132"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nina Hane"], ["created_at", "2023-02-02 18:34:32.600298"], ["updated_at", "2023-02-02 18:34:32.600298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Georgianne Kuhn"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.601123"], ["updated_at", "2023-02-02 18:34:32.601123"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jonell Moore"], ["description", "Molestias laboriosam assumenda. Eos ex commodi. Et iusto facere."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.603104"], ["updated_at", "2023-02-02 18:34:32.603104"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fausto Kreiger"], ["created_at", "2023-02-02 18:34:32.605958"], ["updated_at", "2023-02-02 18:34:32.605958"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jeremy Volkman"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.607319"], ["updated_at", "2023-02-02 18:34:32.607319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Siobhan Keebler"], ["description", "Ea omnis quibusdam. Possimus ratione et. Rerum consequatur itaque."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.611011"], ["updated_at", "2023-02-02 18:34:32.611011"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jami Dooley"], ["created_at", "2023-02-02 18:34:32.612118"], ["updated_at", "2023-02-02 18:34:32.612118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Felton Okuneva DVM"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.612907"], ["updated_at", "2023-02-02 18:34:32.612907"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kyle Brown"], ["description", "Et quae minus. Facere et voluptates. Incidunt illum est."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:34:32.615173"], ["updated_at", "2023-02-02 18:34:32.615173"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Heriberto Hauck"], ["created_at", "2023-02-02 18:34:32.616256"], ["updated_at", "2023-02-02 18:34:32.616256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elbert Mosciski"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.617108"], ["updated_at", "2023-02-02 18:34:32.617108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cordell McKenzie"], ["correct", 0], ["created_at", "2023-02-02 18:34:32.618273"], ["updated_at", "2023-02-02 18:34:32.618273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Johnnie Luettgen"], ["correct", 1], ["created_at", "2023-02-02 18:34:32.619500"], ["updated_at", "2023-02-02 18:34:32.619500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Luther Stoltenberg"], ["correct", 1], ["created_at", "2023-02-02 18:34:32.620516"], ["updated_at", "2023-02-02 18:34:32.620516"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:04.340986"], ["updated_at", "2023-02-02 18:35:04.340986"], ["name", "Lynell Murazik I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Santana Walker"], ["description", "Et corrupti necessitatibus. Fugit necessitatibus consequuntur. Consectetur sunt aperiam."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:04.346345"], ["updated_at", "2023-02-02 18:35:04.346345"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gilberto Bogan"], ["created_at", "2023-02-02 18:35:04.358695"], ["updated_at", "2023-02-02 18:35:04.358695"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) SAVEPOINT active_record_1 + Survey::Option Create (0.6ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ramon Dickens"], ["correct", 0], ["created_at", "2023-02-02 18:35:04.361715"], ["updated_at", "2023-02-02 18:35:04.361715"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:35:49.359900"], ["updated_at", "2023-02-02 18:35:49.359900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.7ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:49.391612"], ["updated_at", "2023-02-02 18:35:49.391612"], ["name", "Riley Hessel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maxwell Quigley Jr."], ["description", "Aut magni odit. Quasi sunt aut. Nam non aspernatur."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:49.394127"], ["updated_at", "2023-02-02 18:35:49.394127"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garth Quitzon"], ["created_at", "2023-02-02 18:35:49.397818"], ["updated_at", "2023-02-02 18:35:49.397818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kraig Murphy"], ["correct", 0], ["created_at", "2023-02-02 18:35:49.399092"], ["updated_at", "2023-02-02 18:35:49.399092"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.2ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:35:53.311590"], ["updated_at", "2023-02-02 18:35:53.311590"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:53.318198"], ["updated_at", "2023-02-02 18:35:53.318198"], ["name", "Prof. Adan Muller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Estefana Murphy"], ["description", "Maiores enim unde. Voluptatem illo eos. Autem eaque maxime."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:53.321989"], ["updated_at", "2023-02-02 18:35:53.321989"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Herta Stroman"], ["created_at", "2023-02-02 18:35:53.327737"], ["updated_at", "2023-02-02 18:35:53.327737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Option Create (0.5ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Maribeth Abshire"], ["correct", 0], ["created_at", "2023-02-02 18:35:53.329989"], ["updated_at", "2023-02-02 18:35:53.329989"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:35:53.835245"], ["updated_at", "2023-02-02 18:35:53.835245"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:53.841618"], ["updated_at", "2023-02-02 18:35:53.841618"], ["name", "Linsey Kerluke"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leigh Kautzer"], ["description", "Rerum omnis cumque. Velit rerum provident. Recusandae ut suscipit."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:53.845422"], ["updated_at", "2023-02-02 18:35:53.845422"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mohammed Lesch"], ["created_at", "2023-02-02 18:35:53.850801"], ["updated_at", "2023-02-02 18:35:53.850801"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ronald Armstrong"], ["correct", 0], ["created_at", "2023-02-02 18:35:53.852717"], ["updated_at", "2023-02-02 18:35:53.852717"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:35:54.289974"], ["updated_at", "2023-02-02 18:35:54.289974"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.2ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:54.311708"], ["updated_at", "2023-02-02 18:35:54.311708"], ["name", "Naida Satterfield Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Quinn Sauer"], ["description", "Eos dolor ipsum. Sint ullam cumque. Porro non iusto."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:54.314854"], ["updated_at", "2023-02-02 18:35:54.314854"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:35:54.332220"], ["updated_at", "2023-02-02 18:35:54.332220"], ["name", "Ronny Frami"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rolland Schimmel V"], ["description", "Debitis recusandae est. Illum sit debitis. Culpa voluptate reprehenderit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:54.334455"], ["updated_at", "2023-02-02 18:35:54.334455"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Raeann Rice"], ["description", "Voluptas quisquam quam. Odit quia doloribus. Quia eius error."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:54.352186"], ["updated_at", "2023-02-02 18:35:54.352186"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Danial Schinner"], ["created_at", "2023-02-02 18:35:54.353580"], ["updated_at", "2023-02-02 18:35:54.353580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.5ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Noe Skiles"], ["correct", 0], ["created_at", "2023-02-02 18:35:54.354606"], ["updated_at", "2023-02-02 18:35:54.354606"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Latia Ratke"], ["description", "Velit dolor aperiam. Vero a quae. Culpa et hic."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:54.701857"], ["updated_at", "2023-02-02 18:35:54.701857"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlyn Batz"], ["created_at", "2023-02-02 18:35:54.705177"], ["updated_at", "2023-02-02 18:35:54.705177"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.6ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Darren Torp"], ["correct", 0], ["created_at", "2023-02-02 18:35:54.707539"], ["updated_at", "2023-02-02 18:35:54.707539"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kenton Fay LLD"], ["description", "Fugit repudiandae est. Totam non accusamus. Voluptatum debitis eius."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:55.080331"], ["updated_at", "2023-02-02 18:35:55.080331"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pedro Will I"], ["created_at", "2023-02-02 18:35:55.083548"], ["updated_at", "2023-02-02 18:35:55.083548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Belva Walsh DDS"], ["correct", 0], ["created_at", "2023-02-02 18:35:55.085567"], ["updated_at", "2023-02-02 18:35:55.085567"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Glory Zieme"], ["description", "Deserunt maiores sit. Iste optio et. Voluptate dolores odit."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:35:55.477575"], ["updated_at", "2023-02-02 18:35:55.477575"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Graig Luettgen"], ["created_at", "2023-02-02 18:35:55.480865"], ["updated_at", "2023-02-02 18:35:55.480865"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Erasmo Emard"], ["correct", 0], ["created_at", "2023-02-02 18:35:55.483416"], ["updated_at", "2023-02-02 18:35:55.483416"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rosia Yost"], ["correct", 0], ["created_at", "2023-02-02 18:35:55.874850"], ["updated_at", "2023-02-02 18:35:55.874850"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Suzy Smith"], ["correct", 1], ["created_at", "2023-02-02 18:35:56.223249"], ["updated_at", "2023-02-02 18:35:56.223249"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Myesha Hodkiewicz"], ["correct", 1], ["created_at", "2023-02-02 18:35:56.473379"], ["updated_at", "2023-02-02 18:35:56.473379"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:05.593131"], ["updated_at", "2023-02-02 18:36:05.593131"], ["name", "Jolynn Spinka"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Ceola Schiller"], ["description", "Qui possimus aut. Cum nobis aut. Laudantium blanditiis fugiat."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:05.598651"], ["updated_at", "2023-02-02 18:36:05.598651"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Christia Waelchi"], ["created_at", "2023-02-02 18:36:05.610962"], ["updated_at", "2023-02-02 18:36:05.610962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.500843"], ["updated_at", "2023-02-02 18:36:26.500843"], ["name", "Curt Kulas"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Santiago Dooley"], ["description", "Dolore quia eius. Molestiae culpa tempora. Quae vero inventore."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.506082"], ["updated_at", "2023-02-02 18:36:26.506082"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alexandra Weissnat II"], ["created_at", "2023-02-02 18:36:26.518823"], ["updated_at", "2023-02-02 18:36:26.518823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Karri Hackett"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.521886"], ["updated_at", "2023-02-02 18:36:26.521886"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:26.524897"], ["updated_at", "2023-02-02 18:36:26.524897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.538290"], ["updated_at", "2023-02-02 18:36:26.538290"], ["name", "Louann Ankunding"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Felica Gleason"], ["description", "Nisi non provident. Quam aperiam itaque. Nisi repellendus consequatur."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.539729"], ["updated_at", "2023-02-02 18:36:26.539729"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Sang Rowe"], ["created_at", "2023-02-02 18:36:26.542398"], ["updated_at", "2023-02-02 18:36:26.542398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Justin Johnston"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.543518"], ["updated_at", "2023-02-02 18:36:26.543518"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:26.544864"], ["updated_at", "2023-02-02 18:36:26.544864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.547023"], ["updated_at", "2023-02-02 18:36:26.547023"], ["name", "Vito Runte DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leopoldo Swaniawski"], ["description", "Id nihil numquam. Maiores aspernatur voluptas. Corporis nulla consectetur."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.548372"], ["updated_at", "2023-02-02 18:36:26.548372"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Peggy Gottlieb V"], ["created_at", "2023-02-02 18:36:26.550389"], ["updated_at", "2023-02-02 18:36:26.550389"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cornelius Johnson II"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.551142"], ["updated_at", "2023-02-02 18:36:26.551142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:26.552101"], ["updated_at", "2023-02-02 18:36:26.552101"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.554146"], ["updated_at", "2023-02-02 18:36:26.554146"], ["name", "Prof. Ena Kertzmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tyrell Herzog"], ["description", "Modi quo et. Est debitis perspiciatis. Aliquid repudiandae neque."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.555482"], ["updated_at", "2023-02-02 18:36:26.555482"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Devon Abshire"], ["created_at", "2023-02-02 18:36:26.557473"], ["updated_at", "2023-02-02 18:36:26.557473"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Msgr. Valentine Ritchie"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.558280"], ["updated_at", "2023-02-02 18:36:26.558280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:26.559273"], ["updated_at", "2023-02-02 18:36:26.559273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (2.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.9ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.573868"], ["updated_at", "2023-02-02 18:36:26.573868"], ["name", "Mason O'Hara"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Renetta Witting Sr."], ["description", "Ut et nesciunt. Voluptatibus qui eos. Officia eos et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.575583"], ["updated_at", "2023-02-02 18:36:26.575583"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:26.589295"], ["updated_at", "2023-02-02 18:36:26.589295"], ["name", "Cassie Hackett PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rey Lemke DDS"], ["description", "Fugiat sint necessitatibus. Velit veritatis sunt. Odit velit nisi."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.590781"], ["updated_at", "2023-02-02 18:36:26.590781"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.7ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bryce Kshlerin"], ["description", "Dignissimos laborum voluptas. Sapiente ducimus tempore. Sunt ut ut."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.607744"], ["updated_at", "2023-02-02 18:36:26.607744"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Aleshia Tromp"], ["created_at", "2023-02-02 18:36:26.608944"], ["updated_at", "2023-02-02 18:36:26.608944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Julienne Schinner"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.609756"], ["updated_at", "2023-02-02 18:36:26.609756"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alfonso Rodriguez"], ["description", "Deleniti aut ratione. Ea esse ut. Aspernatur natus quia."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.611686"], ["updated_at", "2023-02-02 18:36:26.611686"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deandre Dare DVM"], ["created_at", "2023-02-02 18:36:26.613079"], ["updated_at", "2023-02-02 18:36:26.613079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Edmond Hilpert"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.614059"], ["updated_at", "2023-02-02 18:36:26.614059"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yaeko Goyette Ret."], ["description", "Rem suscipit voluptatum. Quia illo est. Et quos quibusdam."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.618866"], ["updated_at", "2023-02-02 18:36:26.618866"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Doris Cronin"], ["created_at", "2023-02-02 18:36:26.620165"], ["updated_at", "2023-02-02 18:36:26.620165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Luis Kautzer"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.620960"], ["updated_at", "2023-02-02 18:36:26.620960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Reginald Fisher"], ["description", "Nisi sed voluptatem. Temporibus repudiandae omnis. Est nihil amet."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:26.623471"], ["updated_at", "2023-02-02 18:36:26.623471"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Man Schmidt"], ["created_at", "2023-02-02 18:36:26.624586"], ["updated_at", "2023-02-02 18:36:26.624586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lelah Rath"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.625367"], ["updated_at", "2023-02-02 18:36:26.625367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dusty Koss"], ["correct", 0], ["created_at", "2023-02-02 18:36:26.626198"], ["updated_at", "2023-02-02 18:36:26.626198"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Leandro Glover"], ["correct", 1], ["created_at", "2023-02-02 18:36:26.627302"], ["updated_at", "2023-02-02 18:36:26.627302"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Florrie Jacobi"], ["correct", 1], ["created_at", "2023-02-02 18:36:26.628553"], ["updated_at", "2023-02-02 18:36:26.628553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.819152"], ["updated_at", "2023-02-02 18:36:45.819152"], ["name", "Dora Hyatt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edison Weissnat"], ["description", "Tenetur et voluptas. Dolorem ex nesciunt. Velit eaque dolores."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.824435"], ["updated_at", "2023-02-02 18:36:45.824435"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lazaro Jenkins DC"], ["created_at", "2023-02-02 18:36:45.838343"], ["updated_at", "2023-02-02 18:36:45.838343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Freda Volkman"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.841616"], ["updated_at", "2023-02-02 18:36:45.841616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:45.844683"], ["updated_at", "2023-02-02 18:36:45.844683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.861910"], ["updated_at", "2023-02-02 18:36:45.861910"], ["name", "Melva Hoeger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Emerson Smitham"], ["description", "Illum consequatur dolor. Dolor sunt sequi. Laborum animi quo."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.863442"], ["updated_at", "2023-02-02 18:36:45.863442"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bennett McGlynn"], ["created_at", "2023-02-02 18:36:45.866953"], ["updated_at", "2023-02-02 18:36:45.866953"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bruna Reynolds"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.867972"], ["updated_at", "2023-02-02 18:36:45.867972"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:45.869106"], ["updated_at", "2023-02-02 18:36:45.869106"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.871580"], ["updated_at", "2023-02-02 18:36:45.871580"], ["name", "Otha Kunze"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Genevive Sporer"], ["description", "Sit voluptatem quasi. Natus aut fugit. Odit quod voluptate."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.873355"], ["updated_at", "2023-02-02 18:36:45.873355"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Katina Kassulke"], ["created_at", "2023-02-02 18:36:45.876083"], ["updated_at", "2023-02-02 18:36:45.876083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brooke Heathcote"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.877290"], ["updated_at", "2023-02-02 18:36:45.877290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:45.879822"], ["updated_at", "2023-02-02 18:36:45.879822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.883777"], ["updated_at", "2023-02-02 18:36:45.883777"], ["name", "Dominic VonRueden"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cherise Nader"], ["description", "Laudantium asperiores sit. Et corrupti cum. Magni suscipit aut."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.885585"], ["updated_at", "2023-02-02 18:36:45.885585"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Terresa Swift"], ["created_at", "2023-02-02 18:36:45.888159"], ["updated_at", "2023-02-02 18:36:45.888159"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Buffy Wiza"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.889034"], ["updated_at", "2023-02-02 18:36:45.889034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:36:45.890271"], ["updated_at", "2023-02-02 18:36:45.890271"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.901709"], ["updated_at", "2023-02-02 18:36:45.901709"], ["name", "Belva Sauer LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Arnette Torphy"], ["description", "Beatae cum eos. Possimus quia animi. Et et voluptas."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.903376"], ["updated_at", "2023-02-02 18:36:45.903376"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (2.6ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:36:45.920020"], ["updated_at", "2023-02-02 18:36:45.920020"], ["name", "Eura Raynor"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Milly Wolf"], ["description", "Velit et totam. Doloribus voluptatem quia. Exercitationem optio culpa."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.921879"], ["updated_at", "2023-02-02 18:36:45.921879"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.8ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jon Swift II"], ["description", "Ad quisquam dolores. In dignissimos provident. Et quis magnam."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.941565"], ["updated_at", "2023-02-02 18:36:45.941565"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dirk Robel"], ["created_at", "2023-02-02 18:36:45.943280"], ["updated_at", "2023-02-02 18:36:45.943280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Arlie Herman"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.945326"], ["updated_at", "2023-02-02 18:36:45.945326"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Seema Goldner"], ["description", "Rerum id quasi. Animi officia temporibus. Nemo facere possimus."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.951245"], ["updated_at", "2023-02-02 18:36:45.951245"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Olen Jacobs"], ["created_at", "2023-02-02 18:36:45.952797"], ["updated_at", "2023-02-02 18:36:45.952797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Belkis Marvin"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.953633"], ["updated_at", "2023-02-02 18:36:45.953633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bridgett Hermann JD"], ["description", "Esse inventore occaecati. Officiis distinctio repellat. Deserunt excepturi voluptatem."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.957218"], ["updated_at", "2023-02-02 18:36:45.957218"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ervin Halvorson"], ["created_at", "2023-02-02 18:36:45.958402"], ["updated_at", "2023-02-02 18:36:45.958402"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Cristobal Daugherty"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.959326"], ["updated_at", "2023-02-02 18:36:45.959326"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julieta Abernathy"], ["description", "Qui maiores enim. Repellat et commodi. Esse atque deleniti."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:36:45.963018"], ["updated_at", "2023-02-02 18:36:45.963018"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Winfred Sipes"], ["created_at", "2023-02-02 18:36:45.964734"], ["updated_at", "2023-02-02 18:36:45.964734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bernard Rippin CPA"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.965678"], ["updated_at", "2023-02-02 18:36:45.965678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mattie Flatley"], ["correct", 0], ["created_at", "2023-02-02 18:36:45.966600"], ["updated_at", "2023-02-02 18:36:45.966600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.198214"], ["updated_at", "2023-02-02 18:37:58.198214"], ["name", "Lora Franecki"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stacia Moore"], ["description", "Hic dolorum necessitatibus. Architecto possimus nesciunt. Itaque quia quaerat."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.203321"], ["updated_at", "2023-02-02 18:37:58.203321"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "King Rutherford DO"], ["created_at", "2023-02-02 18:37:58.215897"], ["updated_at", "2023-02-02 18:37:58.215897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Zina Balistreri DVM"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.218934"], ["updated_at", "2023-02-02 18:37:58.218934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:37:58.222029"], ["updated_at", "2023-02-02 18:37:58.222029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.237108"], ["updated_at", "2023-02-02 18:37:58.237108"], ["name", "Monty Heathcote"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Georgiana Cronin Jr."], ["description", "Rem non odit. Perferendis optio neque. Asperiores non optio."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.238518"], ["updated_at", "2023-02-02 18:37:58.238518"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alfonzo Lubowitz"], ["created_at", "2023-02-02 18:37:58.240552"], ["updated_at", "2023-02-02 18:37:58.240552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Xavier Littel"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.241284"], ["updated_at", "2023-02-02 18:37:58.241284"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:37:58.242265"], ["updated_at", "2023-02-02 18:37:58.242265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.244616"], ["updated_at", "2023-02-02 18:37:58.244616"], ["name", "Zelma Steuber"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Courtney Hermiston"], ["description", "Et et omnis. Quia odit et. Voluptas consequatur autem."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.246728"], ["updated_at", "2023-02-02 18:37:58.246728"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hermila Kling DC"], ["created_at", "2023-02-02 18:37:58.249148"], ["updated_at", "2023-02-02 18:37:58.249148"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Deon Murphy"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.249928"], ["updated_at", "2023-02-02 18:37:58.249928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:37:58.250926"], ["updated_at", "2023-02-02 18:37:58.250926"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.252895"], ["updated_at", "2023-02-02 18:37:58.252895"], ["name", "Erwin D'Amore"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Andrew Adams"], ["description", "Ut asperiores possimus. Quam nulla sint. Sed quo ratione."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.254145"], ["updated_at", "2023-02-02 18:37:58.254145"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Victor Leannon"], ["created_at", "2023-02-02 18:37:58.256448"], ["updated_at", "2023-02-02 18:37:58.256448"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gaston Ebert"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.257180"], ["updated_at", "2023-02-02 18:37:58.257180"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:37:58.258307"], ["updated_at", "2023-02-02 18:37:58.258307"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.268866"], ["updated_at", "2023-02-02 18:37:58.268866"], ["name", "Winnifred Conn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Anne Wuckert"], ["description", "Officiis et nihil. Eaque excepturi rerum. Dolorem architecto ratione."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.270305"], ["updated_at", "2023-02-02 18:37:58.270305"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:37:58.280274"], ["updated_at", "2023-02-02 18:37:58.280274"], ["name", "Ambrose Keeling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ernestine Jenkins"], ["description", "Earum consectetur nihil. Aperiam iusto sed. Minus quia eveniet."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.282323"], ["updated_at", "2023-02-02 18:37:58.282323"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Danyel Weber"], ["description", "Enim architecto laboriosam. Fugiat consectetur quia. Dignissimos quae necessitatibus."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.296254"], ["updated_at", "2023-02-02 18:37:58.296254"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Reynaldo Larkin"], ["created_at", "2023-02-02 18:37:58.297835"], ["updated_at", "2023-02-02 18:37:58.297835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "John Boyer"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.298752"], ["updated_at", "2023-02-02 18:37:58.298752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Benito Herman"], ["description", "Autem ut dolore. Aliquam eligendi voluptas. Qui vel quia."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.302396"], ["updated_at", "2023-02-02 18:37:58.302396"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Beverly Reilly"], ["created_at", "2023-02-02 18:37:58.303737"], ["updated_at", "2023-02-02 18:37:58.303737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Will Dibbert"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.304525"], ["updated_at", "2023-02-02 18:37:58.304525"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cornelia Schmidt Ret."], ["description", "Doloremque cumque ducimus. Voluptatem saepe et. Mollitia cupiditate quia."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.308009"], ["updated_at", "2023-02-02 18:37:58.308009"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Apryl O'Keefe"], ["created_at", "2023-02-02 18:37:58.309647"], ["updated_at", "2023-02-02 18:37:58.309647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Johnny Mraz"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.311063"], ["updated_at", "2023-02-02 18:37:58.311063"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nicolas Weissnat"], ["description", "Consectetur ut repellat. Accusamus asperiores alias. Et porro qui."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:37:58.314366"], ["updated_at", "2023-02-02 18:37:58.314366"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marcene Kling"], ["created_at", "2023-02-02 18:37:58.315843"], ["updated_at", "2023-02-02 18:37:58.315843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sandy Yost"], ["correct", 0], ["created_at", "2023-02-02 18:37:58.316667"], ["updated_at", "2023-02-02 18:37:58.316667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.262537"], ["updated_at", "2023-02-02 18:38:13.262537"], ["name", "Jerry Mueller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donald McGlynn"], ["description", "Accusamus aut assumenda. Enim veniam labore. Eaque voluptas voluptatem."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.267768"], ["updated_at", "2023-02-02 18:38:13.267768"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Oliver Langosh"], ["created_at", "2023-02-02 18:38:13.279262"], ["updated_at", "2023-02-02 18:38:13.279262"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Randal Lowe"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.282422"], ["updated_at", "2023-02-02 18:38:13.282422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:38:13.285431"], ["updated_at", "2023-02-02 18:38:13.285431"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.298749"], ["updated_at", "2023-02-02 18:38:13.298749"], ["name", "Boyce Rolfson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Len Abernathy"], ["description", "Qui distinctio voluptatum. Consequatur dolorem qui. Assumenda iste temporibus."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.300081"], ["updated_at", "2023-02-02 18:38:13.300081"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lakendra Hodkiewicz"], ["created_at", "2023-02-02 18:38:13.302035"], ["updated_at", "2023-02-02 18:38:13.302035"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tory Kunze"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.302763"], ["updated_at", "2023-02-02 18:38:13.302763"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:38:13.303726"], ["updated_at", "2023-02-02 18:38:13.303726"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.305645"], ["updated_at", "2023-02-02 18:38:13.305645"], ["name", "Tyron Cole"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Luther Grant"], ["description", "Ipsa dolores pariatur. Earum et distinctio. Aliquid ducimus vero."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.306932"], ["updated_at", "2023-02-02 18:38:13.306932"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Lino White"], ["created_at", "2023-02-02 18:38:13.309145"], ["updated_at", "2023-02-02 18:38:13.309145"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nicky Kiehn III"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.310047"], ["updated_at", "2023-02-02 18:38:13.310047"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + [36mSurvey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:38:13.311697"], ["updated_at", "2023-02-02 18:38:13.311697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.313953"], ["updated_at", "2023-02-02 18:38:13.313953"], ["name", "Genaro Ankunding"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rico Boyle"], ["description", "Vero aut tempore. Est tempora molestiae. Qui aut et."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.315350"], ["updated_at", "2023-02-02 18:38:13.315350"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Augustus Russel"], ["created_at", "2023-02-02 18:38:13.317498"], ["updated_at", "2023-02-02 18:38:13.317498"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shawanna Aufderhar"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.318259"], ["updated_at", "2023-02-02 18:38:13.318259"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:38:13.319256"], ["updated_at", "2023-02-02 18:38:13.319256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.9ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.330143"], ["updated_at", "2023-02-02 18:38:13.330143"], ["name", "Cleo Glover"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Lacy Predovic"], ["description", "Inventore saepe qui. Magni debitis qui. Aut ut quae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.331880"], ["updated_at", "2023-02-02 18:38:13.331880"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:38:13.342325"], ["updated_at", "2023-02-02 18:38:13.342325"], ["name", "Deb Lang III"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayne Dach DDS"], ["description", "Magnam tenetur est. Atque aspernatur omnis. Quas voluptatibus aut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.344197"], ["updated_at", "2023-02-02 18:38:13.344197"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Caterina Ledner"], ["description", "Qui sequi velit. Quasi unde eaque. Et sit minima."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.359185"], ["updated_at", "2023-02-02 18:38:13.359185"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Theron McGlynn"], ["created_at", "2023-02-02 18:38:13.360599"], ["updated_at", "2023-02-02 18:38:13.360599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Delmer Littel"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.361703"], ["updated_at", "2023-02-02 18:38:13.361703"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marshall Howell"], ["description", "Modi quia aliquam. Ab hic voluptatem. Ea repudiandae laudantium."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.364176"], ["updated_at", "2023-02-02 18:38:13.364176"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ervin Howell"], ["created_at", "2023-02-02 18:38:13.365735"], ["updated_at", "2023-02-02 18:38:13.365735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nickolas Considine"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.366609"], ["updated_at", "2023-02-02 18:38:13.366609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nichol VonRueden"], ["description", "Quia perferendis aliquid. Sint architecto enim. Rerum nihil architecto."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.370130"], ["updated_at", "2023-02-02 18:38:13.370130"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kermit Hackett"], ["created_at", "2023-02-02 18:38:13.371510"], ["updated_at", "2023-02-02 18:38:13.371510"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alden Mraz"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.372741"], ["updated_at", "2023-02-02 18:38:13.372741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kelsi Funk DVM"], ["description", "Nobis dolorem ad. Sed mollitia adipisci. Assumenda doloremque exercitationem."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:38:13.375895"], ["updated_at", "2023-02-02 18:38:13.375895"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Milan Collins DO"], ["created_at", "2023-02-02 18:38:13.377797"], ["updated_at", "2023-02-02 18:38:13.377797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Albert Bergstrom"], ["correct", 0], ["created_at", "2023-02-02 18:38:13.378708"], ["updated_at", "2023-02-02 18:38:13.378708"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.399158"], ["updated_at", "2023-02-02 18:40:03.399158"], ["name", "Msgr. Nathan Boehm"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Alexander Reichert"], ["description", "Aliquam esse est. Doloribus nobis praesentium. Delectus qui eos."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.404619"], ["updated_at", "2023-02-02 18:40:03.404619"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rickie Weissnat"], ["created_at", "2023-02-02 18:40:03.416954"], ["updated_at", "2023-02-02 18:40:03.416954"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dominique Kertzmann"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.420322"], ["updated_at", "2023-02-02 18:40:03.420322"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:40:03.423416"], ["updated_at", "2023-02-02 18:40:03.423416"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.439043"], ["updated_at", "2023-02-02 18:40:03.439043"], ["name", "Geneva Kreiger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Genesis Friesen"], ["description", "Doloribus maxime voluptas. Et facilis omnis. Laborum dolor aliquid."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.440485"], ["updated_at", "2023-02-02 18:40:03.440485"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Harland Olson"], ["created_at", "2023-02-02 18:40:03.443091"], ["updated_at", "2023-02-02 18:40:03.443091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brice Kerluke"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.444206"], ["updated_at", "2023-02-02 18:40:03.444206"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:40:03.445431"], ["updated_at", "2023-02-02 18:40:03.445431"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.447554"], ["updated_at", "2023-02-02 18:40:03.447554"], ["name", "Raleigh Luettgen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shaunta Ziemann"], ["description", "Ea et quia. Exercitationem nostrum omnis. Sit et nostrum."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.448865"], ["updated_at", "2023-02-02 18:40:03.448865"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wade Spencer"], ["created_at", "2023-02-02 18:40:03.450846"], ["updated_at", "2023-02-02 18:40:03.450846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Trevor Bernhard"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.451656"], ["updated_at", "2023-02-02 18:40:03.451656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:40:03.452618"], ["updated_at", "2023-02-02 18:40:03.452618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.454485"], ["updated_at", "2023-02-02 18:40:03.454485"], ["name", "Emerita Stokes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Phung Jenkins"], ["description", "Porro laborum quo. Nihil minus hic. Officia provident at."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.455717"], ["updated_at", "2023-02-02 18:40:03.455717"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mauro Haag"], ["created_at", "2023-02-02 18:40:03.457656"], ["updated_at", "2023-02-02 18:40:03.457656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Deloras Corkery VM"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.458597"], ["updated_at", "2023-02-02 18:40:03.458597"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:40:03.460088"], ["updated_at", "2023-02-02 18:40:03.460088"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.469335"], ["updated_at", "2023-02-02 18:40:03.469335"], ["name", "Sen. Kellee Konopelski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Edwina Rutherford"], ["description", "Voluptatem deleniti rerum. Minus ratione accusantium. Impedit quos beatae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.470733"], ["updated_at", "2023-02-02 18:40:03.470733"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:40:03.480435"], ["updated_at", "2023-02-02 18:40:03.480435"], ["name", "Milan Zieme"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anabel Terry"], ["description", "Ea quia animi. Sit sit est. Et excepturi non."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.481906"], ["updated_at", "2023-02-02 18:40:03.481906"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.6ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.8ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Yolande Rutherford"], ["description", "Suscipit nesciunt ex. Odio ut saepe. Nam exercitationem illum."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.497373"], ["updated_at", "2023-02-02 18:40:03.497373"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Hugo Harvey"], ["created_at", "2023-02-02 18:40:03.498643"], ["updated_at", "2023-02-02 18:40:03.498643"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Donnell Hackett Jr."], ["correct", 0], ["created_at", "2023-02-02 18:40:03.499488"], ["updated_at", "2023-02-02 18:40:03.499488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ethelene Zboncak"], ["description", "Omnis fuga sint. Corrupti neque nemo. Perferendis voluptas autem."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.501294"], ["updated_at", "2023-02-02 18:40:03.501294"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bradford Christiansen"], ["created_at", "2023-02-02 18:40:03.502420"], ["updated_at", "2023-02-02 18:40:03.502420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kathline Donnelly"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.503483"], ["updated_at", "2023-02-02 18:40:03.503483"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hiedi Bauch"], ["description", "Natus qui voluptatem. Nulla nemo dolor. Est est magnam."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.507182"], ["updated_at", "2023-02-02 18:40:03.507182"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eric Reinger PhD"], ["created_at", "2023-02-02 18:40:03.508612"], ["updated_at", "2023-02-02 18:40:03.508612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ulysses Bednar Jr."], ["correct", 0], ["created_at", "2023-02-02 18:40:03.509749"], ["updated_at", "2023-02-02 18:40:03.509749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Harvey Johns"], ["description", "Id et et. Nemo voluptas deserunt. Consectetur nostrum repudiandae."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:40:03.513405"], ["updated_at", "2023-02-02 18:40:03.513405"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shaunta Connelly"], ["created_at", "2023-02-02 18:40:03.514850"], ["updated_at", "2023-02-02 18:40:03.514850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Scot Mueller"], ["correct", 0], ["created_at", "2023-02-02 18:40:03.515716"], ["updated_at", "2023-02-02 18:40:03.515716"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.066654"], ["updated_at", "2023-02-02 18:41:05.066654"], ["name", "Becki Metz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rufus Considine"], ["description", "Sit possimus qui. Ut esse doloremque. Blanditiis sed error."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.071881"], ["updated_at", "2023-02-02 18:41:05.071881"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Myesha Macejkovic"], ["created_at", "2023-02-02 18:41:05.084658"], ["updated_at", "2023-02-02 18:41:05.084658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Simon Quigley"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.087896"], ["updated_at", "2023-02-02 18:41:05.087896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:41:05.090849"], ["updated_at", "2023-02-02 18:41:05.090849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.106391"], ["updated_at", "2023-02-02 18:41:05.106391"], ["name", "Dorathy Hudson V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aurora Medhurst"], ["description", "Voluptatem nam neque. Error qui soluta. Nam sint tenetur."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.108066"], ["updated_at", "2023-02-02 18:41:05.108066"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clark Ondricka"], ["created_at", "2023-02-02 18:41:05.111318"], ["updated_at", "2023-02-02 18:41:05.111318"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Michale Toy"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.112149"], ["updated_at", "2023-02-02 18:41:05.112149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:41:05.113278"], ["updated_at", "2023-02-02 18:41:05.113278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.115466"], ["updated_at", "2023-02-02 18:41:05.115466"], ["name", "Sen. Kimberly Hirthe"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anisha Stark"], ["description", "Assumenda in rerum. Debitis blanditiis consequatur. Atque sunt nisi."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.116839"], ["updated_at", "2023-02-02 18:41:05.116839"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maria Zboncak"], ["created_at", "2023-02-02 18:41:05.118934"], ["updated_at", "2023-02-02 18:41:05.118934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Daysi Conn"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.119705"], ["updated_at", "2023-02-02 18:41:05.119705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:41:05.120722"], ["updated_at", "2023-02-02 18:41:05.120722"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.122668"], ["updated_at", "2023-02-02 18:41:05.122668"], ["name", "Blanch Mosciski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Antonietta Anderson Jr."], ["description", "Dolor eum qui. Repudiandae eum a. Animi praesentium consectetur."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.123936"], ["updated_at", "2023-02-02 18:41:05.123936"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jame Jakubowski VM"], ["created_at", "2023-02-02 18:41:05.125958"], ["updated_at", "2023-02-02 18:41:05.125958"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lavonia Willms VM"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.127078"], ["updated_at", "2023-02-02 18:41:05.127078"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 18:41:05.128589"], ["updated_at", "2023-02-02 18:41:05.128589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.137608"], ["updated_at", "2023-02-02 18:41:05.137608"], ["name", "Rozanne Baumbach"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kirsten Mann"], ["description", "Expedita non est. Quos ipsa repellendus. Corrupti expedita sint."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.138979"], ["updated_at", "2023-02-02 18:41:05.138979"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 18:41:05.149118"], ["updated_at", "2023-02-02 18:41:05.149118"], ["name", "Truman Hermann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anderson Pfeffer"], ["description", "Consectetur animi quibusdam. Atque omnis aut. Ad quod nostrum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.151612"], ["updated_at", "2023-02-02 18:41:05.151612"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edmund Mraz"], ["description", "Beatae nobis iste. Animi autem voluptatem. Dolore animi id."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.166012"], ["updated_at", "2023-02-02 18:41:05.166012"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dorine Batz"], ["created_at", "2023-02-02 18:41:05.167222"], ["updated_at", "2023-02-02 18:41:05.167222"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gregorio Deckow"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.168014"], ["updated_at", "2023-02-02 18:41:05.168014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elvin Morissette"], ["description", "Porro soluta magnam. Asperiores doloremque et. Qui reiciendis dolores."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.169912"], ["updated_at", "2023-02-02 18:41:05.169912"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Luis Hintz"], ["created_at", "2023-02-02 18:41:05.171690"], ["updated_at", "2023-02-02 18:41:05.171690"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miss Louvenia Rogahn"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.172829"], ["updated_at", "2023-02-02 18:41:05.172829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Shay Pacocha"], ["description", "Ipsa ducimus corrupti. Repellat vero tenetur. Blanditiis eveniet voluptatem."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.176673"], ["updated_at", "2023-02-02 18:41:05.176673"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ozzie Huels"], ["created_at", "2023-02-02 18:41:05.178255"], ["updated_at", "2023-02-02 18:41:05.178255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Shantell Senger"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.179469"], ["updated_at", "2023-02-02 18:41:05.179469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tracey Skiles"], ["description", "Nihil iste ipsum. Illo nostrum fugiat. Ut eum expedita."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:41:05.182787"], ["updated_at", "2023-02-02 18:41:05.182787"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miles Bode"], ["created_at", "2023-02-02 18:41:05.184060"], ["updated_at", "2023-02-02 18:41:05.184060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Tijuana Hoeger"], ["correct", 0], ["created_at", "2023-02-02 18:41:05.184883"], ["updated_at", "2023-02-02 18:41:05.184883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darnell Murphy"], ["description", "Doloremque ut harum. Ut qui optio. Dolorum amet doloribus."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:44:26.725278"], ["updated_at", "2023-02-02 18:44:26.725278"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Catherin Corwin"], ["created_at", "2023-02-02 18:44:26.731974"], ["updated_at", "2023-02-02 18:44:26.731974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kayleen Mayert LLD"], ["correct", 0], ["created_at", "2023-02-02 18:44:26.735025"], ["updated_at", "2023-02-02 18:44:26.735025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (4.8ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bell Bartell"], ["description", "Ea veritatis autem. Maxime autem expedita. Rerum dicta quisquam."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:44:26.759931"], ["updated_at", "2023-02-02 18:44:26.759931"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Monte Rippin"], ["created_at", "2023-02-02 18:44:26.761371"], ["updated_at", "2023-02-02 18:44:26.761371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Arnold Heaney PhD"], ["correct", 0], ["created_at", "2023-02-02 18:44:26.762534"], ["updated_at", "2023-02-02 18:44:26.762534"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Doretha Lueilwitz"], ["description", "Porro nostrum quae. Sunt quia expedita. Odit enim modi."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:44:26.768183"], ["updated_at", "2023-02-02 18:44:26.768183"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kenny Schinner"], ["created_at", "2023-02-02 18:44:26.769424"], ["updated_at", "2023-02-02 18:44:26.769424"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Milan Rath"], ["correct", 0], ["created_at", "2023-02-02 18:44:26.770225"], ["updated_at", "2023-02-02 18:44:26.770225"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clyde Kovacek"], ["description", "Aut adipisci consectetur. Quam aut quos. Dicta labore in."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:44:26.772700"], ["updated_at", "2023-02-02 18:44:26.772700"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.8ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wynona Heidenreich"], ["created_at", "2023-02-02 18:44:26.775648"], ["updated_at", "2023-02-02 18:44:26.775648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Barton Balistreri Jr."], ["correct", 0], ["created_at", "2023-02-02 18:44:26.778461"], ["updated_at", "2023-02-02 18:44:26.778461"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.9ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Allyson Rutherford"], ["description", "Hic quas voluptatem. Asperiores facilis id. Qui qui vel."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:46:07.543569"], ["updated_at", "2023-02-02 18:46:07.543569"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Garnet Kessler"], ["created_at", "2023-02-02 18:46:07.550065"], ["updated_at", "2023-02-02 18:46:07.550065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.8ms) SAVEPOINT active_record_1 + Survey::Option Create (0.8ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Augustine Bogisich"], ["correct", 0], ["created_at", "2023-02-02 18:46:07.553121"], ["updated_at", "2023-02-02 18:46:07.553121"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yuko Parisian MD"], ["description", "Cupiditate voluptatem ut. Non voluptatem rerum. Maiores asperiores qui."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:47:46.315905"], ["updated_at", "2023-02-02 18:47:46.315905"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carolann Paucek"], ["created_at", "2023-02-02 18:47:46.322489"], ["updated_at", "2023-02-02 18:47:46.322489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Option Create (0.6ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alvin Gerlach"], ["correct", 0], ["created_at", "2023-02-02 18:47:46.325632"], ["updated_at", "2023-02-02 18:47:46.325632"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (1.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mervin Hartmann"], ["correct", 0], ["created_at", "2023-02-02 18:49:15.151397"], ["updated_at", "2023-02-02 18:49:15.151397"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carlie Hand"], ["correct", 1], ["created_at", "2023-02-02 18:49:16.382547"], ["updated_at", "2023-02-02 18:49:16.382547"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Brandie Zulauf"], ["correct", 1], ["created_at", "2023-02-02 18:49:17.042358"], ["updated_at", "2023-02-02 18:49:17.042358"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shaun Schmidt II"], ["description", "Ipsum rerum non. Accusamus qui deleniti. Quod ex aliquam."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:49:30.574613"], ["updated_at", "2023-02-02 18:49:30.574613"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jed Mante"], ["created_at", "2023-02-02 18:49:30.580916"], ["updated_at", "2023-02-02 18:49:30.580916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Nicolas Ratke"], ["correct", 0], ["created_at", "2023-02-02 18:49:30.583875"], ["updated_at", "2023-02-02 18:49:30.583875"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kami Kris"], ["description", "Esse fugit aspernatur. Incidunt ea eos. Eaque eveniet eos."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:49:30.599481"], ["updated_at", "2023-02-02 18:49:30.599481"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elvera Steuber"], ["created_at", "2023-02-02 18:49:30.600770"], ["updated_at", "2023-02-02 18:49:30.600770"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elisha Hamill"], ["correct", 0], ["created_at", "2023-02-02 18:49:30.601738"], ["updated_at", "2023-02-02 18:49:30.601738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roscoe O'Connell"], ["description", "In tempora itaque. Soluta doloremque nesciunt. Dolorem quo repudiandae."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:49:30.606957"], ["updated_at", "2023-02-02 18:49:30.606957"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shemika Leuschke Sr."], ["created_at", "2023-02-02 18:49:30.608272"], ["updated_at", "2023-02-02 18:49:30.608272"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Richard Lebsack"], ["correct", 0], ["created_at", "2023-02-02 18:49:30.609093"], ["updated_at", "2023-02-02 18:49:30.609093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aurora Pfannerstill"], ["description", "Possimus sapiente est. Soluta qui harum. Non libero optio."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:49:30.611587"], ["updated_at", "2023-02-02 18:49:30.611587"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Qiana Anderson LLD"], ["created_at", "2023-02-02 18:49:30.612663"], ["updated_at", "2023-02-02 18:49:30.612663"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cassidy Howell"], ["correct", 0], ["created_at", "2023-02-02 18:49:30.613420"], ["updated_at", "2023-02-02 18:49:30.613420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Magaly Kilback PhD"], ["correct", 0], ["created_at", "2023-02-02 18:49:30.614191"], ["updated_at", "2023-02-02 18:49:30.614191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bradford Thiel"], ["correct", 1], ["created_at", "2023-02-02 18:49:30.614909"], ["updated_at", "2023-02-02 18:49:30.614909"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Ted Cartwright"], ["correct", 1], ["created_at", "2023-02-02 18:49:30.615612"], ["updated_at", "2023-02-02 18:49:30.615612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Melinda Rohan"], ["description", "Odit sit quia. Non excepturi corrupti. Et delectus pariatur."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:49:48.811095"], ["updated_at", "2023-02-02 18:49:48.811095"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Claudio Hirthe"], ["created_at", "2023-02-02 18:49:48.817674"], ["updated_at", "2023-02-02 18:49:48.817674"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Erwin Zieme"], ["description", "Autem laboriosam nostrum. Tempora quo maiores. Id facilis vitae."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:53:16.945628"], ["updated_at", "2023-02-02 18:53:16.945628"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jerrod Quitzon VM"], ["created_at", "2023-02-02 18:53:16.952043"], ["updated_at", "2023-02-02 18:53:16.952043"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Catrice Mills"], ["correct", 0], ["created_at", "2023-02-02 18:53:16.955060"], ["updated_at", "2023-02-02 18:53:16.955060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darrick Jacobi"], ["description", "Dignissimos est deleniti. Consequuntur reiciendis pariatur. Et odit dolor."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:53:16.970485"], ["updated_at", "2023-02-02 18:53:16.970485"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Annette O'Reilly"], ["created_at", "2023-02-02 18:53:16.971815"], ["updated_at", "2023-02-02 18:53:16.971815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Wilson Willms"], ["correct", 0], ["created_at", "2023-02-02 18:53:16.972733"], ["updated_at", "2023-02-02 18:53:16.972733"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ronnie Ratke"], ["description", "Quia ut molestiae. Doloremque cupiditate vel. Eum eligendi eos."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:53:16.978008"], ["updated_at", "2023-02-02 18:53:16.978008"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Jacelyn Williamson"], ["created_at", "2023-02-02 18:53:16.979220"], ["updated_at", "2023-02-02 18:53:16.979220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mr. Phil Hickle"], ["correct", 0], ["created_at", "2023-02-02 18:53:16.980037"], ["updated_at", "2023-02-02 18:53:16.980037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lavelle Luettgen"], ["description", "Alias et voluptates. Cumque necessitatibus possimus. Et tempora quis."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:53:16.982286"], ["updated_at", "2023-02-02 18:53:16.982286"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eleonor Olson"], ["created_at", "2023-02-02 18:53:16.983247"], ["updated_at", "2023-02-02 18:53:16.983247"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Beatrice Steuber"], ["correct", 0], ["created_at", "2023-02-02 18:53:16.983980"], ["updated_at", "2023-02-02 18:53:16.983980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Kareem Robel"], ["correct", 0], ["created_at", "2023-02-02 18:53:16.984738"], ["updated_at", "2023-02-02 18:53:16.984738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Hermina Gislason"], ["correct", 1], ["created_at", "2023-02-02 18:53:16.985437"], ["updated_at", "2023-02-02 18:53:16.985437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Sherri Herzog"], ["correct", 1], ["created_at", "2023-02-02 18:53:16.986131"], ["updated_at", "2023-02-02 18:53:16.986131"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tawanda Keebler I"], ["description", "Nobis earum dolor. Debitis eius similique. Repellat temporibus et."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:56:27.206556"], ["updated_at", "2023-02-02 18:56:27.206556"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joshua Jerde"], ["created_at", "2023-02-02 18:56:27.214019"], ["updated_at", "2023-02-02 18:56:27.214019"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.8ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Dwayne Stark"], ["correct", 0], ["created_at", "2023-02-02 18:56:27.217061"], ["updated_at", "2023-02-02 18:56:27.217061"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.7ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Joanna Ward"], ["correct", 0], ["created_at", "2023-02-02 18:56:49.197091"], ["updated_at", "2023-02-02 18:56:49.197091"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Shayne Gusikowski PhD"], ["correct", 1], ["created_at", "2023-02-02 18:56:49.820171"], ["updated_at", "2023-02-02 18:56:49.820171"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Sen. Naoma Rau"], ["correct", 1], ["created_at", "2023-02-02 18:56:50.293552"], ["updated_at", "2023-02-02 18:56:50.293552"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dewayne DuBuque"], ["description", "Ipsum est iste. Ipsum voluptatem ut. Illum quasi qui."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 18:56:56.914045"], ["updated_at", "2023-02-02 18:56:56.914045"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Ariel Ebert"], ["created_at", "2023-02-02 18:56:56.920430"], ["updated_at", "2023-02-02 18:56:56.920430"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rubin Dach"], ["correct", 0], ["created_at", "2023-02-02 18:56:56.923499"], ["updated_at", "2023-02-02 18:56:56.923499"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Janetta Lubowitz"], ["correct", 0], ["created_at", "2023-02-02 18:56:56.924314"], ["updated_at", "2023-02-02 18:56:56.924314"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Larhonda Mertz"], ["description", "Facere repellat alias. Alias qui totam. Architecto autem omnis."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:00:51.312735"], ["updated_at", "2023-02-02 19:00:51.312735"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Erich Lubowitz"], ["created_at", "2023-02-02 19:00:51.320052"], ["updated_at", "2023-02-02 19:00:51.320052"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lavera Kerluke DO"], ["correct", 0], ["created_at", "2023-02-02 19:00:51.323036"], ["updated_at", "2023-02-02 19:00:51.323036"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Vikki Langosh"], ["correct", 0], ["created_at", "2023-02-02 19:00:51.323859"], ["updated_at", "2023-02-02 19:00:51.323859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosemarie Hilll DVM"], ["description", "Quaerat et enim. Eos eveniet necessitatibus. Omnis qui ut."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:01:10.902131"], ["updated_at", "2023-02-02 19:01:10.902131"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eliana Hauck"], ["created_at", "2023-02-02 19:01:10.908484"], ["updated_at", "2023-02-02 19:01:10.908484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alex White"], ["correct", 0], ["created_at", "2023-02-02 19:01:10.911490"], ["updated_at", "2023-02-02 19:01:10.911490"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Von Dicki"], ["correct", 0], ["created_at", "2023-02-02 19:01:10.912289"], ["updated_at", "2023-02-02 19:01:10.912289"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Enda Abshire"], ["description", "Est cum dolore. Quia quibusdam est. Vel quod fugiat."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:01:23.822832"], ["updated_at", "2023-02-02 19:01:23.822832"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wayne Jaskolski"], ["created_at", "2023-02-02 19:01:23.829216"], ["updated_at", "2023-02-02 19:01:23.829216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tanner Casper"], ["correct", 0], ["created_at", "2023-02-02 19:01:23.832124"], ["updated_at", "2023-02-02 19:01:23.832124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Tommy Ernser"], ["correct", 0], ["created_at", "2023-02-02 19:01:23.832963"], ["updated_at", "2023-02-02 19:01:23.832963"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Matthew Kub"], ["correct", 1], ["created_at", "2023-02-02 19:01:23.833700"], ["updated_at", "2023-02-02 19:01:23.833700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Willis Harris"], ["correct", 1], ["created_at", "2023-02-02 19:01:23.834404"], ["updated_at", "2023-02-02 19:01:23.834404"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Merna O'Kon"], ["description", "Totam explicabo maiores. Et voluptas aliquam. Blanditiis expedita dicta."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:02:06.089952"], ["updated_at", "2023-02-02 19:02:06.089952"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Damion Ortiz"], ["created_at", "2023-02-02 19:02:06.097194"], ["updated_at", "2023-02-02 19:02:06.097194"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mr. Scottie Huels"], ["correct", 0], ["created_at", "2023-02-02 19:02:06.100319"], ["updated_at", "2023-02-02 19:02:06.100319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Caren Gutmann"], ["correct", 0], ["created_at", "2023-02-02 19:02:06.101171"], ["updated_at", "2023-02-02 19:02:06.101171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Pablo Ankunding DO"], ["correct", 1], ["created_at", "2023-02-02 19:02:06.102178"], ["updated_at", "2023-02-02 19:02:06.102178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Gov. Antony Ankunding"], ["correct", 1], ["created_at", "2023-02-02 19:02:06.102950"], ["updated_at", "2023-02-02 19:02:06.102950"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.117899"], ["updated_at", "2023-02-02 19:03:30.117899"], ["name", "Ozzie Rodriguez"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deb Ebert"], ["description", "Sed ullam odio. Aliquid necessitatibus tempora. Dolores earum aut."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.124112"], ["updated_at", "2023-02-02 19:03:30.124112"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (5.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robby Bauch"], ["created_at", "2023-02-02 19:03:30.144123"], ["updated_at", "2023-02-02 19:03:30.144123"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Donald Gottlieb"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.147644"], ["updated_at", "2023-02-02 19:03:30.147644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:03:30.150741"], ["updated_at", "2023-02-02 19:03:30.150741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.167325"], ["updated_at", "2023-02-02 19:03:30.167325"], ["name", "Daria Mraz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Garland Ernser"], ["description", "Qui sequi enim. Et sapiente eos. Aut nulla neque."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.168885"], ["updated_at", "2023-02-02 19:03:30.168885"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Caroyln Wiza LLD"], ["created_at", "2023-02-02 19:03:30.171855"], ["updated_at", "2023-02-02 19:03:30.171855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cassy Leffler"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.172767"], ["updated_at", "2023-02-02 19:03:30.172767"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:03:30.173871"], ["updated_at", "2023-02-02 19:03:30.173871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.176405"], ["updated_at", "2023-02-02 19:03:30.176405"], ["name", "Emanuel Nolan"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Queen McGlynn"], ["description", "Accusantium quia delectus. Assumenda in officiis. Ut voluptatem iure."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.178192"], ["updated_at", "2023-02-02 19:03:30.178192"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Silva Flatley"], ["created_at", "2023-02-02 19:03:30.180384"], ["updated_at", "2023-02-02 19:03:30.180384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Addie Luettgen"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.181184"], ["updated_at", "2023-02-02 19:03:30.181184"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:03:30.182181"], ["updated_at", "2023-02-02 19:03:30.182181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.184110"], ["updated_at", "2023-02-02 19:03:30.184110"], ["name", "Karole Hermann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tama Deckow"], ["description", "Earum nihil eum. Consequuntur nam tenetur. Vitae quis et."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.185391"], ["updated_at", "2023-02-02 19:03:30.185391"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Maryellen Tromp"], ["created_at", "2023-02-02 19:03:30.187384"], ["updated_at", "2023-02-02 19:03:30.187384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Devon Beer"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.188505"], ["updated_at", "2023-02-02 19:03:30.188505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:03:30.189901"], ["updated_at", "2023-02-02 19:03:30.189901"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.199752"], ["updated_at", "2023-02-02 19:03:30.199752"], ["name", "The Hon. Soon Schultz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ethan Beer"], ["description", "Iste voluptas libero. Hic aut quasi. Amet fuga illo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.201233"], ["updated_at", "2023-02-02 19:03:30.201233"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:03:30.213561"], ["updated_at", "2023-02-02 19:03:30.213561"], ["name", "Brooks Rogahn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilson Klocko"], ["description", "Non id quia. Aut aut cum. Adipisci placeat quo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.215101"], ["updated_at", "2023-02-02 19:03:30.215101"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Omar Bauch"], ["description", "Repudiandae dolorem iusto. Perspiciatis exercitationem dolorem. Ut nostrum sunt."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.230641"], ["updated_at", "2023-02-02 19:03:30.230641"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Han Swift"], ["created_at", "2023-02-02 19:03:30.232894"], ["updated_at", "2023-02-02 19:03:30.232894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jarred Wolf"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.233844"], ["updated_at", "2023-02-02 19:03:30.233844"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anika Hirthe V"], ["description", "Voluptas nulla soluta. Quia qui perferendis. Aliquam veniam earum."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.236063"], ["updated_at", "2023-02-02 19:03:30.236063"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Laurel Daugherty"], ["created_at", "2023-02-02 19:03:30.237277"], ["updated_at", "2023-02-02 19:03:30.237277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Harry Langworth"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.238075"], ["updated_at", "2023-02-02 19:03:30.238075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Al Lakin"], ["description", "Est animi facere. Laudantium voluptatibus omnis. Magnam dolore distinctio."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.243624"], ["updated_at", "2023-02-02 19:03:30.243624"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ouida Harris"], ["created_at", "2023-02-02 19:03:30.245047"], ["updated_at", "2023-02-02 19:03:30.245047"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sandie Gulgowski"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.246040"], ["updated_at", "2023-02-02 19:03:30.246040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ted Renner"], ["description", "Magnam qui quia. Accusantium reiciendis hic. Ut praesentium sit."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:03:30.249920"], ["updated_at", "2023-02-02 19:03:30.249920"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stephan Feest"], ["created_at", "2023-02-02 19:03:30.251536"], ["updated_at", "2023-02-02 19:03:30.251536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Thaddeus Treutel"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.252440"], ["updated_at", "2023-02-02 19:03:30.252440"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alice Crist CPA"], ["correct", 0], ["created_at", "2023-02-02 19:03:30.253317"], ["updated_at", "2023-02-02 19:03:30.253317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kendrick Kovacek"], ["correct", 1], ["created_at", "2023-02-02 19:03:30.254096"], ["updated_at", "2023-02-02 19:03:30.254096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Tamar White"], ["correct", 1], ["created_at", "2023-02-02 19:03:30.254880"], ["updated_at", "2023-02-02 19:03:30.254880"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.494421"], ["updated_at", "2023-02-02 19:06:37.494421"], ["name", "Shaun Johnson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Benton Kirlin"], ["description", "Assumenda dolorem magnam. Laudantium est quod. Ad magni molestiae."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.499791"], ["updated_at", "2023-02-02 19:06:37.499791"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Audry Braun"], ["created_at", "2023-02-02 19:06:37.512246"], ["updated_at", "2023-02-02 19:06:37.512246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miquel Koepp"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.515264"], ["updated_at", "2023-02-02 19:06:37.515264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:06:37.518294"], ["updated_at", "2023-02-02 19:06:37.518294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.533686"], ["updated_at", "2023-02-02 19:06:37.533686"], ["name", "Mr. Veta Schulist"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chad Bauch"], ["description", "Deserunt quae iure. Recusandae dolor aut. Necessitatibus dolore nihil."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.535095"], ["updated_at", "2023-02-02 19:06:37.535095"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Natashia Reichert"], ["created_at", "2023-02-02 19:06:37.537629"], ["updated_at", "2023-02-02 19:06:37.537629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kip Pollich"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.538812"], ["updated_at", "2023-02-02 19:06:37.538812"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:06:37.540077"], ["updated_at", "2023-02-02 19:06:37.540077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.542129"], ["updated_at", "2023-02-02 19:06:37.542129"], ["name", "Martin Nicolas"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sabina Fahey"], ["description", "Voluptate et non. Culpa fugiat ea. Quia qui in."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.543384"], ["updated_at", "2023-02-02 19:06:37.543384"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miquel Hamill"], ["created_at", "2023-02-02 19:06:37.545371"], ["updated_at", "2023-02-02 19:06:37.545371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ladawn Romaguera"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.546103"], ["updated_at", "2023-02-02 19:06:37.546103"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:06:37.547083"], ["updated_at", "2023-02-02 19:06:37.547083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.548948"], ["updated_at", "2023-02-02 19:06:37.548948"], ["name", "Joan Fay"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Xavier Ebert"], ["description", "Similique quis neque. Maxime veniam fugiat. Laborum quisquam nisi."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.550140"], ["updated_at", "2023-02-02 19:06:37.550140"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Omega Bernhard"], ["created_at", "2023-02-02 19:06:37.552025"], ["updated_at", "2023-02-02 19:06:37.552025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Debera Upton"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.552800"], ["updated_at", "2023-02-02 19:06:37.552800"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:06:37.553958"], ["updated_at", "2023-02-02 19:06:37.553958"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.563248"], ["updated_at", "2023-02-02 19:06:37.563248"], ["name", "Aldo Huel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayla Hills Esq."], ["description", "Ut ullam et. Explicabo laudantium voluptates. Perferendis quia commodi."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.564605"], ["updated_at", "2023-02-02 19:06:37.564605"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:06:37.574891"], ["updated_at", "2023-02-02 19:06:37.574891"], ["name", "Robbie Stiedemann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ngoc Welch"], ["description", "Et debitis minima. Qui inventore et. Blanditiis accusantium possimus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.576404"], ["updated_at", "2023-02-02 19:06:37.576404"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clay Beahan"], ["description", "Voluptate quo corporis. Placeat nulla magni. Voluptatum rerum ea."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.595635"], ["updated_at", "2023-02-02 19:06:37.595635"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Olen Morissette"], ["created_at", "2023-02-02 19:06:37.596823"], ["updated_at", "2023-02-02 19:06:37.596823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Berry Cole"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.597614"], ["updated_at", "2023-02-02 19:06:37.597614"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Danae Huels"], ["description", "Saepe ducimus eligendi. Debitis doloribus id. Dolore sit omnis."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.599672"], ["updated_at", "2023-02-02 19:06:37.599672"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ivy Ryan"], ["created_at", "2023-02-02 19:06:37.600895"], ["updated_at", "2023-02-02 19:06:37.600895"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lance Halvorson"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.602577"], ["updated_at", "2023-02-02 19:06:37.602577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Hortensia Prohaska"], ["description", "Omnis quisquam harum. Consequatur numquam aut. Pariatur fugiat corporis."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.607328"], ["updated_at", "2023-02-02 19:06:37.607328"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Leora MacGyver"], ["created_at", "2023-02-02 19:06:37.608631"], ["updated_at", "2023-02-02 19:06:37.608631"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Travis Kertzmann Esq."], ["correct", 0], ["created_at", "2023-02-02 19:06:37.609452"], ["updated_at", "2023-02-02 19:06:37.609452"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kirby Shanahan"], ["description", "Voluptatem vel aut. Dolorem voluptatibus autem. Velit quis vero."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.612463"], ["updated_at", "2023-02-02 19:06:37.612463"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Preston Hyatt"], ["created_at", "2023-02-02 19:06:37.613870"], ["updated_at", "2023-02-02 19:06:37.613870"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mathew Sanford"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.614683"], ["updated_at", "2023-02-02 19:06:37.614683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lamar Casper"], ["correct", 0], ["created_at", "2023-02-02 19:06:37.615463"], ["updated_at", "2023-02-02 19:06:37.615463"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Yolanda Quigley"], ["correct", 1], ["created_at", "2023-02-02 19:06:37.616195"], ["updated_at", "2023-02-02 19:06:37.616195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Jess Schmidt"], ["correct", 1], ["created_at", "2023-02-02 19:06:37.616934"], ["updated_at", "2023-02-02 19:06:37.616934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lyndsay Gleichner"], ["description", "Totam pariatur numquam. Fuga nulla optio. Non quas ad."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:06:37.624322"], ["updated_at", "2023-02-02 19:06:37.624322"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cecelia King"], ["created_at", "2023-02-02 19:06:37.625470"], ["updated_at", "2023-02-02 19:06:37.625470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.069433"], ["updated_at", "2023-02-02 19:08:20.069433"], ["name", "Prof. Randall Mills"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Noella Osinski"], ["description", "In excepturi molestiae. Modi dignissimos dicta. Ea reiciendis in."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.074519"], ["updated_at", "2023-02-02 19:08:20.074519"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Danyelle Kovacek"], ["created_at", "2023-02-02 19:08:20.086732"], ["updated_at", "2023-02-02 19:08:20.086732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jospeh Beahan"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.090158"], ["updated_at", "2023-02-02 19:08:20.090158"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.6ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:08:20.093368"], ["updated_at", "2023-02-02 19:08:20.093368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (3.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.109288"], ["updated_at", "2023-02-02 19:08:20.109288"], ["name", "Sen. Casey Sanford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nettie Carter"], ["description", "Qui doloremque temporibus. Ipsum voluptas voluptates. Temporibus a consequatur."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.114528"], ["updated_at", "2023-02-02 19:08:20.114528"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kerry Smith"], ["created_at", "2023-02-02 19:08:20.116788"], ["updated_at", "2023-02-02 19:08:20.116788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Reid Crona"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.117517"], ["updated_at", "2023-02-02 19:08:20.117517"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:08:20.118497"], ["updated_at", "2023-02-02 19:08:20.118497"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.120490"], ["updated_at", "2023-02-02 19:08:20.120490"], ["name", "Marion Zboncak"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janel Wisozk"], ["description", "Sint sequi perferendis. Tempora sint eum. Aut ut dolorum."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.121708"], ["updated_at", "2023-02-02 19:08:20.121708"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jolie Little"], ["created_at", "2023-02-02 19:08:20.123637"], ["updated_at", "2023-02-02 19:08:20.123637"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pauletta Considine"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.124422"], ["updated_at", "2023-02-02 19:08:20.124422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:08:20.125596"], ["updated_at", "2023-02-02 19:08:20.125596"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.128235"], ["updated_at", "2023-02-02 19:08:20.128235"], ["name", "Karon Cassin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Damien Hand"], ["description", "Rerum qui sequi. Ad et provident. Possimus excepturi saepe."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.129557"], ["updated_at", "2023-02-02 19:08:20.129557"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Socorro Crona DO"], ["created_at", "2023-02-02 19:08:20.131619"], ["updated_at", "2023-02-02 19:08:20.131619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lemuel Rogahn"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.132375"], ["updated_at", "2023-02-02 19:08:20.132375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:08:20.133410"], ["updated_at", "2023-02-02 19:08:20.133410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.142889"], ["updated_at", "2023-02-02 19:08:20.142889"], ["name", "Rev. Joyce Purdy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lazaro Farrell DO"], ["description", "Fuga possimus et. Quia ut facere. Harum et cumque."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.144334"], ["updated_at", "2023-02-02 19:08:20.144334"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:08:20.157245"], ["updated_at", "2023-02-02 19:08:20.157245"], ["name", "Carmine Ernser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Bridget Padberg"], ["description", "Autem non facilis. Laborum ut quia. Similique sit numquam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.160171"], ["updated_at", "2023-02-02 19:08:20.160171"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Son Schulist"], ["description", "Voluptatem autem nostrum. Debitis maiores unde. Autem voluptatibus aperiam."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.175461"], ["updated_at", "2023-02-02 19:08:20.175461"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jung Rohan"], ["created_at", "2023-02-02 19:08:20.176656"], ["updated_at", "2023-02-02 19:08:20.176656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (3.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shelba Kub"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.177481"], ["updated_at", "2023-02-02 19:08:20.177481"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vania Mueller III"], ["description", "Voluptatibus at autem. Voluptas eos ipsum. Et illum doloribus."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.183711"], ["updated_at", "2023-02-02 19:08:20.183711"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robt Hills Sr."], ["created_at", "2023-02-02 19:08:20.185423"], ["updated_at", "2023-02-02 19:08:20.185423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kizzy Rohan"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.186496"], ["updated_at", "2023-02-02 19:08:20.186496"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Matthew Hand"], ["description", "Nihil voluptatum hic. Sed nulla tempore. Dolorem eos rerum."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.191195"], ["updated_at", "2023-02-02 19:08:20.191195"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rosemary Wiza"], ["created_at", "2023-02-02 19:08:20.192837"], ["updated_at", "2023-02-02 19:08:20.192837"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jani Johns"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.193682"], ["updated_at", "2023-02-02 19:08:20.193682"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Herschel Mohr Ret."], ["description", "Ut suscipit id. Sed quisquam dolor. Deleniti totam qui."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.196574"], ["updated_at", "2023-02-02 19:08:20.196574"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Verdie Kilback"], ["created_at", "2023-02-02 19:08:20.198322"], ["updated_at", "2023-02-02 19:08:20.198322"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carter Gutmann"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.199772"], ["updated_at", "2023-02-02 19:08:20.199772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Roger D'Amore"], ["correct", 0], ["created_at", "2023-02-02 19:08:20.200905"], ["updated_at", "2023-02-02 19:08:20.200905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Prof. Diego Raynor"], ["correct", 1], ["created_at", "2023-02-02 19:08:20.201705"], ["updated_at", "2023-02-02 19:08:20.201705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Tony Kuhlman"], ["correct", 1], ["created_at", "2023-02-02 19:08:20.202450"], ["updated_at", "2023-02-02 19:08:20.202450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.6ms) DELETE FROM "survey_questions" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corey Wisoky"], ["description", "Cupiditate voluptas blanditiis. Saepe qui omnis. Odio rerum et."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.211656"], ["updated_at", "2023-02-02 19:08:20.211656"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eldridge Luettgen"], ["created_at", "2023-02-02 19:08:20.213108"], ["updated_at", "2023-02-02 19:08:20.213108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Giuseppe Olson"], ["description", "Molestiae ipsam qui. Tenetur in fuga. Quod laboriosam sint."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:08:20.215459"], ["updated_at", "2023-02-02 19:08:20.215459"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brian Thiel Ret."], ["created_at", "2023-02-02 19:08:20.217280"], ["updated_at", "2023-02-02 19:08:20.217280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.422407"], ["updated_at", "2023-02-02 19:09:44.422407"], ["name", "Nicholas West"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sam Reinger"], ["description", "Fugit rerum et. Ex quod qui. Quia enim voluptatibus."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.427811"], ["updated_at", "2023-02-02 19:09:44.427811"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nadine Gorczany"], ["created_at", "2023-02-02 19:09:44.440122"], ["updated_at", "2023-02-02 19:09:44.440122"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Charissa Kessler"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.443579"], ["updated_at", "2023-02-02 19:09:44.443579"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:09:44.446682"], ["updated_at", "2023-02-02 19:09:44.446682"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.462358"], ["updated_at", "2023-02-02 19:09:44.462358"], ["name", "Rep. Ryann Lynch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charlene Beatty"], ["description", "Corrupti iure ut. Enim perspiciatis corrupti. Ut non sunt."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.463763"], ["updated_at", "2023-02-02 19:09:44.463763"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willard Legros III"], ["created_at", "2023-02-02 19:09:44.466268"], ["updated_at", "2023-02-02 19:09:44.466268"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Loyd Pagac II"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.467278"], ["updated_at", "2023-02-02 19:09:44.467278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:09:44.468489"], ["updated_at", "2023-02-02 19:09:44.468489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.470633"], ["updated_at", "2023-02-02 19:09:44.470633"], ["name", "Tierra Hyatt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Austin Crooks"], ["description", "Ut vel soluta. Aut omnis sint. Labore minus cupiditate."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.472073"], ["updated_at", "2023-02-02 19:09:44.472073"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Howard Gulgowski"], ["created_at", "2023-02-02 19:09:44.474449"], ["updated_at", "2023-02-02 19:09:44.474449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nerissa Schuster"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.475221"], ["updated_at", "2023-02-02 19:09:44.475221"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:09:44.476234"], ["updated_at", "2023-02-02 19:09:44.476234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.478228"], ["updated_at", "2023-02-02 19:09:44.478228"], ["name", "Burt O'Conner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Blaine Keeling"], ["description", "Veniam quod laudantium. Necessitatibus aliquid illo. Voluptatem perspiciatis ipsum."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.479475"], ["updated_at", "2023-02-02 19:09:44.479475"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kathie Walsh"], ["created_at", "2023-02-02 19:09:44.481688"], ["updated_at", "2023-02-02 19:09:44.481688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Scottie Hackett"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.482549"], ["updated_at", "2023-02-02 19:09:44.482549"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:09:44.483613"], ["updated_at", "2023-02-02 19:09:44.483613"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.492775"], ["updated_at", "2023-02-02 19:09:44.492775"], ["name", "Jonelle Balistreri"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dave Turcotte"], ["description", "Ut maiores reprehenderit. Est repudiandae atque. Voluptates quisquam beatae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.494321"], ["updated_at", "2023-02-02 19:09:44.494321"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (1.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:09:44.510784"], ["updated_at", "2023-02-02 19:09:44.510784"], ["name", "Karlene Kuphal"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ahmad Bergnaum"], ["description", "Vel magni tempore. Illum dolore est. Veritatis deserunt dolorem."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.512495"], ["updated_at", "2023-02-02 19:09:44.512495"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.3ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dani Kessler Jr."], ["description", "Tempora animi quidem. Atque quaerat voluptate. Iure libero ipsa."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.528406"], ["updated_at", "2023-02-02 19:09:44.528406"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edgar Beer"], ["created_at", "2023-02-02 19:09:44.529731"], ["updated_at", "2023-02-02 19:09:44.529731"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Marcela Deckow"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.530778"], ["updated_at", "2023-02-02 19:09:44.530778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scotty Lockman"], ["description", "Est dolores qui. Aut nisi alias. Animi optio consectetur."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.533187"], ["updated_at", "2023-02-02 19:09:44.533187"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cherryl King"], ["created_at", "2023-02-02 19:09:44.534701"], ["updated_at", "2023-02-02 19:09:44.534701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Clyde Fritsch"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.535793"], ["updated_at", "2023-02-02 19:09:44.535793"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Priscilla Grant"], ["description", "Voluptates culpa aut. Fugiat sit eos. Aut sunt laudantium."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.539878"], ["updated_at", "2023-02-02 19:09:44.539878"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gilbert Altenwerth"], ["created_at", "2023-02-02 19:09:44.541587"], ["updated_at", "2023-02-02 19:09:44.541587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kristine Connelly Ret."], ["correct", 0], ["created_at", "2023-02-02 19:09:44.542831"], ["updated_at", "2023-02-02 19:09:44.542831"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Rhiannon Collier"], ["description", "Maiores adipisci minus. Quas praesentium possimus. Nam veniam praesentium."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.546488"], ["updated_at", "2023-02-02 19:09:44.546488"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ardelle Hayes"], ["created_at", "2023-02-02 19:09:44.547766"], ["updated_at", "2023-02-02 19:09:44.547766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Aaron Hammes"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.548544"], ["updated_at", "2023-02-02 19:09:44.548544"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brant Connelly"], ["correct", 0], ["created_at", "2023-02-02 19:09:44.549303"], ["updated_at", "2023-02-02 19:09:44.549303"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Fr. Odessa Cassin"], ["correct", 1], ["created_at", "2023-02-02 19:09:44.550051"], ["updated_at", "2023-02-02 19:09:44.550051"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mary Rosenbaum"], ["correct", 1], ["created_at", "2023-02-02 19:09:44.550828"], ["updated_at", "2023-02-02 19:09:44.550828"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Keven Farrell DC"], ["description", "Harum reiciendis consequatur. Ullam explicabo omnis. Quae quas illum."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.558490"], ["updated_at", "2023-02-02 19:09:44.558490"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Heike Tromp PhD"], ["created_at", "2023-02-02 19:09:44.559653"], ["updated_at", "2023-02-02 19:09:44.559653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Judson Beatty"], ["description", "Laudantium porro et. Minus quam tempore. Alias fugiat suscipit."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.561523"], ["updated_at", "2023-02-02 19:09:44.561523"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Norene Moore"], ["created_at", "2023-02-02 19:09:44.563574"], ["updated_at", "2023-02-02 19:09:44.563574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosio Thompson"], ["description", "Blanditiis laborum in. Debitis ut molestiae. Aliquid laudantium libero."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:09:44.567598"], ["updated_at", "2023-02-02 19:09:44.567598"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fatimah Kirlin"], ["created_at", "2023-02-02 19:09:44.568940"], ["updated_at", "2023-02-02 19:09:44.568940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.7ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + TRANSACTION (1.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:44.931455"], ["updated_at", "2023-02-02 19:13:44.931455"], ["name", "Reynalda Bayer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Golden Fisher"], ["description", "Quaerat quis voluptatum. Quis hic eius. Et deleniti quia."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:44.936623"], ["updated_at", "2023-02-02 19:13:44.936623"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hiroko Muller"], ["created_at", "2023-02-02 19:13:44.948882"], ["updated_at", "2023-02-02 19:13:44.948882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Virgilio Trantow"], ["correct", 0], ["created_at", "2023-02-02 19:13:44.951960"], ["updated_at", "2023-02-02 19:13:44.951960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:13:44.955000"], ["updated_at", "2023-02-02 19:13:44.955000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:44.970324"], ["updated_at", "2023-02-02 19:13:44.970324"], ["name", "Valentine Rath"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emmitt Fadel"], ["description", "Rerum libero eos. Laboriosam tempore et. Qui repellat est."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:44.971798"], ["updated_at", "2023-02-02 19:13:44.971798"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brant Gorczany"], ["created_at", "2023-02-02 19:13:44.974400"], ["updated_at", "2023-02-02 19:13:44.974400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rocio Becker"], ["correct", 0], ["created_at", "2023-02-02 19:13:44.975468"], ["updated_at", "2023-02-02 19:13:44.975468"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:13:44.976628"], ["updated_at", "2023-02-02 19:13:44.976628"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:44.978687"], ["updated_at", "2023-02-02 19:13:44.978687"], ["name", "Elenore Adams"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Krishna Anderson"], ["description", "Natus accusantium voluptas. Aut laudantium quo. Eum sequi laudantium."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:44.979989"], ["updated_at", "2023-02-02 19:13:44.979989"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Chastity Runte"], ["created_at", "2023-02-02 19:13:44.981963"], ["updated_at", "2023-02-02 19:13:44.981963"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Corinne Wisoky"], ["correct", 0], ["created_at", "2023-02-02 19:13:44.982702"], ["updated_at", "2023-02-02 19:13:44.982702"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:13:44.983674"], ["updated_at", "2023-02-02 19:13:44.983674"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:44.985625"], ["updated_at", "2023-02-02 19:13:44.985625"], ["name", "Rev. Josette Kiehn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jacquline O'Kon"], ["description", "Cumque rerum dolores. Omnis enim consequatur. In dolor dicta."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:44.986873"], ["updated_at", "2023-02-02 19:13:44.986873"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joe Doyle"], ["created_at", "2023-02-02 19:13:44.989329"], ["updated_at", "2023-02-02 19:13:44.989329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alta Grant"], ["correct", 0], ["created_at", "2023-02-02 19:13:44.990323"], ["updated_at", "2023-02-02 19:13:44.990323"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:13:44.991751"], ["updated_at", "2023-02-02 19:13:44.991751"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:45.001521"], ["updated_at", "2023-02-02 19:13:45.001521"], ["name", "Roman Donnelly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sean Schmidt"], ["description", "Quo omnis officiis. Omnis molestiae omnis. Ducimus quos et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.002953"], ["updated_at", "2023-02-02 19:13:45.002953"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.4ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:13:45.015280"], ["updated_at", "2023-02-02 19:13:45.015280"], ["name", "Viviana Bergnaum Ret."]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Milagro Stark"], ["description", "A blanditiis sint. Voluptates sit nesciunt. Optio voluptatibus illo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.017188"], ["updated_at", "2023-02-02 19:13:45.017188"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Kelley Thiel"], ["description", "Ab nesciunt tenetur. Qui illum ut. Nam enim assumenda."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.032913"], ["updated_at", "2023-02-02 19:13:45.032913"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cameron Corkery"], ["created_at", "2023-02-02 19:13:45.034884"], ["updated_at", "2023-02-02 19:13:45.034884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Erick Wilkinson"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.035842"], ["updated_at", "2023-02-02 19:13:45.035842"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Abdul Funk"], ["description", "Voluptas aliquid odit. Est dolore voluptatibus. Consectetur sapiente est."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.037798"], ["updated_at", "2023-02-02 19:13:45.037798"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robt MacGyver"], ["created_at", "2023-02-02 19:13:45.039067"], ["updated_at", "2023-02-02 19:13:45.039067"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Maxima McClure DVM"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.039979"], ["updated_at", "2023-02-02 19:13:45.039979"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joey Halvorson"], ["description", "Est facere qui. Non qui impedit. Eum qui aut."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.044120"], ["updated_at", "2023-02-02 19:13:45.044120"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Randee Goyette"], ["created_at", "2023-02-02 19:13:45.045976"], ["updated_at", "2023-02-02 19:13:45.045976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Claude Hintz DVM"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.046958"], ["updated_at", "2023-02-02 19:13:45.046958"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ouida Considine V"], ["description", "Quam magni est. Consequatur rem autem. Rem eaque nobis."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.049428"], ["updated_at", "2023-02-02 19:13:45.049428"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Burton Kuvalis"], ["created_at", "2023-02-02 19:13:45.050494"], ["updated_at", "2023-02-02 19:13:45.050494"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miquel Feest"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.051260"], ["updated_at", "2023-02-02 19:13:45.051260"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Otilia Kling"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.052057"], ["updated_at", "2023-02-02 19:13:45.052057"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Marion Wiegand"], ["correct", 1], ["created_at", "2023-02-02 19:13:45.053301"], ["updated_at", "2023-02-02 19:13:45.053301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Garth Shanahan"], ["correct", 1], ["created_at", "2023-02-02 19:13:45.054419"], ["updated_at", "2023-02-02 19:13:45.054419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Laurence Graham"], ["description", "Quia incidunt molestias. Voluptatem earum voluptatibus. Accusamus minima explicabo."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.061624"], ["updated_at", "2023-02-02 19:13:45.061624"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Max Wintheiser DC"], ["created_at", "2023-02-02 19:13:45.063474"], ["updated_at", "2023-02-02 19:13:45.063474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Demetria McGlynn"], ["description", "Rem eos fuga. Consequatur accusantium sint. Ducimus impedit sed."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.065536"], ["updated_at", "2023-02-02 19:13:45.065536"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hosea Stanton"], ["created_at", "2023-02-02 19:13:45.066602"], ["updated_at", "2023-02-02 19:13:45.066602"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reggie Towne"], ["description", "Voluptatem doloremque aut. Provident ut perferendis. Neque illo nemo."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:13:45.069843"], ["updated_at", "2023-02-02 19:13:45.069843"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Zachariah Marks"], ["created_at", "2023-02-02 19:13:45.071970"], ["updated_at", "2023-02-02 19:13:45.071970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Adam Bauch"], ["correct", 1], ["created_at", "2023-02-02 19:13:45.073218"], ["updated_at", "2023-02-02 19:13:45.073218"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Ernest Kozey"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.074351"], ["updated_at", "2023-02-02 19:13:45.074351"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Garfield Hayes"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.075411"], ["updated_at", "2023-02-02 19:13:45.075411"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Hyo Pollich"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.076152"], ["updated_at", "2023-02-02 19:13:45.076152"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Piedad Gerlach VM"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.076891"], ["updated_at", "2023-02-02 19:13:45.076891"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rico Ullrich IV"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.077632"], ["updated_at", "2023-02-02 19:13:45.077632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jack Kihn"], ["correct", 0], ["created_at", "2023-02-02 19:13:45.078343"], ["updated_at", "2023-02-02 19:13:45.078343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.5ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? /* loading for inspect */ LIMIT ? [["question_id", 1], ["correct", 1], ["LIMIT", 11]] + Survey::Option Exists? (0.3ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? /* loading for inspect */ LIMIT ? [["question_id", 1], ["LIMIT", 11]] + Survey::Option Exists? (0.2ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + TRANSACTION (0.8ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.699522"], ["updated_at", "2023-02-02 19:16:22.699522"], ["name", "Daniele Funk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Romeo Nader"], ["description", "Excepturi et a. Provident dolorum et. Vel libero recusandae."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.704798"], ["updated_at", "2023-02-02 19:16:22.704798"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Patricia Parker"], ["created_at", "2023-02-02 19:16:22.717211"], ["updated_at", "2023-02-02 19:16:22.717211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Caridad Heller Jr."], ["correct", 0], ["created_at", "2023-02-02 19:16:22.720549"], ["updated_at", "2023-02-02 19:16:22.720549"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:16:22.723701"], ["updated_at", "2023-02-02 19:16:22.723701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.739098"], ["updated_at", "2023-02-02 19:16:22.739098"], ["name", "Dr. Chong Mertz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Angel Ziemann"], ["description", "Necessitatibus consequatur aut. Totam unde animi. Quas doloremque id."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.740591"], ["updated_at", "2023-02-02 19:16:22.740591"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willie Collins"], ["created_at", "2023-02-02 19:16:22.743220"], ["updated_at", "2023-02-02 19:16:22.743220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rolande Wilderman"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.744206"], ["updated_at", "2023-02-02 19:16:22.744206"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:16:22.745358"], ["updated_at", "2023-02-02 19:16:22.745358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (1.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.748138"], ["updated_at", "2023-02-02 19:16:22.748138"], ["name", "Maurice Hermann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Estella Rodriguez II"], ["description", "Rerum et quae. Vero esse ratione. Sapiente et consequatur."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.750414"], ["updated_at", "2023-02-02 19:16:22.750414"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kennith Blanda"], ["created_at", "2023-02-02 19:16:22.752665"], ["updated_at", "2023-02-02 19:16:22.752665"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sylvia Hamill"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.753576"], ["updated_at", "2023-02-02 19:16:22.753576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:16:22.755216"], ["updated_at", "2023-02-02 19:16:22.755216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.757722"], ["updated_at", "2023-02-02 19:16:22.757722"], ["name", "Herschel Johns V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Luther Wintheiser VM"], ["description", "Voluptates aspernatur et. Eum provident voluptas. Vitae quod minus."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.759189"], ["updated_at", "2023-02-02 19:16:22.759189"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edda Smitham"], ["created_at", "2023-02-02 19:16:22.761538"], ["updated_at", "2023-02-02 19:16:22.761538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Merry Hettinger"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.762772"], ["updated_at", "2023-02-02 19:16:22.762772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:16:22.764135"], ["updated_at", "2023-02-02 19:16:22.764135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.8ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.8ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.777891"], ["updated_at", "2023-02-02 19:16:22.777891"], ["name", "Pedro Champlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lahoma Wehner II"], ["description", "Quia quia enim. Perspiciatis nemo autem. Sit qui vel."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.779553"], ["updated_at", "2023-02-02 19:16:22.779553"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:16:22.796994"], ["updated_at", "2023-02-02 19:16:22.796994"], ["name", "Corrine Zulauf"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Marvin Kub"], ["description", "Quasi similique aspernatur. Aut perspiciatis quaerat. Beatae aut id."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.799648"], ["updated_at", "2023-02-02 19:16:22.799648"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (1.0ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.4ms) TRUNCATE TABLE "users" +  (0.9ms) DELETE FROM "users" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.2ms) PRAGMA defer_foreign_keys = 0 +  (0.1ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dee Torphy IV"], ["description", "Suscipit et qui. Dolor facere et. Et sit nesciunt."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.824615"], ["updated_at", "2023-02-02 19:16:22.824615"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Janean MacGyver I"], ["created_at", "2023-02-02 19:16:22.826327"], ["updated_at", "2023-02-02 19:16:22.826327"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Caprice Mertz"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.827274"], ["updated_at", "2023-02-02 19:16:22.827274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carmine Haag"], ["description", "Quia aperiam qui. Amet tenetur fugit. Enim assumenda et."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.829901"], ["updated_at", "2023-02-02 19:16:22.829901"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lenora Pollich"], ["created_at", "2023-02-02 19:16:22.833750"], ["updated_at", "2023-02-02 19:16:22.833750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joesph O'Connell"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.835541"], ["updated_at", "2023-02-02 19:16:22.835541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Teressa Deckow JD"], ["description", "Totam adipisci dolor. Occaecati qui quas. Sed ab facere."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.840496"], ["updated_at", "2023-02-02 19:16:22.840496"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sean Herzog"], ["created_at", "2023-02-02 19:16:22.841738"], ["updated_at", "2023-02-02 19:16:22.841738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Keith Morar"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.842531"], ["updated_at", "2023-02-02 19:16:22.842531"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Virgil Fritsch"], ["description", "Corrupti ab maiores. Saepe magni et. Blanditiis autem perferendis."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.845809"], ["updated_at", "2023-02-02 19:16:22.845809"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kandra Hermann PhD"], ["created_at", "2023-02-02 19:16:22.847555"], ["updated_at", "2023-02-02 19:16:22.847555"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jimmy Schimmel"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.848384"], ["updated_at", "2023-02-02 19:16:22.848384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Keven Rosenbaum"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.849164"], ["updated_at", "2023-02-02 19:16:22.849164"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Elisha Yundt"], ["correct", 1], ["created_at", "2023-02-02 19:16:22.849897"], ["updated_at", "2023-02-02 19:16:22.849897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Len Quitzon V"], ["correct", 1], ["created_at", "2023-02-02 19:16:22.850667"], ["updated_at", "2023-02-02 19:16:22.850667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Milan Stroman"], ["description", "Modi rerum enim. Voluptas sed sunt. Et harum illum."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.858831"], ["updated_at", "2023-02-02 19:16:22.858831"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cassandra White"], ["created_at", "2023-02-02 19:16:22.859997"], ["updated_at", "2023-02-02 19:16:22.859997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Georgie Boehm Esq."], ["description", "Omnis quaerat fugiat. Velit ea odio. Sed provident odit."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.862011"], ["updated_at", "2023-02-02 19:16:22.862011"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Adolfo Effertz V"], ["created_at", "2023-02-02 19:16:22.863949"], ["updated_at", "2023-02-02 19:16:22.863949"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lee Veum"], ["description", "Enim eveniet qui. Quia quos at. Itaque dolores voluptatibus."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:16:22.867918"], ["updated_at", "2023-02-02 19:16:22.867918"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edmund Bosco"], ["created_at", "2023-02-02 19:16:22.869132"], ["updated_at", "2023-02-02 19:16:22.869132"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gail Lindgren"], ["correct", 1], ["created_at", "2023-02-02 19:16:22.870079"], ["updated_at", "2023-02-02 19:16:22.870079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bud Volkman LLD"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.871233"], ["updated_at", "2023-02-02 19:16:22.871233"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lynelle Hane"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.873046"], ["updated_at", "2023-02-02 19:16:22.873046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kirk MacGyver"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.873966"], ["updated_at", "2023-02-02 19:16:22.873966"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Charley Nolan"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.874714"], ["updated_at", "2023-02-02 19:16:22.874714"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Luciano Bogisich"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.875449"], ["updated_at", "2023-02-02 19:16:22.875449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jacqueline Olson"], ["correct", 0], ["created_at", "2023-02-02 19:16:22.876179"], ["updated_at", "2023-02-02 19:16:22.876179"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.531124"], ["updated_at", "2023-02-02 19:18:43.531124"], ["name", "Raelene Hagenes Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Adelina Swaniawski"], ["description", "Nisi repellendus est. Suscipit est natus. Voluptate eum eius."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.536764"], ["updated_at", "2023-02-02 19:18:43.536764"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Benedict Muller"], ["created_at", "2023-02-02 19:18:43.549206"], ["updated_at", "2023-02-02 19:18:43.549206"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Hai West"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.552215"], ["updated_at", "2023-02-02 19:18:43.552215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:18:43.555554"], ["updated_at", "2023-02-02 19:18:43.555554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.571712"], ["updated_at", "2023-02-02 19:18:43.571712"], ["name", "Gov. Laurence Jacobi"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hilario Hilll"], ["description", "Eveniet cum sint. Ab recusandae voluptate. Numquam eaque reprehenderit."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.573144"], ["updated_at", "2023-02-02 19:18:43.573144"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Matt Mills"], ["created_at", "2023-02-02 19:18:43.575565"], ["updated_at", "2023-02-02 19:18:43.575565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Otilia Douglas DVM"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.576621"], ["updated_at", "2023-02-02 19:18:43.576621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:18:43.577970"], ["updated_at", "2023-02-02 19:18:43.577970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.580056"], ["updated_at", "2023-02-02 19:18:43.580056"], ["name", "Veronika Williamson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tasha Mertz"], ["description", "Temporibus voluptatibus quia. Culpa reprehenderit rem. Ad nihil ut."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.581366"], ["updated_at", "2023-02-02 19:18:43.581366"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blair Hirthe"], ["created_at", "2023-02-02 19:18:43.583397"], ["updated_at", "2023-02-02 19:18:43.583397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Frederick Zboncak"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.584120"], ["updated_at", "2023-02-02 19:18:43.584120"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:18:43.585100"], ["updated_at", "2023-02-02 19:18:43.585100"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.586948"], ["updated_at", "2023-02-02 19:18:43.586948"], ["name", "Corrine Walsh"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Audria Kerluke"], ["description", "Beatae ad maxime. Rem modi atque. Quisquam laborum eligendi."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.588153"], ["updated_at", "2023-02-02 19:18:43.588153"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Verda Hackett Ret."], ["created_at", "2023-02-02 19:18:43.590145"], ["updated_at", "2023-02-02 19:18:43.590145"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Carma Conn"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.590967"], ["updated_at", "2023-02-02 19:18:43.590967"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:18:43.592245"], ["updated_at", "2023-02-02 19:18:43.592245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (5.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.610631"], ["updated_at", "2023-02-02 19:18:43.610631"], ["name", "Brooks Koelpin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chadwick Parker"], ["description", "Vel maxime laborum. Odit voluptatem nihil. Repellat perferendis doloribus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.612686"], ["updated_at", "2023-02-02 19:18:43.612686"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:18:43.624401"], ["updated_at", "2023-02-02 19:18:43.624401"], ["name", "Russ Willms"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terisa Runolfsdottir"], ["description", "Occaecati itaque ipsam. Labore aut ipsum. Est aspernatur ducimus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.626019"], ["updated_at", "2023-02-02 19:18:43.626019"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darren Brakus"], ["description", "Architecto ex ut. Asperiores numquam et. Quas aliquam dolor."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.642390"], ["updated_at", "2023-02-02 19:18:43.642390"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dong Anderson"], ["created_at", "2023-02-02 19:18:43.644200"], ["updated_at", "2023-02-02 19:18:43.644200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jc Roob"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.645344"], ["updated_at", "2023-02-02 19:18:43.645344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lacy Beahan"], ["description", "Amet saepe similique. Et rerum earum. Facere dignissimos exercitationem."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.647380"], ["updated_at", "2023-02-02 19:18:43.647380"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Virgie Stracke"], ["created_at", "2023-02-02 19:18:43.648620"], ["updated_at", "2023-02-02 19:18:43.648620"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Latrisha Powlowski"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.649677"], ["updated_at", "2023-02-02 19:18:43.649677"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Luella O'Connell"], ["description", "Iure dolor cumque. Perferendis sint maiores. Ad quod odit."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.653870"], ["updated_at", "2023-02-02 19:18:43.653870"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Warner Kertzmann"], ["created_at", "2023-02-02 19:18:43.655244"], ["updated_at", "2023-02-02 19:18:43.655244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carrie Hettinger"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.656188"], ["updated_at", "2023-02-02 19:18:43.656188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Junior Dibbert"], ["description", "Unde suscipit totam. Illum et temporibus. Ad eveniet est."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.660924"], ["updated_at", "2023-02-02 19:18:43.660924"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Nohemi Nikolaus"], ["created_at", "2023-02-02 19:18:43.663036"], ["updated_at", "2023-02-02 19:18:43.663036"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Luanne Erdman"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.664133"], ["updated_at", "2023-02-02 19:18:43.664133"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Corine Hansen"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.665006"], ["updated_at", "2023-02-02 19:18:43.665006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Barton Keeling"], ["correct", 1], ["created_at", "2023-02-02 19:18:43.665835"], ["updated_at", "2023-02-02 19:18:43.665835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Lucrecia Batz"], ["correct", 1], ["created_at", "2023-02-02 19:18:43.666848"], ["updated_at", "2023-02-02 19:18:43.666848"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Daisy Schiller IV"], ["description", "Voluptatibus sint aperiam. Amet quisquam quia. Quis laudantium autem."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.676844"], ["updated_at", "2023-02-02 19:18:43.676844"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Broderick Stamm"], ["created_at", "2023-02-02 19:18:43.680164"], ["updated_at", "2023-02-02 19:18:43.680164"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Madaline Turcotte"], ["description", "Rem ut est. Odio quas iste. Non adipisci amet."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.683001"], ["updated_at", "2023-02-02 19:18:43.683001"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stanford Batz"], ["created_at", "2023-02-02 19:18:43.686143"], ["updated_at", "2023-02-02 19:18:43.686143"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Matha Swift"], ["description", "Beatae consequatur eos. Omnis eligendi dolorum. Magnam quia et."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.692120"], ["updated_at", "2023-02-02 19:18:43.692120"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Chloe Leuschke"], ["created_at", "2023-02-02 19:18:43.694191"], ["updated_at", "2023-02-02 19:18:43.694191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Donny Price PhD"], ["correct", 1], ["created_at", "2023-02-02 19:18:43.695372"], ["updated_at", "2023-02-02 19:18:43.695372"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lora Rogahn"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.696495"], ["updated_at", "2023-02-02 19:18:43.696495"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Bert Ward"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.698302"], ["updated_at", "2023-02-02 19:18:43.698302"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Viki Corkery"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.703202"], ["updated_at", "2023-02-02 19:18:43.703202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Stevie Kirlin"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.705292"], ["updated_at", "2023-02-02 19:18:43.705292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alejandro Schowalter"], ["correct", 0], ["created_at", "2023-02-02 19:18:43.706714"], ["updated_at", "2023-02-02 19:18:43.706714"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rickey Hilll Ret."], ["correct", 0], ["created_at", "2023-02-02 19:18:43.708149"], ["updated_at", "2023-02-02 19:18:43.708149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.4ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mckenzie Flatley III"], ["description", "Nam pariatur dicta. Repellendus quia et. Eligendi maxime recusandae."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:18:43.725358"], ["updated_at", "2023-02-02 19:18:43.725358"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (3.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.764048"], ["updated_at", "2023-02-02 19:21:32.764048"], ["name", "Dr. Nerissa McGlynn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Doug Kuphal"], ["description", "Exercitationem rem illum. Soluta magni excepturi. Error ullam velit."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.772450"], ["updated_at", "2023-02-02 19:21:32.772450"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Zaida Predovic"], ["created_at", "2023-02-02 19:21:32.786517"], ["updated_at", "2023-02-02 19:21:32.786517"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Larhonda Lynch JD"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.789632"], ["updated_at", "2023-02-02 19:21:32.789632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:21:32.792755"], ["updated_at", "2023-02-02 19:21:32.792755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.808034"], ["updated_at", "2023-02-02 19:21:32.808034"], ["name", "Ellis McGlynn DO"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marci Funk"], ["description", "Veritatis alias animi. Dignissimos rem voluptatem. Aperiam eius sunt."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.809467"], ["updated_at", "2023-02-02 19:21:32.809467"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Napoleon Harris MD"], ["created_at", "2023-02-02 19:21:32.812065"], ["updated_at", "2023-02-02 19:21:32.812065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Barton Goodwin"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.813029"], ["updated_at", "2023-02-02 19:21:32.813029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:21:32.814202"], ["updated_at", "2023-02-02 19:21:32.814202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.816209"], ["updated_at", "2023-02-02 19:21:32.816209"], ["name", "Buster Reichel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Irish Kertzmann"], ["description", "Culpa minima fuga. Iure cupiditate ipsa. Impedit suscipit quia."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.817447"], ["updated_at", "2023-02-02 19:21:32.817447"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Palmer Mosciski"], ["created_at", "2023-02-02 19:21:32.819357"], ["updated_at", "2023-02-02 19:21:32.819357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jonathan Bernier III"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.820109"], ["updated_at", "2023-02-02 19:21:32.820109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:21:32.821226"], ["updated_at", "2023-02-02 19:21:32.821226"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.823849"], ["updated_at", "2023-02-02 19:21:32.823849"], ["name", "Lauren Reilly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Kathlene Jacobi"], ["description", "Repudiandae qui fugit. Sint sint unde. Deleniti ipsam inventore."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.825341"], ["updated_at", "2023-02-02 19:21:32.825341"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Larae Will Ret."], ["created_at", "2023-02-02 19:21:32.827429"], ["updated_at", "2023-02-02 19:21:32.827429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ashli Cole DDS"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.828200"], ["updated_at", "2023-02-02 19:21:32.828200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:21:32.829294"], ["updated_at", "2023-02-02 19:21:32.829294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.838102"], ["updated_at", "2023-02-02 19:21:32.838102"], ["name", "Santa Kirlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilber Friesen"], ["description", "Consequuntur est minus. Est totam facere. Molestiae provident saepe."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.839754"], ["updated_at", "2023-02-02 19:21:32.839754"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.5ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:21:32.852888"], ["updated_at", "2023-02-02 19:21:32.852888"], ["name", "Reta Stiedemann PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aleshia Gleichner"], ["description", "Consectetur et aliquid. Sed hic magnam. Eius in et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.855529"], ["updated_at", "2023-02-02 19:21:32.855529"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darin Ledner"], ["description", "Quis rerum voluptatibus. Ab qui molestias. At architecto maxime."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.872316"], ["updated_at", "2023-02-02 19:21:32.872316"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blake Wunsch"], ["created_at", "2023-02-02 19:21:32.875145"], ["updated_at", "2023-02-02 19:21:32.875145"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Clare Schmitt"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.876160"], ["updated_at", "2023-02-02 19:21:32.876160"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donald Marks"], ["description", "Nulla inventore quia. Consectetur fugit aut. Quia distinctio qui."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.878343"], ["updated_at", "2023-02-02 19:21:32.878343"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Raymon Brakus"], ["created_at", "2023-02-02 19:21:32.879565"], ["updated_at", "2023-02-02 19:21:32.879565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Heriberto Monahan"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.880353"], ["updated_at", "2023-02-02 19:21:32.880353"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eli Ebert"], ["description", "Possimus ipsum architecto. Ipsa voluptas eaque. Quas ipsa est."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.884370"], ["updated_at", "2023-02-02 19:21:32.884370"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Berneice Bergnaum"], ["created_at", "2023-02-02 19:21:32.885626"], ["updated_at", "2023-02-02 19:21:32.885626"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Timika Braun"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.886440"], ["updated_at", "2023-02-02 19:21:32.886440"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Coleman Crona"], ["description", "Perferendis necessitatibus repellendus. Et nihil autem. Non aliquam dolores."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.889182"], ["updated_at", "2023-02-02 19:21:32.889182"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tu Gusikowski VM"], ["created_at", "2023-02-02 19:21:32.891018"], ["updated_at", "2023-02-02 19:21:32.891018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Dawna Murphy"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.892434"], ["updated_at", "2023-02-02 19:21:32.892434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Celine Powlowski"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.893396"], ["updated_at", "2023-02-02 19:21:32.893396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sammie Batz Ret."], ["correct", 1], ["created_at", "2023-02-02 19:21:32.894177"], ["updated_at", "2023-02-02 19:21:32.894177"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Wallace Breitenberg"], ["correct", 1], ["created_at", "2023-02-02 19:21:32.894933"], ["updated_at", "2023-02-02 19:21:32.894933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Astrid Balistreri"], ["description", "Est explicabo eos. Non provident eos. Repudiandae tempora repellat."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.902149"], ["updated_at", "2023-02-02 19:21:32.902149"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shad Shields"], ["created_at", "2023-02-02 19:21:32.903314"], ["updated_at", "2023-02-02 19:21:32.903314"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roma Nitzsche"], ["description", "Omnis necessitatibus delectus. Beatae esse quae. Ullam dolor tempora."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.905636"], ["updated_at", "2023-02-02 19:21:32.905636"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ilda Williamson"], ["created_at", "2023-02-02 19:21:32.907147"], ["updated_at", "2023-02-02 19:21:32.907147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lowell Keebler"], ["description", "Quis quos ad. Et nisi expedita. Ea repellendus officia."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.910757"], ["updated_at", "2023-02-02 19:21:32.910757"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sadie Stanton II"], ["created_at", "2023-02-02 19:21:32.912546"], ["updated_at", "2023-02-02 19:21:32.912546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jenette Glover"], ["correct", 1], ["created_at", "2023-02-02 19:21:32.913469"], ["updated_at", "2023-02-02 19:21:32.913469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mauricio Schroeder"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.914236"], ["updated_at", "2023-02-02 19:21:32.914236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Kelsey Pfeffer"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.914978"], ["updated_at", "2023-02-02 19:21:32.914978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cesar Feest"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.915689"], ["updated_at", "2023-02-02 19:21:32.915689"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gonzalo Carroll"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.916393"], ["updated_at", "2023-02-02 19:21:32.916393"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Calandra Hane"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.917090"], ["updated_at", "2023-02-02 19:21:32.917090"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lesley Cormier"], ["correct", 0], ["created_at", "2023-02-02 19:21:32.917781"], ["updated_at", "2023-02-02 19:21:32.917781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chad Bechtelar"], ["description", "Quia ut perferendis. Pariatur adipisci et. Impedit quas necessitatibus."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.929905"], ["updated_at", "2023-02-02 19:21:32.929905"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brent Beier Jr."], ["description", "Sit non id. Et nam tempora. Rem at voluptas."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:21:32.932494"], ["updated_at", "2023-02-02 19:21:32.932494"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.458540"], ["updated_at", "2023-02-02 19:23:22.458540"], ["name", "Lane Lowe Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosanne Beier"], ["description", "Vel assumenda qui. Perferendis saepe distinctio. Eos quasi itaque."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.463806"], ["updated_at", "2023-02-02 19:23:22.463806"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Monroe Hilll"], ["created_at", "2023-02-02 19:23:22.476020"], ["updated_at", "2023-02-02 19:23:22.476020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Peter Paucek"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.479348"], ["updated_at", "2023-02-02 19:23:22.479348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:23:22.482469"], ["updated_at", "2023-02-02 19:23:22.482469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.497764"], ["updated_at", "2023-02-02 19:23:22.497764"], ["name", "Reuben Balistreri"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Jonas Lebsack"], ["description", "Eos consequuntur ducimus. Praesentium non reiciendis. Voluptatem quis laborum."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.499216"], ["updated_at", "2023-02-02 19:23:22.499216"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shawn Johns"], ["created_at", "2023-02-02 19:23:22.502194"], ["updated_at", "2023-02-02 19:23:22.502194"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elliot McCullough"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.503142"], ["updated_at", "2023-02-02 19:23:22.503142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:23:22.504249"], ["updated_at", "2023-02-02 19:23:22.504249"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.506299"], ["updated_at", "2023-02-02 19:23:22.506299"], ["name", "Everett Walker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Norman Howell"], ["description", "Qui magni qui. Aut quaerat ea. Aut ipsa omnis."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.507687"], ["updated_at", "2023-02-02 19:23:22.507687"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Emmett Davis"], ["created_at", "2023-02-02 19:23:22.510006"], ["updated_at", "2023-02-02 19:23:22.510006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "James Batz"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.510759"], ["updated_at", "2023-02-02 19:23:22.510759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:23:22.511797"], ["updated_at", "2023-02-02 19:23:22.511797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.513768"], ["updated_at", "2023-02-02 19:23:22.513768"], ["name", "Lawana Heaney"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Corey Reynolds"], ["description", "Dolorum labore eaque. Et rerum repellendus. Et cumque aut."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.515012"], ["updated_at", "2023-02-02 19:23:22.515012"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bernetta Windler Esq."], ["created_at", "2023-02-02 19:23:22.516951"], ["updated_at", "2023-02-02 19:23:22.516951"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Boris Prosacco"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.517669"], ["updated_at", "2023-02-02 19:23:22.517669"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:23:22.518614"], ["updated_at", "2023-02-02 19:23:22.518614"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.3ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.3ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.531084"], ["updated_at", "2023-02-02 19:23:22.531084"], ["name", "Gregory Kunde"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yolando Cormier Esq."], ["description", "Recusandae fugit omnis. Asperiores modi tempore. Dicta dolor iste."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.533200"], ["updated_at", "2023-02-02 19:23:22.533200"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:23:22.544884"], ["updated_at", "2023-02-02 19:23:22.544884"], ["name", "Ami Brekke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Brandon Considine"], ["description", "Est animi et. Pariatur assumenda est. Ut quibusdam repudiandae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.546741"], ["updated_at", "2023-02-02 19:23:22.546741"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.5ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yevette Bogan"], ["description", "Et est soluta. Dolore eaque quam. Repudiandae repellat et."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.566897"], ["updated_at", "2023-02-02 19:23:22.566897"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dann Jacobi"], ["created_at", "2023-02-02 19:23:22.568154"], ["updated_at", "2023-02-02 19:23:22.568154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alan Gutkowski"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.569027"], ["updated_at", "2023-02-02 19:23:22.569027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Darius Carter"], ["description", "Atque expedita deleniti. Dignissimos vitae est. Esse dolores non."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.572053"], ["updated_at", "2023-02-02 19:23:22.572053"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ladawn Denesik"], ["created_at", "2023-02-02 19:23:22.574410"], ["updated_at", "2023-02-02 19:23:22.574410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Glendora McLaughlin"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.576192"], ["updated_at", "2023-02-02 19:23:22.576192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cherrie Graham"], ["description", "Est aut sapiente. Aut non similique. Porro perspiciatis dignissimos."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.580738"], ["updated_at", "2023-02-02 19:23:22.580738"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Florencio O'Connell III"], ["created_at", "2023-02-02 19:23:22.582479"], ["updated_at", "2023-02-02 19:23:22.582479"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Conrad Witting"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.584957"], ["updated_at", "2023-02-02 19:23:22.584957"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Thurman Kling DC"], ["description", "Et eum aut. Praesentium tempora nam. Exercitationem optio qui."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.590209"], ["updated_at", "2023-02-02 19:23:22.590209"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lael Hilpert"], ["created_at", "2023-02-02 19:23:22.592152"], ["updated_at", "2023-02-02 19:23:22.592152"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ali Stamm DVM"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.593265"], ["updated_at", "2023-02-02 19:23:22.593265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Russel Gleichner"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.594183"], ["updated_at", "2023-02-02 19:23:22.594183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rev. Oliva Torphy"], ["correct", 1], ["created_at", "2023-02-02 19:23:22.595354"], ["updated_at", "2023-02-02 19:23:22.595354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "James Lubowitz"], ["correct", 1], ["created_at", "2023-02-02 19:23:22.597935"], ["updated_at", "2023-02-02 19:23:22.597935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dean Harris"], ["description", "Qui illo sunt. Modi iure eos. Et odit qui."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.605854"], ["updated_at", "2023-02-02 19:23:22.605854"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eulalia Raynor DC"], ["created_at", "2023-02-02 19:23:22.607504"], ["updated_at", "2023-02-02 19:23:22.607504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loren Erdman"], ["description", "Dignissimos inventore quis. Cumque voluptatem nisi. Ut quia est."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.610347"], ["updated_at", "2023-02-02 19:23:22.610347"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lavern Bogisich"], ["created_at", "2023-02-02 19:23:22.611790"], ["updated_at", "2023-02-02 19:23:22.611790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sherwood Blanda"], ["description", "Dolorum est facere. Perspiciatis ut animi. Qui quis magni."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.615749"], ["updated_at", "2023-02-02 19:23:22.615749"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacelyn Herman"], ["created_at", "2023-02-02 19:23:22.617190"], ["updated_at", "2023-02-02 19:23:22.617190"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dr. Renato Parker"], ["correct", 1], ["created_at", "2023-02-02 19:23:22.618378"], ["updated_at", "2023-02-02 19:23:22.618378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Vance Hamill"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.620847"], ["updated_at", "2023-02-02 19:23:22.620847"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tessie Kihn"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.622843"], ["updated_at", "2023-02-02 19:23:22.622843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Michal Padberg"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.623955"], ["updated_at", "2023-02-02 19:23:22.623955"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Chuck Bashirian"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.624812"], ["updated_at", "2023-02-02 19:23:22.624812"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Quintin Howell"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.625555"], ["updated_at", "2023-02-02 19:23:22.625555"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jennifer Upton"], ["correct", 0], ["created_at", "2023-02-02 19:23:22.626276"], ["updated_at", "2023-02-02 19:23:22.626276"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ha Wisoky"], ["description", "Eos est optio. Pariatur debitis architecto. Hic quas pariatur."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.638379"], ["updated_at", "2023-02-02 19:23:22.638379"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Man Mayer"], ["description", "Rerum tenetur amet. In minus consequuntur. Ducimus esse nemo."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.641006"], ["updated_at", "2023-02-02 19:23:22.641006"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Errol Swaniawski"], ["description", "Sit rerum libero. Distinctio sit eius. Non in qui."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:23:22.643587"], ["updated_at", "2023-02-02 19:23:22.643587"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sandy Klocko"], ["created_at", "2023-02-02 19:23:22.644365"], ["updated_at", "2023-02-02 19:23:22.644365"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lawerence Zboncak"], ["created_at", "2023-02-02 19:23:22.645632"], ["updated_at", "2023-02-02 19:23:22.645632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bari Boyle"], ["created_at", "2023-02-02 19:23:22.647010"], ["updated_at", "2023-02-02 19:23:22.647010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Roberto Kozey"], ["created_at", "2023-02-02 19:23:22.647863"], ["updated_at", "2023-02-02 19:23:22.647863"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rubin Koelpin V"], ["created_at", "2023-02-02 19:23:22.648705"], ["updated_at", "2023-02-02 19:23:22.648705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:23:22.650175"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.3ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (2.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.271635"], ["updated_at", "2023-02-02 19:24:55.271635"], ["name", "Dianne Grant"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Percy Gerhold"], ["description", "Occaecati ipsam cum. Sit omnis neque. Earum ut vitae."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.278095"], ["updated_at", "2023-02-02 19:24:55.278095"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (4.6ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Abbey Willms"], ["created_at", "2023-02-02 19:24:55.296554"], ["updated_at", "2023-02-02 19:24:55.296554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Jacklyn Weimann"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.299694"], ["updated_at", "2023-02-02 19:24:55.299694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:24:55.302706"], ["updated_at", "2023-02-02 19:24:55.302706"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.319291"], ["updated_at", "2023-02-02 19:24:55.319291"], ["name", "Leontine Paucek"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayne Homenick"], ["description", "Ut asperiores ex. Vitae laboriosam officia. Incidunt reprehenderit nulla."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.320938"], ["updated_at", "2023-02-02 19:24:55.320938"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Terence Kovacek"], ["created_at", "2023-02-02 19:24:55.323445"], ["updated_at", "2023-02-02 19:24:55.323445"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Grady Hayes"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.324195"], ["updated_at", "2023-02-02 19:24:55.324195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:24:55.325192"], ["updated_at", "2023-02-02 19:24:55.325192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.327251"], ["updated_at", "2023-02-02 19:24:55.327251"], ["name", "Hal Gerlach"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Marceline Weimann"], ["description", "Eos ut quia. Illum a ullam. Sit odit praesentium."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.328611"], ["updated_at", "2023-02-02 19:24:55.328611"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bryant Lakin"], ["created_at", "2023-02-02 19:24:55.330601"], ["updated_at", "2023-02-02 19:24:55.330601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Emory Spinka"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.331315"], ["updated_at", "2023-02-02 19:24:55.331315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:24:55.332264"], ["updated_at", "2023-02-02 19:24:55.332264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.334127"], ["updated_at", "2023-02-02 19:24:55.334127"], ["name", "Shonta Kiehn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jules Mosciski"], ["description", "Et molestias accusamus. Aspernatur quaerat magni. Sit perferendis tempore."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.335334"], ["updated_at", "2023-02-02 19:24:55.335334"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.5ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hong Hansen"], ["created_at", "2023-02-02 19:24:55.338293"], ["updated_at", "2023-02-02 19:24:55.338293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sanford Buckridge LLD"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.339401"], ["updated_at", "2023-02-02 19:24:55.339401"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:24:55.340662"], ["updated_at", "2023-02-02 19:24:55.340662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.350077"], ["updated_at", "2023-02-02 19:24:55.350077"], ["name", "Alphonso Johns"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jordan Runolfsdottir Esq."], ["description", "Accusamus doloribus sed. Repudiandae ab totam. Illo fuga qui."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.351722"], ["updated_at", "2023-02-02 19:24:55.351722"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:24:55.363798"], ["updated_at", "2023-02-02 19:24:55.363798"], ["name", "Brad Mills"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shantay Ruecker DVM"], ["description", "Distinctio provident eum. Illum autem dolore. Similique quos odit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.365276"], ["updated_at", "2023-02-02 19:24:55.365276"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Merlyn Breitenberg"], ["description", "Id incidunt a. Ut aperiam non. Nisi commodi quaerat."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.384195"], ["updated_at", "2023-02-02 19:24:55.384195"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Owen Thiel"], ["created_at", "2023-02-02 19:24:55.385396"], ["updated_at", "2023-02-02 19:24:55.385396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yoshiko Hessel IV"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.386239"], ["updated_at", "2023-02-02 19:24:55.386239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Colton Flatley"], ["description", "Amet eos itaque. Quam aut et. Similique culpa voluptate."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.388840"], ["updated_at", "2023-02-02 19:24:55.388840"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hershel Prohaska Sr."], ["created_at", "2023-02-02 19:24:55.391112"], ["updated_at", "2023-02-02 19:24:55.391112"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Javier Wolf"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.392465"], ["updated_at", "2023-02-02 19:24:55.392465"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clay Grant"], ["description", "Nostrum labore similique. Ullam impedit voluptas. Et in dolor."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.396118"], ["updated_at", "2023-02-02 19:24:55.396118"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Delcie Schulist"], ["created_at", "2023-02-02 19:24:55.397329"], ["updated_at", "2023-02-02 19:24:55.397329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cesar Ferry"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.398125"], ["updated_at", "2023-02-02 19:24:55.398125"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Melonie Lesch"], ["description", "Autem inventore quod. Cum aperiam eum. Corrupti quo quasi."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.401519"], ["updated_at", "2023-02-02 19:24:55.401519"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Ramona Nienow"], ["created_at", "2023-02-02 19:24:55.402710"], ["updated_at", "2023-02-02 19:24:55.402710"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Margherita Stiedemann"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.403469"], ["updated_at", "2023-02-02 19:24:55.403469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Taunya Willms"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.404260"], ["updated_at", "2023-02-02 19:24:55.404260"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Marlin Parker"], ["correct", 1], ["created_at", "2023-02-02 19:24:55.405079"], ["updated_at", "2023-02-02 19:24:55.405079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Elmer Cronin Esq."], ["correct", 1], ["created_at", "2023-02-02 19:24:55.405960"], ["updated_at", "2023-02-02 19:24:55.405960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robbie Bartell"], ["description", "Illo omnis eum. Cumque ad eligendi. Modi non nulla."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.413272"], ["updated_at", "2023-02-02 19:24:55.413272"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hosea Krajcik"], ["created_at", "2023-02-02 19:24:55.414493"], ["updated_at", "2023-02-02 19:24:55.414493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Corrine Renner"], ["description", "Nulla maiores possimus. Ea repudiandae impedit. Occaecati blanditiis est."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.416265"], ["updated_at", "2023-02-02 19:24:55.416265"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Houston Koepp"], ["created_at", "2023-02-02 19:24:55.417404"], ["updated_at", "2023-02-02 19:24:55.417404"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denver Dietrich"], ["description", "Excepturi sit eum. Enim eligendi veniam. Est reprehenderit qui."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.422020"], ["updated_at", "2023-02-02 19:24:55.422020"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Theresia Reynolds I"], ["created_at", "2023-02-02 19:24:55.424162"], ["updated_at", "2023-02-02 19:24:55.424162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jadwiga Wiegand DO"], ["correct", 1], ["created_at", "2023-02-02 19:24:55.425515"], ["updated_at", "2023-02-02 19:24:55.425515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Alden Mueller"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.426361"], ["updated_at", "2023-02-02 19:24:55.426361"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kiyoko Lang"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.427075"], ["updated_at", "2023-02-02 19:24:55.427075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dennis Ernser"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.427797"], ["updated_at", "2023-02-02 19:24:55.427797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miss Hoyt Witting"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.429264"], ["updated_at", "2023-02-02 19:24:55.429264"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alphonse Lang"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.431163"], ["updated_at", "2023-02-02 19:24:55.431163"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marcia Hodkiewicz"], ["correct", 0], ["created_at", "2023-02-02 19:24:55.432096"], ["updated_at", "2023-02-02 19:24:55.432096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction +  (0.2ms) PRAGMA foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clyde Sporer"], ["description", "Neque sit impedit. Dicta architecto consequatur. Et nulla neque."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.444395"], ["updated_at", "2023-02-02 19:24:55.444395"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corazon Bruen"], ["description", "Quia labore quisquam. Reprehenderit nisi aperiam. Quidem quod animi."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.446592"], ["updated_at", "2023-02-02 19:24:55.446592"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Laquanda Stroman"], ["description", "Ratione dolor iusto. Sunt natus nihil. Expedita eum in."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.449715"], ["updated_at", "2023-02-02 19:24:55.449715"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chasidy Rosenbaum"], ["created_at", "2023-02-02 19:24:55.450487"], ["updated_at", "2023-02-02 19:24:55.450487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alton Kertzmann"], ["created_at", "2023-02-02 19:24:55.451357"], ["updated_at", "2023-02-02 19:24:55.451357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Johnny Douglas"], ["created_at", "2023-02-02 19:24:55.452158"], ["updated_at", "2023-02-02 19:24:55.452158"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lloyd Herzog"], ["created_at", "2023-02-02 19:24:55.452891"], ["updated_at", "2023-02-02 19:24:55.452891"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. May Davis"], ["created_at", "2023-02-02 19:24:55.453882"], ["updated_at", "2023-02-02 19:24:55.453882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.2ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:24:55.456454"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Patrick Kshlerin Jr."], ["description", "Sequi perferendis distinctio. Dolorem occaecati quod. Et debitis est."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:24:55.463817"], ["updated_at", "2023-02-02 19:24:55.463817"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Virgina Homenick"], ["created_at", "2023-02-02 19:24:55.466355"], ["updated_at", "2023-02-02 19:24:55.466355"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Newton Wintheiser Jr."], ["created_at", "2023-02-02 19:24:55.469516"], ["updated_at", "2023-02-02 19:24:55.469516"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Rick Reilly"], ["created_at", "2023-02-02 19:24:55.471106"], ["updated_at", "2023-02-02 19:24:55.471106"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Ms. Ardith Hettinger"], ["created_at", "2023-02-02 19:24:55.472438"], ["updated_at", "2023-02-02 19:24:55.472438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Eryn O'Connell"], ["created_at", "2023-02-02 19:24:55.473738"], ["updated_at", "2023-02-02 19:24:55.473738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Enda Hartmann DO"], ["created_at", "2023-02-02 19:24:55.475294"], ["updated_at", "2023-02-02 19:24:55.475294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.719019"], ["updated_at", "2023-02-02 19:25:20.719019"], ["name", "Marica Runte"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Jule Hessel"], ["description", "Quia et eius. Ut expedita aut. Error sequi ut."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.724949"], ["updated_at", "2023-02-02 19:25:20.724949"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Liza Rowe CPA"], ["created_at", "2023-02-02 19:25:20.737570"], ["updated_at", "2023-02-02 19:25:20.737570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Eloy Cole"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.740569"], ["updated_at", "2023-02-02 19:25:20.740569"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:20.743664"], ["updated_at", "2023-02-02 19:25:20.743664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.759649"], ["updated_at", "2023-02-02 19:25:20.759649"], ["name", "Miss Terrance Mueller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilson Medhurst"], ["description", "Et sed eos. Et et aperiam. Nemo sunt enim."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.761115"], ["updated_at", "2023-02-02 19:25:20.761115"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (1.5ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Isaac Boehm"], ["created_at", "2023-02-02 19:25:20.765337"], ["updated_at", "2023-02-02 19:25:20.765337"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Chana Predovic"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.766339"], ["updated_at", "2023-02-02 19:25:20.766339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:20.767639"], ["updated_at", "2023-02-02 19:25:20.767639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.770086"], ["updated_at", "2023-02-02 19:25:20.770086"], ["name", "Sen. Doug Funk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jewel Bartell DC"], ["description", "Rerum adipisci autem. Illum neque commodi. Velit eius quasi."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.771506"], ["updated_at", "2023-02-02 19:25:20.771506"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Daniele Purdy"], ["created_at", "2023-02-02 19:25:20.773484"], ["updated_at", "2023-02-02 19:25:20.773484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Aileen Schroeder"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.774209"], ["updated_at", "2023-02-02 19:25:20.774209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:20.775168"], ["updated_at", "2023-02-02 19:25:20.775168"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.777128"], ["updated_at", "2023-02-02 19:25:20.777128"], ["name", "Marlon Kihn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Mavis Von"], ["description", "Officiis ex minima. Laborum fugiat nostrum. Voluptatem error consectetur."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.778467"], ["updated_at", "2023-02-02 19:25:20.778467"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Tomas Kihn"], ["created_at", "2023-02-02 19:25:20.780477"], ["updated_at", "2023-02-02 19:25:20.780477"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Oliva Waters"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.781214"], ["updated_at", "2023-02-02 19:25:20.781214"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:20.782199"], ["updated_at", "2023-02-02 19:25:20.782199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.791843"], ["updated_at", "2023-02-02 19:25:20.791843"], ["name", "Nola Lynch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Evelynn Marquardt V"], ["description", "Reiciendis perspiciatis nemo. Quidem ut reiciendis. Eligendi eius distinctio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.793524"], ["updated_at", "2023-02-02 19:25:20.793524"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:20.804828"], ["updated_at", "2023-02-02 19:25:20.804828"], ["name", "Kiley Lakin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Earnest Weimann"], ["description", "Voluptas sit similique. Et quos voluptatem. Rem dolor aliquid."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.806365"], ["updated_at", "2023-02-02 19:25:20.806365"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Trent Padberg DVM"], ["description", "Debitis alias est. Laboriosam et quaerat. Corrupti occaecati exercitationem."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.821474"], ["updated_at", "2023-02-02 19:25:20.821474"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bethanie Blanda"], ["created_at", "2023-02-02 19:25:20.822711"], ["updated_at", "2023-02-02 19:25:20.822711"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elodia Bergstrom VM"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.823533"], ["updated_at", "2023-02-02 19:25:20.823533"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roselle Huels"], ["description", "Aut quaerat dolorem. Et aspernatur rem. Dicta corporis et."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.825306"], ["updated_at", "2023-02-02 19:25:20.825306"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Loretta Trantow"], ["created_at", "2023-02-02 19:25:20.826509"], ["updated_at", "2023-02-02 19:25:20.826509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Reid Powlowski"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.827609"], ["updated_at", "2023-02-02 19:25:20.827609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brooks Hammes"], ["description", "Non sed natus. Totam expedita facilis. Voluptatem placeat et."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.831730"], ["updated_at", "2023-02-02 19:25:20.831730"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Twanna Hessel"], ["created_at", "2023-02-02 19:25:20.832861"], ["updated_at", "2023-02-02 19:25:20.832861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Devon Kuhic"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.833644"], ["updated_at", "2023-02-02 19:25:20.833644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marina Krajcik"], ["description", "Alias tempore repellat. Porro rerum quidem. Velit libero nostrum."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.836977"], ["updated_at", "2023-02-02 19:25:20.836977"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Timmy Hand"], ["created_at", "2023-02-02 19:25:20.838647"], ["updated_at", "2023-02-02 19:25:20.838647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Delsie Lind"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.839651"], ["updated_at", "2023-02-02 19:25:20.839651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Temeka Bosco"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.840429"], ["updated_at", "2023-02-02 19:25:20.840429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "The Hon. Yolanda Pollich"], ["correct", 1], ["created_at", "2023-02-02 19:25:20.841176"], ["updated_at", "2023-02-02 19:25:20.841176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Velma Rosenbaum"], ["correct", 1], ["created_at", "2023-02-02 19:25:20.841906"], ["updated_at", "2023-02-02 19:25:20.841906"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brandi Farrell"], ["description", "Placeat saepe aut. Repellat sequi fuga. Repudiandae quis provident."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.848681"], ["updated_at", "2023-02-02 19:25:20.848681"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Karlene Weimann"], ["created_at", "2023-02-02 19:25:20.850004"], ["updated_at", "2023-02-02 19:25:20.850004"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosario Hermiston"], ["description", "Minus ut ut. Natus id quos. Voluptas aut facilis."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.852015"], ["updated_at", "2023-02-02 19:25:20.852015"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Adrianna Osinski"], ["created_at", "2023-02-02 19:25:20.853413"], ["updated_at", "2023-02-02 19:25:20.853413"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Estella Roberts"], ["description", "Assumenda voluptatem et. Quisquam dolores quod. Deserunt velit tempore."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.857789"], ["updated_at", "2023-02-02 19:25:20.857789"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Scot Dickens"], ["created_at", "2023-02-02 19:25:20.859088"], ["updated_at", "2023-02-02 19:25:20.859088"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ms. Ardelia Jast"], ["correct", 1], ["created_at", "2023-02-02 19:25:20.860010"], ["updated_at", "2023-02-02 19:25:20.860010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Heriberto Bogan"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.860780"], ["updated_at", "2023-02-02 19:25:20.860780"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brad Macejkovic"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.861508"], ["updated_at", "2023-02-02 19:25:20.861508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yahaira West MD"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.862249"], ["updated_at", "2023-02-02 19:25:20.862249"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Leif Armstrong"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.862973"], ["updated_at", "2023-02-02 19:25:20.862973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Margarett Rosenbaum"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.863804"], ["updated_at", "2023-02-02 19:25:20.863804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jenine Lakin"], ["correct", 0], ["created_at", "2023-02-02 19:25:20.864971"], ["updated_at", "2023-02-02 19:25:20.864971"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Verdie Cruickshank III"], ["description", "Iusto harum voluptates. Hic et officiis. Dolore cumque aut."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.876328"], ["updated_at", "2023-02-02 19:25:20.876328"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alix Larson"], ["description", "Eum ut sit. Quae est aspernatur. Blanditiis quis id."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.878470"], ["updated_at", "2023-02-02 19:25:20.878470"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ma Koelpin"], ["description", "Eius voluptatem at. Pariatur aliquam sit. Minima nesciunt voluptates."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.880872"], ["updated_at", "2023-02-02 19:25:20.880872"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Aura Hoppe Ret."], ["created_at", "2023-02-02 19:25:20.881541"], ["updated_at", "2023-02-02 19:25:20.881541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Charisse Abshire"], ["created_at", "2023-02-02 19:25:20.882465"], ["updated_at", "2023-02-02 19:25:20.882465"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Verda Leffler"], ["created_at", "2023-02-02 19:25:20.883244"], ["updated_at", "2023-02-02 19:25:20.883244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Garfield Goodwin"], ["created_at", "2023-02-02 19:25:20.883977"], ["updated_at", "2023-02-02 19:25:20.883977"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Brendan Rodriguez"], ["created_at", "2023-02-02 19:25:20.884709"], ["updated_at", "2023-02-02 19:25:20.884709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (2.2ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:25:20.886653"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Josephine Heller"], ["description", "Excepturi dolores enim. Eos voluptas aliquam. Est qui explicabo."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.895402"], ["updated_at", "2023-02-02 19:25:20.895402"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lloyd Friesen"], ["description", "Enim quas architecto. Ut unde laudantium. Quis error fugit."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:20.897859"], ["updated_at", "2023-02-02 19:25:20.897859"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cedrick Ondricka"], ["created_at", "2023-02-02 19:25:20.899184"], ["updated_at", "2023-02-02 19:25:20.899184"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Nevada Schroeder"], ["created_at", "2023-02-02 19:25:20.899993"], ["updated_at", "2023-02-02 19:25:20.899993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Beatriz Murphy"], ["created_at", "2023-02-02 19:25:20.900698"], ["updated_at", "2023-02-02 19:25:20.900698"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adan Kris"], ["created_at", "2023-02-02 19:25:20.901721"], ["updated_at", "2023-02-02 19:25:20.901721"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Liz Heidenreich"], ["created_at", "2023-02-02 19:25:20.904510"], ["updated_at", "2023-02-02 19:25:20.904510"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Virgina Crona"], ["created_at", "2023-02-02 19:25:20.906144"], ["updated_at", "2023-02-02 19:25:20.906144"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.448638"], ["updated_at", "2023-02-02 19:25:31.448638"], ["name", "Lorretta Steuber DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Gwyn Swift"], ["description", "Laudantium quo est. Possimus sed laboriosam. Ut voluptate natus."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.453914"], ["updated_at", "2023-02-02 19:25:31.453914"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Micheal Torp"], ["created_at", "2023-02-02 19:25:31.467014"], ["updated_at", "2023-02-02 19:25:31.467014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joette Conroy IV"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.470069"], ["updated_at", "2023-02-02 19:25:31.470069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:31.473137"], ["updated_at", "2023-02-02 19:25:31.473137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.488931"], ["updated_at", "2023-02-02 19:25:31.488931"], ["name", "Domonique Lesch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Zane Auer"], ["description", "Odit incidunt sit. Quibusdam iste dolores. Voluptatum praesentium cupiditate."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.490396"], ["updated_at", "2023-02-02 19:25:31.490396"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tobias Wuckert"], ["created_at", "2023-02-02 19:25:31.497599"], ["updated_at", "2023-02-02 19:25:31.497599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Florencio Macejkovic"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.498425"], ["updated_at", "2023-02-02 19:25:31.498425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.5ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:31.499518"], ["updated_at", "2023-02-02 19:25:31.499518"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.503787"], ["updated_at", "2023-02-02 19:25:31.503787"], ["name", "Stuart Rippin I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jene Rath PhD"], ["description", "Quis amet alias. Sed sed veritatis. Expedita est ut."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.505678"], ["updated_at", "2023-02-02 19:25:31.505678"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mercy Becker LLD"], ["created_at", "2023-02-02 19:25:31.507882"], ["updated_at", "2023-02-02 19:25:31.507882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Celestine Wolff"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.508638"], ["updated_at", "2023-02-02 19:25:31.508638"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:31.509866"], ["updated_at", "2023-02-02 19:25:31.509866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.512806"], ["updated_at", "2023-02-02 19:25:31.512806"], ["name", "Sang Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reid Rippin"], ["description", "Ex tenetur itaque. Et in sunt. Dolores autem dolores."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.515755"], ["updated_at", "2023-02-02 19:25:31.515755"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Royce Reichert"], ["created_at", "2023-02-02 19:25:31.518265"], ["updated_at", "2023-02-02 19:25:31.518265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Steve Yost"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.519137"], ["updated_at", "2023-02-02 19:25:31.519137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:31.520225"], ["updated_at", "2023-02-02 19:25:31.520225"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.3ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.532075"], ["updated_at", "2023-02-02 19:25:31.532075"], ["name", "Alyssa Murazik Ret."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mickey Morissette"], ["description", "Fugiat aut ut. Quo est nobis. Accusantium perferendis doloremque."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.533508"], ["updated_at", "2023-02-02 19:25:31.533508"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:31.545387"], ["updated_at", "2023-02-02 19:25:31.545387"], ["name", "Huong Auer V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Larue Collier"], ["description", "Ad amet ea. Itaque ullam enim. Incidunt necessitatibus iusto."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.547243"], ["updated_at", "2023-02-02 19:25:31.547243"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nettie Franecki"], ["description", "Illum ea et. Hic sit aliquid. Excepturi ut cum."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.561957"], ["updated_at", "2023-02-02 19:25:31.561957"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chadwick Homenick"], ["created_at", "2023-02-02 19:25:31.563491"], ["updated_at", "2023-02-02 19:25:31.563491"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rolland Glover"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.564333"], ["updated_at", "2023-02-02 19:25:31.564333"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elvis Streich"], ["description", "Magnam libero omnis. Enim sint quisquam. Accusantium ea odio."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.566364"], ["updated_at", "2023-02-02 19:25:31.566364"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Loan Conroy Jr."], ["created_at", "2023-02-02 19:25:31.567905"], ["updated_at", "2023-02-02 19:25:31.567905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sharyn Hudson VM"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.568869"], ["updated_at", "2023-02-02 19:25:31.568869"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brooks Schmitt"], ["description", "A aperiam eaque. Mollitia id sunt. Temporibus laboriosam inventore."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.572507"], ["updated_at", "2023-02-02 19:25:31.572507"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ami Homenick"], ["created_at", "2023-02-02 19:25:31.573653"], ["updated_at", "2023-02-02 19:25:31.573653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Deloras Kulas"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.574450"], ["updated_at", "2023-02-02 19:25:31.574450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Aron Littel"], ["description", "Et qui quae. Eligendi praesentium odit. Placeat libero fugit."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.577269"], ["updated_at", "2023-02-02 19:25:31.577269"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gordon Tromp"], ["created_at", "2023-02-02 19:25:31.579968"], ["updated_at", "2023-02-02 19:25:31.579968"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (1.8ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mara Shanahan"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.580983"], ["updated_at", "2023-02-02 19:25:31.580983"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ava Gusikowski"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.584094"], ["updated_at", "2023-02-02 19:25:31.584094"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "My Kemmer"], ["correct", 1], ["created_at", "2023-02-02 19:25:31.585593"], ["updated_at", "2023-02-02 19:25:31.585593"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Tawny Christiansen"], ["correct", 1], ["created_at", "2023-02-02 19:25:31.586532"], ["updated_at", "2023-02-02 19:25:31.586532"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Senaida Thompson"], ["description", "Rem voluptas assumenda. Porro veniam natus. Recusandae ducimus explicabo."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.594672"], ["updated_at", "2023-02-02 19:25:31.594672"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kerry Klein"], ["created_at", "2023-02-02 19:25:31.596537"], ["updated_at", "2023-02-02 19:25:31.596537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Katelynn Roberts"], ["description", "Explicabo itaque dolor. Id quo alias. Eligendi rerum optio."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.599731"], ["updated_at", "2023-02-02 19:25:31.599731"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Justina Klocko"], ["created_at", "2023-02-02 19:25:31.601328"], ["updated_at", "2023-02-02 19:25:31.601328"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Forrest Tromp"], ["description", "Ea ipsa sed. Enim quas eaque. Officia et ut."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.605017"], ["updated_at", "2023-02-02 19:25:31.605017"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Efren Abernathy"], ["created_at", "2023-02-02 19:25:31.606434"], ["updated_at", "2023-02-02 19:25:31.606434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Pres. Aubrey Hintz"], ["correct", 1], ["created_at", "2023-02-02 19:25:31.608135"], ["updated_at", "2023-02-02 19:25:31.608135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miss Noreen Friesen"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.609405"], ["updated_at", "2023-02-02 19:25:31.609405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Darrell Hilpert"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.610793"], ["updated_at", "2023-02-02 19:25:31.610793"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marcus Christiansen"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.612258"], ["updated_at", "2023-02-02 19:25:31.612258"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mr. Bernice Hermiston"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.613826"], ["updated_at", "2023-02-02 19:25:31.613826"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Frankie Klocko"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.614970"], ["updated_at", "2023-02-02 19:25:31.614970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Coleen Beahan CPA"], ["correct", 0], ["created_at", "2023-02-02 19:25:31.615742"], ["updated_at", "2023-02-02 19:25:31.615742"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.1ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brant Price"], ["description", "Et aliquid eum. Quisquam quo ut. Et magnam in."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.626902"], ["updated_at", "2023-02-02 19:25:31.626902"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aundrea Rutherford"], ["description", "Praesentium dolorem ipsum. Molestiae vel rerum. Sint dolor sed."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.631163"], ["updated_at", "2023-02-02 19:25:31.631163"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hannah Langworth"], ["description", "Architecto omnis quia. Ut incidunt dolores. Autem rerum incidunt."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.633909"], ["updated_at", "2023-02-02 19:25:31.633909"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jamaal Feeney"], ["created_at", "2023-02-02 19:25:31.634314"], ["updated_at", "2023-02-02 19:25:31.634314"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Burton Schulist III"], ["created_at", "2023-02-02 19:25:31.635055"], ["updated_at", "2023-02-02 19:25:31.635055"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Avery Runolfsson"], ["created_at", "2023-02-02 19:25:31.635749"], ["updated_at", "2023-02-02 19:25:31.635749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Jenelle Cruickshank"], ["created_at", "2023-02-02 19:25:31.636471"], ["updated_at", "2023-02-02 19:25:31.636471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lesley Daugherty MD"], ["created_at", "2023-02-02 19:25:31.637433"], ["updated_at", "2023-02-02 19:25:31.637433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:25:31.639769"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Broderick Nienow"], ["description", "Consequuntur deserunt omnis. Quo vero quia. Eos tempora temporibus."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.644290"], ["updated_at", "2023-02-02 19:25:31.644290"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aimee Hodkiewicz"], ["description", "Molestiae autem sit. Fuga qui amet. Ipsam enim error."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:31.646389"], ["updated_at", "2023-02-02 19:25:31.646389"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Levi Rippin"], ["created_at", "2023-02-02 19:25:31.647862"], ["updated_at", "2023-02-02 19:25:31.647862"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rene Larkin"], ["created_at", "2023-02-02 19:25:31.649474"], ["updated_at", "2023-02-02 19:25:31.649474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Caleb Beatty"], ["created_at", "2023-02-02 19:25:31.650409"], ["updated_at", "2023-02-02 19:25:31.650409"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Waldo Gottlieb"], ["created_at", "2023-02-02 19:25:31.651152"], ["updated_at", "2023-02-02 19:25:31.651152"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jamal Armstrong"], ["created_at", "2023-02-02 19:25:31.651850"], ["updated_at", "2023-02-02 19:25:31.651850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Art Kling"], ["created_at", "2023-02-02 19:25:31.652555"], ["updated_at", "2023-02-02 19:25:31.652555"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.546233"], ["updated_at", "2023-02-02 19:25:47.546233"], ["name", "Archie Gibson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bernardine Trantow IV"], ["description", "Beatae expedita repellendus. Quia illo minus. Unde doloremque omnis."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.551327"], ["updated_at", "2023-02-02 19:25:47.551327"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ted Boyle"], ["created_at", "2023-02-02 19:25:47.563425"], ["updated_at", "2023-02-02 19:25:47.563425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miss Sonja Greenholt"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.566438"], ["updated_at", "2023-02-02 19:25:47.566438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:47.569350"], ["updated_at", "2023-02-02 19:25:47.569350"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (1.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.586298"], ["updated_at", "2023-02-02 19:25:47.586298"], ["name", "Claribel Stroman CPA"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darrick Barrows"], ["description", "Eligendi nihil id. Sunt delectus sed. Praesentium et voluptatibus."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.587768"], ["updated_at", "2023-02-02 19:25:47.587768"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gale Tromp"], ["created_at", "2023-02-02 19:25:47.590370"], ["updated_at", "2023-02-02 19:25:47.590370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Clemmie Bahringer"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.591330"], ["updated_at", "2023-02-02 19:25:47.591330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:47.592407"], ["updated_at", "2023-02-02 19:25:47.592407"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.594460"], ["updated_at", "2023-02-02 19:25:47.594460"], ["name", "Andy Kreiger CPA"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Franklin Harris DDS"], ["description", "Rerum aut unde. Cumque nihil et. Qui et alias."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.595736"], ["updated_at", "2023-02-02 19:25:47.595736"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Rosella Padberg"], ["created_at", "2023-02-02 19:25:47.597658"], ["updated_at", "2023-02-02 19:25:47.597658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Grazyna Stracke"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.598428"], ["updated_at", "2023-02-02 19:25:47.598428"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:47.599358"], ["updated_at", "2023-02-02 19:25:47.599358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.601152"], ["updated_at", "2023-02-02 19:25:47.601152"], ["name", "Leatha Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lavonna Kihn"], ["description", "Qui accusantium vel. Quia eum et. Tempore animi non."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.602308"], ["updated_at", "2023-02-02 19:25:47.602308"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jordan Lockman Esq."], ["created_at", "2023-02-02 19:25:47.604336"], ["updated_at", "2023-02-02 19:25:47.604336"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cruz Collier"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.605209"], ["updated_at", "2023-02-02 19:25:47.605209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:25:47.606755"], ["updated_at", "2023-02-02 19:25:47.606755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.616355"], ["updated_at", "2023-02-02 19:25:47.616355"], ["name", "Nicholas Williamson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Christinia Kihn"], ["description", "Nisi exercitationem fugit. Porro voluptatum doloremque. Qui deserunt est."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.617746"], ["updated_at", "2023-02-02 19:25:47.617746"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:25:47.630263"], ["updated_at", "2023-02-02 19:25:47.630263"], ["name", "Ezequiel Lindgren PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Drew Hagenes"], ["description", "Minima blanditiis nam. Voluptas enim id. Reiciendis temporibus numquam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.631761"], ["updated_at", "2023-02-02 19:25:47.631761"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.8ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Raymond Huel"], ["description", "Repellat sed ex. Qui labore unde. Ratione qui sapiente."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.646995"], ["updated_at", "2023-02-02 19:25:47.646995"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Benny Thompson CPA"], ["created_at", "2023-02-02 19:25:47.648215"], ["updated_at", "2023-02-02 19:25:47.648215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joan Satterfield"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.649114"], ["updated_at", "2023-02-02 19:25:47.649114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cordie Heller"], ["description", "Quam voluptate deserunt. Recusandae consequatur sequi. Dolor optio harum."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.652478"], ["updated_at", "2023-02-02 19:25:47.652478"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Curtis Wehner"], ["created_at", "2023-02-02 19:25:47.654001"], ["updated_at", "2023-02-02 19:25:47.654001"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Alla Wunsch"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.655096"], ["updated_at", "2023-02-02 19:25:47.655096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Myron Reilly"], ["description", "Reprehenderit aperiam commodi. Quia et sapiente. Quos exercitationem repellendus."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.659560"], ["updated_at", "2023-02-02 19:25:47.659560"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Nannie Hodkiewicz"], ["created_at", "2023-02-02 19:25:47.662110"], ["updated_at", "2023-02-02 19:25:47.662110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rolando Will"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.663725"], ["updated_at", "2023-02-02 19:25:47.663725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dominique Wilderman"], ["description", "Deserunt saepe corporis. Omnis numquam placeat. Provident voluptatem rerum."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.666758"], ["updated_at", "2023-02-02 19:25:47.666758"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Man Mohr"], ["created_at", "2023-02-02 19:25:47.668202"], ["updated_at", "2023-02-02 19:25:47.668202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Emerson Lueilwitz"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.669093"], ["updated_at", "2023-02-02 19:25:47.669093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lizette Bergstrom"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.669916"], ["updated_at", "2023-02-02 19:25:47.669916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Frances O'Hara"], ["correct", 1], ["created_at", "2023-02-02 19:25:47.672012"], ["updated_at", "2023-02-02 19:25:47.672012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Alec Wyman"], ["correct", 1], ["created_at", "2023-02-02 19:25:47.673851"], ["updated_at", "2023-02-02 19:25:47.673851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Filomena Dietrich"], ["description", "Ipsa vero autem. Enim architecto ut. Inventore voluptas ut."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.681851"], ["updated_at", "2023-02-02 19:25:47.681851"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maddie Kerluke"], ["created_at", "2023-02-02 19:25:47.684558"], ["updated_at", "2023-02-02 19:25:47.684558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Willa Satterfield III"], ["description", "Nihil aut voluptatem. Error accusamus quas. Voluptatum et iure."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.687795"], ["updated_at", "2023-02-02 19:25:47.687795"], ["survey_type", 0]] + TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Andrea Kshlerin"], ["created_at", "2023-02-02 19:25:47.691341"], ["updated_at", "2023-02-02 19:25:47.691341"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hyun Schuster MD"], ["description", "Necessitatibus quo dolor. Aut iure ab. Modi illum neque."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.697799"], ["updated_at", "2023-02-02 19:25:47.697799"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Ema Gleason"], ["created_at", "2023-02-02 19:25:47.699387"], ["updated_at", "2023-02-02 19:25:47.699387"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Tiffiny Wehner"], ["correct", 1], ["created_at", "2023-02-02 19:25:47.700387"], ["updated_at", "2023-02-02 19:25:47.700387"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lynetta Weimann"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.701234"], ["updated_at", "2023-02-02 19:25:47.701234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mina Kohler I"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.702066"], ["updated_at", "2023-02-02 19:25:47.702066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Kisha Keebler"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.702909"], ["updated_at", "2023-02-02 19:25:47.702909"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Noe Ryan"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.703762"], ["updated_at", "2023-02-02 19:25:47.703762"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Issac Gleichner"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.706014"], ["updated_at", "2023-02-02 19:25:47.706014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Alva Hintz"], ["correct", 0], ["created_at", "2023-02-02 19:25:47.707704"], ["updated_at", "2023-02-02 19:25:47.707704"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.1ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lisa Waelchi"], ["description", "Et eveniet doloribus. Temporibus voluptatem repellendus. Nam ipsam ducimus."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.719842"], ["updated_at", "2023-02-02 19:25:47.719842"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Danyell Rosenbaum Jr."], ["description", "Neque animi quidem. Magni omnis aut. Iste ut et."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.722146"], ["updated_at", "2023-02-02 19:25:47.722146"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vince Rosenbaum"], ["description", "Voluptatem dolor et. Commodi expedita autem. Voluptate quae accusamus."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.724824"], ["updated_at", "2023-02-02 19:25:47.724824"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dixie Rice DC"], ["created_at", "2023-02-02 19:25:47.725368"], ["updated_at", "2023-02-02 19:25:47.725368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Roosevelt Bogisich"], ["created_at", "2023-02-02 19:25:47.726084"], ["updated_at", "2023-02-02 19:25:47.726084"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Ashlee Jerde"], ["created_at", "2023-02-02 19:25:47.726856"], ["updated_at", "2023-02-02 19:25:47.726856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Vance Blick"], ["created_at", "2023-02-02 19:25:47.727729"], ["updated_at", "2023-02-02 19:25:47.727729"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jim Schaefer"], ["created_at", "2023-02-02 19:25:47.728501"], ["updated_at", "2023-02-02 19:25:47.728501"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:25:47.729894"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Marylynn Fay"], ["description", "Praesentium quia ipsam. Voluptatem reprehenderit maxime. Aliquid dolorem ut."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.733688"], ["updated_at", "2023-02-02 19:25:47.733688"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kattie Treutel"], ["description", "Ratione qui dolor. Labore velit ut. Voluptate molestias omnis."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:25:47.735185"], ["updated_at", "2023-02-02 19:25:47.735185"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Monnie Schoen"], ["created_at", "2023-02-02 19:25:47.736365"], ["updated_at", "2023-02-02 19:25:47.736365"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carmine Kassulke"], ["created_at", "2023-02-02 19:25:47.737192"], ["updated_at", "2023-02-02 19:25:47.737192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Arcelia Heathcote"], ["created_at", "2023-02-02 19:25:47.737977"], ["updated_at", "2023-02-02 19:25:47.737977"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Esther Kilback MD"], ["created_at", "2023-02-02 19:25:47.738793"], ["updated_at", "2023-02-02 19:25:47.738793"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ramiro Deckow"], ["created_at", "2023-02-02 19:25:47.739537"], ["updated_at", "2023-02-02 19:25:47.739537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ileana Schroeder"], ["created_at", "2023-02-02 19:25:47.740416"], ["updated_at", "2023-02-02 19:25:47.740416"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.014537"], ["updated_at", "2023-02-02 19:27:06.014537"], ["name", "Charlie Luettgen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janice Buckridge"], ["description", "At et saepe. Sed provident modi. Magnam suscipit culpa."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.020268"], ["updated_at", "2023-02-02 19:27:06.020268"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arden Wehner"], ["created_at", "2023-02-02 19:27:06.032830"], ["updated_at", "2023-02-02 19:27:06.032830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Omer Roberts"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.036161"], ["updated_at", "2023-02-02 19:27:06.036161"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.3ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:06.039238"], ["updated_at", "2023-02-02 19:27:06.039238"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.055175"], ["updated_at", "2023-02-02 19:27:06.055175"], ["name", "Debroah Ankunding"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carla Barrows I"], ["description", "Quis aut sit. Rerum adipisci numquam. Ipsam et molestiae."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.056689"], ["updated_at", "2023-02-02 19:27:06.056689"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Catrice Wyman"], ["created_at", "2023-02-02 19:27:06.059420"], ["updated_at", "2023-02-02 19:27:06.059420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Austin McClure"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.060526"], ["updated_at", "2023-02-02 19:27:06.060526"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:06.061847"], ["updated_at", "2023-02-02 19:27:06.061847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.064096"], ["updated_at", "2023-02-02 19:27:06.064096"], ["name", "Vivien Heller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Minh Halvorson"], ["description", "Consequuntur pariatur dolores. Occaecati et vel. Labore voluptas cupiditate."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.065370"], ["updated_at", "2023-02-02 19:27:06.065370"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garry Ferry"], ["created_at", "2023-02-02 19:27:06.067290"], ["updated_at", "2023-02-02 19:27:06.067290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Cheri Purdy"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.068024"], ["updated_at", "2023-02-02 19:27:06.068024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:06.068960"], ["updated_at", "2023-02-02 19:27:06.068960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.070748"], ["updated_at", "2023-02-02 19:27:06.070748"], ["name", "Joya MacGyver"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Calvin Jones"], ["description", "Voluptatum eaque incidunt. Vel necessitatibus ut. Veniam in sunt."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.071912"], ["updated_at", "2023-02-02 19:27:06.071912"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lenita Stoltenberg"], ["created_at", "2023-02-02 19:27:06.073951"], ["updated_at", "2023-02-02 19:27:06.073951"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Malcom Beer"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.074688"], ["updated_at", "2023-02-02 19:27:06.074688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:06.075678"], ["updated_at", "2023-02-02 19:27:06.075678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.085504"], ["updated_at", "2023-02-02 19:27:06.085504"], ["name", "Rep. Zelda Ferry"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emilio Wiza CPA"], ["description", "Laudantium adipisci rem. Occaecati nesciunt beatae. Excepturi eveniet iure."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.086974"], ["updated_at", "2023-02-02 19:27:06.086974"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:06.101193"], ["updated_at", "2023-02-02 19:27:06.101193"], ["name", "Florentina Cummings"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Guy Torp"], ["description", "Eum provident omnis. Qui laboriosam expedita. Ducimus facere optio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.103194"], ["updated_at", "2023-02-02 19:27:06.103194"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ashleigh D'Amore"], ["description", "Quia inventore harum. Quam qui iure. Est omnis et."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.118205"], ["updated_at", "2023-02-02 19:27:06.118205"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Markus Maggio"], ["created_at", "2023-02-02 19:27:06.119867"], ["updated_at", "2023-02-02 19:27:06.119867"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Grover Graham"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.121948"], ["updated_at", "2023-02-02 19:27:06.121948"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Merle Kertzmann"], ["description", "Fugit atque excepturi. Cupiditate reprehenderit eaque. Placeat repellendus incidunt."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.124464"], ["updated_at", "2023-02-02 19:27:06.124464"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacqui Gleason"], ["created_at", "2023-02-02 19:27:06.125630"], ["updated_at", "2023-02-02 19:27:06.125630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Nestor Fahey"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.126451"], ["updated_at", "2023-02-02 19:27:06.126451"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shelli Armstrong"], ["description", "Aut magni consectetur. Explicabo quos amet. Ipsam est deserunt."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.130197"], ["updated_at", "2023-02-02 19:27:06.130197"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arlie Metz"], ["created_at", "2023-02-02 19:27:06.131737"], ["updated_at", "2023-02-02 19:27:06.131737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Luana Christiansen"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.132601"], ["updated_at", "2023-02-02 19:27:06.132601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Noriko Ward IV"], ["description", "Mollitia voluptas aut. Vel explicabo officiis. Ipsa voluptas et."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.135283"], ["updated_at", "2023-02-02 19:27:06.135283"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Nereida Koss"], ["created_at", "2023-02-02 19:27:06.136770"], ["updated_at", "2023-02-02 19:27:06.136770"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Lloyd Carroll"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.138012"], ["updated_at", "2023-02-02 19:27:06.138012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Allen Howe LLD"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.139139"], ["updated_at", "2023-02-02 19:27:06.139139"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Krystin Heidenreich"], ["correct", 1], ["created_at", "2023-02-02 19:27:06.140280"], ["updated_at", "2023-02-02 19:27:06.140280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Katy Effertz"], ["correct", 1], ["created_at", "2023-02-02 19:27:06.141137"], ["updated_at", "2023-02-02 19:27:06.141137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Doloris Cummings"], ["description", "Rem qui eum. Rem nostrum et. Et aut voluptatem."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.148430"], ["updated_at", "2023-02-02 19:27:06.148430"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Hilda Wisozk"], ["created_at", "2023-02-02 19:27:06.150124"], ["updated_at", "2023-02-02 19:27:06.150124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Tasha Strosin"], ["description", "Quibusdam beatae eos. Porro et quia. Eveniet non deleniti."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.152727"], ["updated_at", "2023-02-02 19:27:06.152727"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Filomena Okuneva"], ["created_at", "2023-02-02 19:27:06.154405"], ["updated_at", "2023-02-02 19:27:06.154405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janessa Ryan"], ["description", "Dolor minima corporis. Ullam illum itaque. Totam quo quos."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.159128"], ["updated_at", "2023-02-02 19:27:06.159128"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Retha Kohler"], ["created_at", "2023-02-02 19:27:06.160535"], ["updated_at", "2023-02-02 19:27:06.160535"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jerlene Hoppe CPA"], ["correct", 1], ["created_at", "2023-02-02 19:27:06.161406"], ["updated_at", "2023-02-02 19:27:06.161406"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Evie Bruen"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.162183"], ["updated_at", "2023-02-02 19:27:06.162183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Quinton Nader"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.162904"], ["updated_at", "2023-02-02 19:27:06.162904"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Samuel Morissette"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.163661"], ["updated_at", "2023-02-02 19:27:06.163661"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Melodee Rau"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.164373"], ["updated_at", "2023-02-02 19:27:06.164373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joannie Zieme"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.165208"], ["updated_at", "2023-02-02 19:27:06.165208"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mitsue Stamm"], ["correct", 0], ["created_at", "2023-02-02 19:27:06.166177"], ["updated_at", "2023-02-02 19:27:06.166177"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Leighann Ritchie"], ["description", "Quae quaerat aut. Odit laboriosam consequatur. Iste rerum autem."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.178146"], ["updated_at", "2023-02-02 19:27:06.178146"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Florene Ratke DC"], ["description", "Voluptas et vel. Voluptatibus provident eum. Fugit qui repellendus."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.181342"], ["updated_at", "2023-02-02 19:27:06.181342"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms)[0m INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Susanne Swaniawski"], ["description", "Corporis dolor soluta. Modi ullam laborum. Exercitationem ad ipsa."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.186301"], ["updated_at", "2023-02-02 19:27:06.186301"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dwain Brown"], ["created_at", "2023-02-02 19:27:06.187631"], ["updated_at", "2023-02-02 19:27:06.187631"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rita Bartoletti"], ["created_at", "2023-02-02 19:27:06.189091"], ["updated_at", "2023-02-02 19:27:06.189091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lyle Ruecker"], ["created_at", "2023-02-02 19:27:06.190304"], ["updated_at", "2023-02-02 19:27:06.190304"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jose Ferry"], ["created_at", "2023-02-02 19:27:06.191124"], ["updated_at", "2023-02-02 19:27:06.191124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dayle Rodriguez LLD"], ["created_at", "2023-02-02 19:27:06.191900"], ["updated_at", "2023-02-02 19:27:06.191900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:27:06.193612"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Emanuel Cremin"], ["description", "Ad quia molestiae. Saepe nisi illum. Ducimus quos et."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.199979"], ["updated_at", "2023-02-02 19:27:06.199979"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cherise Haag"], ["description", "Quisquam sunt ipsa. Sunt itaque dolor. Ut non saepe."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.202050"], ["updated_at", "2023-02-02 19:27:06.202050"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Corina Goodwin"], ["created_at", "2023-02-02 19:27:06.203692"], ["updated_at", "2023-02-02 19:27:06.203692"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lester Murphy DVM"], ["created_at", "2023-02-02 19:27:06.206420"], ["updated_at", "2023-02-02 19:27:06.206420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lionel Nolan DDS"], ["created_at", "2023-02-02 19:27:06.207591"], ["updated_at", "2023-02-02 19:27:06.207591"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kory Von"], ["created_at", "2023-02-02 19:27:06.208325"], ["updated_at", "2023-02-02 19:27:06.208325"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mitchel Pfeffer V"], ["created_at", "2023-02-02 19:27:06.209046"], ["updated_at", "2023-02-02 19:27:06.209046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chanda Cormier"], ["created_at", "2023-02-02 19:27:06.209735"], ["updated_at", "2023-02-02 19:27:06.209735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emmaline Kirlin"], ["description", "Repellendus quas aut. Dolor eum modi. Voluptatem quia consequatur."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:06.212153"], ["updated_at", "2023-02-02 19:27:06.212153"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.2ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.056113"], ["updated_at", "2023-02-02 19:27:21.056113"], ["name", "Argelia Stanton IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tona Wolf DC"], ["description", "Molestiae quisquam officia. Reprehenderit enim eligendi. Ab id placeat."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.061283"], ["updated_at", "2023-02-02 19:27:21.061283"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Johnnie Kub"], ["created_at", "2023-02-02 19:27:21.074263"], ["updated_at", "2023-02-02 19:27:21.074263"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fletcher Langosh"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.077398"], ["updated_at", "2023-02-02 19:27:21.077398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:21.080512"], ["updated_at", "2023-02-02 19:27:21.080512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.096329"], ["updated_at", "2023-02-02 19:27:21.096329"], ["name", "The Hon. Randy Douglas"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Arden Osinski"], ["description", "Quia aut ratione. Optio aut eius. Qui aspernatur rem."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.097829"], ["updated_at", "2023-02-02 19:27:21.097829"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garland Glover"], ["created_at", "2023-02-02 19:27:21.099917"], ["updated_at", "2023-02-02 19:27:21.099917"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Benny Littel II"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.100678"], ["updated_at", "2023-02-02 19:27:21.100678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:21.101667"], ["updated_at", "2023-02-02 19:27:21.101667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.103681"], ["updated_at", "2023-02-02 19:27:21.103681"], ["name", "Lucas Skiles"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Leigh Durgan"], ["description", "Consectetur explicabo molestiae. Animi similique omnis. Quia illum sunt."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.105039"], ["updated_at", "2023-02-02 19:27:21.105039"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lonnie Sporer"], ["created_at", "2023-02-02 19:27:21.107513"], ["updated_at", "2023-02-02 19:27:21.107513"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alfred Nader"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.108388"], ["updated_at", "2023-02-02 19:27:21.108388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:21.109486"], ["updated_at", "2023-02-02 19:27:21.109486"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.112143"], ["updated_at", "2023-02-02 19:27:21.112143"], ["name", "Clora Torphy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joye Treutel"], ["description", "Ut quod quasi. Harum molestias earum. A aliquid optio."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.113645"], ["updated_at", "2023-02-02 19:27:21.113645"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alexis Ritchie"], ["created_at", "2023-02-02 19:27:21.116082"], ["updated_at", "2023-02-02 19:27:21.116082"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rogelio McClure"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.116886"], ["updated_at", "2023-02-02 19:27:21.116886"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:21.118274"], ["updated_at", "2023-02-02 19:27:21.118274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.129009"], ["updated_at", "2023-02-02 19:27:21.129009"], ["name", "Renaldo Welch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Liz Gorczany"], ["description", "Ut quas modi. Rerum quos maiores. Aut hic consequuntur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.130666"], ["updated_at", "2023-02-02 19:27:21.130666"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:21.141397"], ["updated_at", "2023-02-02 19:27:21.141397"], ["name", "Guy Prohaska"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lurlene Weber"], ["description", "Voluptas nihil et. Eligendi non consequatur. Dolor aut aperiam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.143601"], ["updated_at", "2023-02-02 19:27:21.143601"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clint Casper"], ["description", "Similique nihil sint. Aut aut omnis. Quam placeat debitis."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.158250"], ["updated_at", "2023-02-02 19:27:21.158250"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Demetrius Schmitt"], ["created_at", "2023-02-02 19:27:21.160185"], ["updated_at", "2023-02-02 19:27:21.160185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.7ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rolando Hauck"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.161437"], ["updated_at", "2023-02-02 19:27:21.161437"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Art Barrows JD"], ["description", "Quisquam ab velit. Similique quibusdam ad. Unde est voluptatem."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.165970"], ["updated_at", "2023-02-02 19:27:21.165970"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Hugh Marks"], ["created_at", "2023-02-02 19:27:21.167433"], ["updated_at", "2023-02-02 19:27:21.167433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Melvina Schumm"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.168362"], ["updated_at", "2023-02-02 19:27:21.168362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cedrick Kub MD"], ["description", "Cumque sit exercitationem. Quia ut culpa. Quia qui unde."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.174226"], ["updated_at", "2023-02-02 19:27:21.174226"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lasandra Carter II"], ["created_at", "2023-02-02 19:27:21.176289"], ["updated_at", "2023-02-02 19:27:21.176289"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ahmed Denesik"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.178085"], ["updated_at", "2023-02-02 19:27:21.178085"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gonzalo Deckow"], ["description", "Maiores minima tempora. Est et quae. Explicabo eaque laudantium."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.181276"], ["updated_at", "2023-02-02 19:27:21.181276"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amal Hauck"], ["created_at", "2023-02-02 19:27:21.184900"], ["updated_at", "2023-02-02 19:27:21.184900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joelle Schiller"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.186526"], ["updated_at", "2023-02-02 19:27:21.186526"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fritz Bradtke"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.187471"], ["updated_at", "2023-02-02 19:27:21.187471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Eldora Pouros"], ["correct", 1], ["created_at", "2023-02-02 19:27:21.188205"], ["updated_at", "2023-02-02 19:27:21.188205"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Dorris Fadel"], ["correct", 1], ["created_at", "2023-02-02 19:27:21.189069"], ["updated_at", "2023-02-02 19:27:21.189069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Jeni Reynolds"], ["description", "Vel ducimus mollitia. Illo velit reiciendis. Nisi quos est."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.196096"], ["updated_at", "2023-02-02 19:27:21.196096"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sheila Turcotte"], ["created_at", "2023-02-02 19:27:21.197264"], ["updated_at", "2023-02-02 19:27:21.197264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Calvin Robel"], ["description", "At eligendi blanditiis. Nihil qui velit. Odit quam magnam."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.198994"], ["updated_at", "2023-02-02 19:27:21.198994"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cicely Greenholt"], ["created_at", "2023-02-02 19:27:21.199972"], ["updated_at", "2023-02-02 19:27:21.199972"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marco Morar"], ["description", "Laboriosam et accusamus. Et similique laudantium. Cum saepe perferendis."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.203992"], ["updated_at", "2023-02-02 19:27:21.203992"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Herbert Mayert DC"], ["created_at", "2023-02-02 19:27:21.205686"], ["updated_at", "2023-02-02 19:27:21.205686"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Nilsa Heidenreich"], ["correct", 1], ["created_at", "2023-02-02 19:27:21.206879"], ["updated_at", "2023-02-02 19:27:21.206879"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Christina Lehner"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.207928"], ["updated_at", "2023-02-02 19:27:21.207928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jodee Hamill"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.208960"], ["updated_at", "2023-02-02 19:27:21.208960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lynn Reynolds PhD"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.209728"], ["updated_at", "2023-02-02 19:27:21.209728"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Dee Abernathy"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.210460"], ["updated_at", "2023-02-02 19:27:21.210460"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Everette Hessel"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.211180"], ["updated_at", "2023-02-02 19:27:21.211180"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marvella Streich"], ["correct", 0], ["created_at", "2023-02-02 19:27:21.211869"], ["updated_at", "2023-02-02 19:27:21.211869"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.1ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (3.4ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.9ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shanelle Bergnaum DDS"], ["description", "Quo sed labore. Iste eum labore. Est earum voluptates."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.229299"], ["updated_at", "2023-02-02 19:27:21.229299"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Otha Bailey"], ["description", "Assumenda in fugiat. Quo iusto soluta. Temporibus illum nihil."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.232860"], ["updated_at", "2023-02-02 19:27:21.232860"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jacquelin Ritchie"], ["description", "Sed sapiente vitae. Sed aliquid et. Sit rem iusto."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.236790"], ["updated_at", "2023-02-02 19:27:21.236790"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Thea Bailey"], ["created_at", "2023-02-02 19:27:21.237584"], ["updated_at", "2023-02-02 19:27:21.237584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marguerite Satterfield"], ["created_at", "2023-02-02 19:27:21.238671"], ["updated_at", "2023-02-02 19:27:21.238671"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Grover Gutkowski"], ["created_at", "2023-02-02 19:27:21.239930"], ["updated_at", "2023-02-02 19:27:21.239930"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gilberto Pollich IV"], ["created_at", "2023-02-02 19:27:21.241120"], ["updated_at", "2023-02-02 19:27:21.241120"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Randell Stroman"], ["created_at", "2023-02-02 19:27:21.242371"], ["updated_at", "2023-02-02 19:27:21.242371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:27:21.244703"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zachary Mertz"], ["description", "Est aspernatur dignissimos. Ea provident non. Quidem modi totam."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.250968"], ["updated_at", "2023-02-02 19:27:21.250968"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leanna Kub DC"], ["description", "Impedit vitae sed. Ipsam aspernatur iste. Corrupti aliquid nisi."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.252620"], ["updated_at", "2023-02-02 19:27:21.252620"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Paul Prohaska DVM"], ["created_at", "2023-02-02 19:27:21.253503"], ["updated_at", "2023-02-02 19:27:21.253503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sharlene Torphy"], ["created_at", "2023-02-02 19:27:21.254232"], ["updated_at", "2023-02-02 19:27:21.254232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shameka Schimmel"], ["created_at", "2023-02-02 19:27:21.254934"], ["updated_at", "2023-02-02 19:27:21.254934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nena Nikolaus"], ["created_at", "2023-02-02 19:27:21.255683"], ["updated_at", "2023-02-02 19:27:21.255683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Lonnie Rempel"], ["created_at", "2023-02-02 19:27:21.256581"], ["updated_at", "2023-02-02 19:27:21.256581"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dewayne Dibbert"], ["created_at", "2023-02-02 19:27:21.257728"], ["updated_at", "2023-02-02 19:27:21.257728"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Annelle Weber"], ["description", "Quaerat est ipsa. Perferendis animi aut. Minima fugiat unde."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:21.260923"], ["updated_at", "2023-02-02 19:27:21.260923"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.557567"], ["updated_at", "2023-02-02 19:27:40.557567"], ["name", "Brock Erdman II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Lucy Krajcik"], ["description", "Qui deserunt ea. Veritatis quo qui. Dolorem culpa iste."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.562946"], ["updated_at", "2023-02-02 19:27:40.562946"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Ellsworth Auer"], ["created_at", "2023-02-02 19:27:40.575456"], ["updated_at", "2023-02-02 19:27:40.575456"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Myrtle Gutmann DC"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.578470"], ["updated_at", "2023-02-02 19:27:40.578470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:40.581489"], ["updated_at", "2023-02-02 19:27:40.581489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.597244"], ["updated_at", "2023-02-02 19:27:40.597244"], ["name", "Ivy Jerde"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vernon Herman"], ["description", "Ut alias ab. Aliquam laudantium modi. Possimus natus est."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.598759"], ["updated_at", "2023-02-02 19:27:40.598759"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jae Casper"], ["created_at", "2023-02-02 19:27:40.601946"], ["updated_at", "2023-02-02 19:27:40.601946"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Ferdinand Glover"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.603172"], ["updated_at", "2023-02-02 19:27:40.603172"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:40.605135"], ["updated_at", "2023-02-02 19:27:40.605135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.607894"], ["updated_at", "2023-02-02 19:27:40.607894"], ["name", "Carleen Rau"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Cristie Pfannerstill"], ["description", "Numquam eum libero. Accusamus est reiciendis. Tenetur distinctio magnam."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.609633"], ["updated_at", "2023-02-02 19:27:40.609633"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dara Wiegand"], ["created_at", "2023-02-02 19:27:40.612732"], ["updated_at", "2023-02-02 19:27:40.612732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Donette Langworth DC"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.613953"], ["updated_at", "2023-02-02 19:27:40.613953"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:40.615222"], ["updated_at", "2023-02-02 19:27:40.615222"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.617738"], ["updated_at", "2023-02-02 19:27:40.617738"], ["name", "Antonia Lindgren"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rory Schumm"], ["description", "Ab occaecati vitae. Asperiores odit minus. Consectetur sit voluptas."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.619436"], ["updated_at", "2023-02-02 19:27:40.619436"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kaley Morar"], ["created_at", "2023-02-02 19:27:40.623009"], ["updated_at", "2023-02-02 19:27:40.623009"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mel Armstrong"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.624611"], ["updated_at", "2023-02-02 19:27:40.624611"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:27:40.626483"], ["updated_at", "2023-02-02 19:27:40.626483"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.641465"], ["updated_at", "2023-02-02 19:27:40.641465"], ["name", "Bette Huels"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Raisa Nolan"], ["description", "Eum est dolore. Molestias atque quia. Omnis blanditiis qui."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.643697"], ["updated_at", "2023-02-02 19:27:40.643697"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:27:40.658247"], ["updated_at", "2023-02-02 19:27:40.658247"], ["name", "Gertude Cassin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leonardo Schmidt Esq."], ["description", "Iste repellendus quasi. Sit rerum est. Amet cum facere."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.661909"], ["updated_at", "2023-02-02 19:27:40.661909"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.5ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brooks Mueller"], ["description", "Accusamus sed eum. Velit dicta qui. Consequuntur enim inventore."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.680818"], ["updated_at", "2023-02-02 19:27:40.680818"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jorge Williamson"], ["created_at", "2023-02-02 19:27:40.682382"], ["updated_at", "2023-02-02 19:27:40.682382"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Adelle Hartmann"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.683380"], ["updated_at", "2023-02-02 19:27:40.683380"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elden Tillman Sr."], ["description", "Eaque sint autem. Non ad animi. Repellat aut et."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.685848"], ["updated_at", "2023-02-02 19:27:40.685848"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Frank Hauck"], ["created_at", "2023-02-02 19:27:40.688501"], ["updated_at", "2023-02-02 19:27:40.688501"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Andres Trantow"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.690029"], ["updated_at", "2023-02-02 19:27:40.690029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hosea Hammes"], ["description", "Consequatur non ut. Voluptatem architecto nobis. Nihil aut iste."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.695006"], ["updated_at", "2023-02-02 19:27:40.695006"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacquelynn Hagenes MD"], ["created_at", "2023-02-02 19:27:40.696598"], ["updated_at", "2023-02-02 19:27:40.696598"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pat Kling"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.698728"], ["updated_at", "2023-02-02 19:27:40.698728"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Earle Howe"], ["description", "Quia enim ipsam. Id dolor fugiat. Qui consequatur et."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.702586"], ["updated_at", "2023-02-02 19:27:40.702586"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kacie DuBuque V"], ["created_at", "2023-02-02 19:27:40.704329"], ["updated_at", "2023-02-02 19:27:40.704329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ahmad Hamill CPA"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.705912"], ["updated_at", "2023-02-02 19:27:40.705912"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Emilie Halvorson"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.709533"], ["updated_at", "2023-02-02 19:27:40.709533"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Buena Stoltenberg"], ["correct", 1], ["created_at", "2023-02-02 19:27:40.712026"], ["updated_at", "2023-02-02 19:27:40.712026"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Alverta Feil"], ["correct", 1], ["created_at", "2023-02-02 19:27:40.713790"], ["updated_at", "2023-02-02 19:27:40.713790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edwardo Klein JD"], ["description", "Ducimus voluptatem quasi. Mollitia quaerat praesentium. Omnis possimus qui."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.722432"], ["updated_at", "2023-02-02 19:27:40.722432"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lane Batz"], ["created_at", "2023-02-02 19:27:40.724536"], ["updated_at", "2023-02-02 19:27:40.724536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amal Schoen Sr."], ["description", "Quas blanditiis recusandae. At eos mollitia. Soluta odit molestias."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.727278"], ["updated_at", "2023-02-02 19:27:40.727278"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roy Hilpert"], ["created_at", "2023-02-02 19:27:40.728900"], ["updated_at", "2023-02-02 19:27:40.728900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zelma Mayert"], ["description", "Optio laborum cumque. Aut consequuntur et. Consequatur at pariatur."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.734144"], ["updated_at", "2023-02-02 19:27:40.734144"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tyrone Heller"], ["created_at", "2023-02-02 19:27:40.735619"], ["updated_at", "2023-02-02 19:27:40.735619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Nancee Kuhn JD"], ["correct", 1], ["created_at", "2023-02-02 19:27:40.736571"], ["updated_at", "2023-02-02 19:27:40.736571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Leonie O'Hara"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.737390"], ["updated_at", "2023-02-02 19:27:40.737390"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tina Bayer Esq."], ["correct", 0], ["created_at", "2023-02-02 19:27:40.739317"], ["updated_at", "2023-02-02 19:27:40.739317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ilene Champlin"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.741703"], ["updated_at", "2023-02-02 19:27:40.741703"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Samira Beahan"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.743259"], ["updated_at", "2023-02-02 19:27:40.743259"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Harrison Ondricka"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.744731"], ["updated_at", "2023-02-02 19:27:40.744731"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jacki Herman"], ["correct", 0], ["created_at", "2023-02-02 19:27:40.745745"], ["updated_at", "2023-02-02 19:27:40.745745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.3ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Christy Schiller"], ["description", "Ut illum fugit. Error vitae incidunt. Officia suscipit ipsa."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.758097"], ["updated_at", "2023-02-02 19:27:40.758097"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yuriko Spencer"], ["description", "Provident omnis quos. Fugit laudantium odio. Maxime quo ex."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.760506"], ["updated_at", "2023-02-02 19:27:40.760506"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Roman Mitchell"], ["description", "Quibusdam unde minima. Et modi non. Doloribus unde ab."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.763700"], ["updated_at", "2023-02-02 19:27:40.763700"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melba Huels"], ["created_at", "2023-02-02 19:27:40.764272"], ["updated_at", "2023-02-02 19:27:40.764272"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Boyd Jones"], ["created_at", "2023-02-02 19:27:40.765011"], ["updated_at", "2023-02-02 19:27:40.765011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Clair Windler LLD"], ["created_at", "2023-02-02 19:27:40.765740"], ["updated_at", "2023-02-02 19:27:40.765740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Isaiah Hegmann"], ["created_at", "2023-02-02 19:27:40.766415"], ["updated_at", "2023-02-02 19:27:40.766415"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Merlin Swift"], ["created_at", "2023-02-02 19:27:40.767125"], ["updated_at", "2023-02-02 19:27:40.767125"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:27:40.768519"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deanne Wilderman"], ["description", "Sint nisi ut. Blanditiis sed quo. Ratione repudiandae laboriosam."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.773806"], ["updated_at", "2023-02-02 19:27:40.773806"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roger Balistreri"], ["description", "Tenetur fugit ducimus. Tempora quo esse. Magni dolor temporibus."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.776258"], ["updated_at", "2023-02-02 19:27:40.776258"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wes Altenwerth V"], ["created_at", "2023-02-02 19:27:40.778500"], ["updated_at", "2023-02-02 19:27:40.778500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elenore Hermiston"], ["created_at", "2023-02-02 19:27:40.779539"], ["updated_at", "2023-02-02 19:27:40.779539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Abel Towne"], ["created_at", "2023-02-02 19:27:40.780413"], ["updated_at", "2023-02-02 19:27:40.780413"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Fred Klocko"], ["created_at", "2023-02-02 19:27:40.781163"], ["updated_at", "2023-02-02 19:27:40.781163"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hayley Klocko"], ["created_at", "2023-02-02 19:27:40.781856"], ["updated_at", "2023-02-02 19:27:40.781856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Karol Mante"], ["created_at", "2023-02-02 19:27:40.782556"], ["updated_at", "2023-02-02 19:27:40.782556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Hugh Lehner"], ["description", "Vel qui exercitationem. Qui quo est. Velit omnis itaque."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:27:40.785039"], ["updated_at", "2023-02-02 19:27:40.785039"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:43.952383"], ["updated_at", "2023-02-02 19:29:43.952383"], ["name", "Laurice Corkery Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Krysta Wunsch"], ["description", "Et aut sint. Ipsum quia laboriosam. Minima rerum quo."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:43.957963"], ["updated_at", "2023-02-02 19:29:43.957963"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "John Nicolas"], ["created_at", "2023-02-02 19:29:43.974285"], ["updated_at", "2023-02-02 19:29:43.974285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nella Murazik"], ["correct", 0], ["created_at", "2023-02-02 19:29:43.977371"], ["updated_at", "2023-02-02 19:29:43.977371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:29:43.980362"], ["updated_at", "2023-02-02 19:29:43.980362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:43.996531"], ["updated_at", "2023-02-02 19:29:43.996531"], ["name", "Elvis Nader"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lenard Lubowitz"], ["description", "Et exercitationem commodi. Ut sit autem. Quidem vel harum."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:43.997933"], ["updated_at", "2023-02-02 19:29:43.997933"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Christopher Heathcote LLD"], ["created_at", "2023-02-02 19:29:44.000032"], ["updated_at", "2023-02-02 19:29:44.000032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Cody Will"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.000822"], ["updated_at", "2023-02-02 19:29:44.000822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:29:44.001792"], ["updated_at", "2023-02-02 19:29:44.001792"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:44.004065"], ["updated_at", "2023-02-02 19:29:44.004065"], ["name", "Jasmin Bednar"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dillon Yundt MD"], ["description", "Aut possimus ut. Omnis at aut. Odio omnis impedit."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.005778"], ["updated_at", "2023-02-02 19:29:44.005778"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Hwa Pfeffer"], ["created_at", "2023-02-02 19:29:44.007942"], ["updated_at", "2023-02-02 19:29:44.007942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Madalyn Terry"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.008664"], ["updated_at", "2023-02-02 19:29:44.008664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:29:44.009624"], ["updated_at", "2023-02-02 19:29:44.009624"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:44.011510"], ["updated_at", "2023-02-02 19:29:44.011510"], ["name", "Mahalia Balistreri"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Keith Gutmann"], ["description", "Vero est enim. Porro voluptas voluptatem. Ratione aut assumenda."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.012676"], ["updated_at", "2023-02-02 19:29:44.012676"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rene Kohler"], ["created_at", "2023-02-02 19:29:44.014476"], ["updated_at", "2023-02-02 19:29:44.014476"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Norberto Corwin"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.015295"], ["updated_at", "2023-02-02 19:29:44.015295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:29:44.016425"], ["updated_at", "2023-02-02 19:29:44.016425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:44.026298"], ["updated_at", "2023-02-02 19:29:44.026298"], ["name", "Amelia Thompson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chuck Weber V"], ["description", "Ut nostrum tenetur. Enim et et. Aut ducimus molestiae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.027744"], ["updated_at", "2023-02-02 19:29:44.027744"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:29:44.040031"], ["updated_at", "2023-02-02 19:29:44.040031"], ["name", "Shane Cummerata"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jerold Kovacek"], ["description", "Eius sunt laborum. Soluta dolores aut. Expedita non iusto."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.041898"], ["updated_at", "2023-02-02 19:29:44.041898"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.7ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.8ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (1.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Carlton Stehr"], ["description", "Et nam laborum. Cupiditate animi porro. Neque deleniti minus."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.062247"], ["updated_at", "2023-02-02 19:29:44.062247"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Tyron Runte"], ["created_at", "2023-02-02 19:29:44.063508"], ["updated_at", "2023-02-02 19:29:44.063508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sanford Medhurst"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.064311"], ["updated_at", "2023-02-02 19:29:44.064311"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rueben Kiehn CPA"], ["description", "Et debitis consequatur. Impedit harum architecto. Cupiditate voluptatem ipsam."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.066598"], ["updated_at", "2023-02-02 19:29:44.066598"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Paulene McDermott"], ["created_at", "2023-02-02 19:29:44.068143"], ["updated_at", "2023-02-02 19:29:44.068143"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Judie Hane"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.069116"], ["updated_at", "2023-02-02 19:29:44.069116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.5ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lavina Swaniawski"], ["description", "Molestiae enim dolorem. Officiis quae doloribus. Provident qui debitis."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.074181"], ["updated_at", "2023-02-02 19:29:44.074181"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Brendon Heaney"], ["created_at", "2023-02-02 19:29:44.075685"], ["updated_at", "2023-02-02 19:29:44.075685"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nilda Mosciski"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.076785"], ["updated_at", "2023-02-02 19:29:44.076785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stephanie Marvin"], ["description", "Et voluptate vel. Sed eligendi qui. Sed eos consequatur."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.079895"], ["updated_at", "2023-02-02 19:29:44.079895"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jenee Fritsch"], ["created_at", "2023-02-02 19:29:44.081532"], ["updated_at", "2023-02-02 19:29:44.081532"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tobie Gislason DO"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.082453"], ["updated_at", "2023-02-02 19:29:44.082453"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brad Reichert"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.083269"], ["updated_at", "2023-02-02 19:29:44.083269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ms. Cleo Stanton"], ["correct", 1], ["created_at", "2023-02-02 19:29:44.084060"], ["updated_at", "2023-02-02 19:29:44.084060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Refugia Ernser"], ["correct", 1], ["created_at", "2023-02-02 19:29:44.084839"], ["updated_at", "2023-02-02 19:29:44.084839"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leisa O'Kon"], ["description", "Maiores sit eaque. Quis delectus minus. Quia voluptatum pariatur."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.092771"], ["updated_at", "2023-02-02 19:29:44.092771"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shaunte Conn"], ["created_at", "2023-02-02 19:29:44.093998"], ["updated_at", "2023-02-02 19:29:44.093998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cyndi Schulist"], ["description", "Iste repellendus repellat. Natus ut quia. Aut cupiditate est."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.095951"], ["updated_at", "2023-02-02 19:29:44.095951"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Serafina Heidenreich"], ["created_at", "2023-02-02 19:29:44.097472"], ["updated_at", "2023-02-02 19:29:44.097472"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chin Strosin"], ["description", "Doloremque officia et. Quibusdam expedita est. Quia necessitatibus voluptatem."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.101491"], ["updated_at", "2023-02-02 19:29:44.101491"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kurtis Gorczany"], ["created_at", "2023-02-02 19:29:44.103522"], ["updated_at", "2023-02-02 19:29:44.103522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Genie Klein"], ["correct", 1], ["created_at", "2023-02-02 19:29:44.104947"], ["updated_at", "2023-02-02 19:29:44.104947"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Randolph Kerluke"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.106381"], ["updated_at", "2023-02-02 19:29:44.106381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Claire Murray"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.107490"], ["updated_at", "2023-02-02 19:29:44.107490"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Wilford Stroman II"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.108422"], ["updated_at", "2023-02-02 19:29:44.108422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dino Moore V"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.109266"], ["updated_at", "2023-02-02 19:29:44.109266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kandis Boyle"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.110070"], ["updated_at", "2023-02-02 19:29:44.110070"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joy VonRueden"], ["correct", 0], ["created_at", "2023-02-02 19:29:44.110867"], ["updated_at", "2023-02-02 19:29:44.110867"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jamie Bechtelar"], ["description", "Cumque consequatur ipsum. Illum est aut. Aut doloremque necessitatibus."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.123606"], ["updated_at", "2023-02-02 19:29:44.123606"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corey Willms"], ["description", "Voluptatem voluptas similique. Atque aperiam odio. Aliquid sint et."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.127597"], ["updated_at", "2023-02-02 19:29:44.127597"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Catherina Hand"], ["description", "Voluptas molestiae voluptates. Ut nostrum voluptatem. Repudiandae fugit alias."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.131739"], ["updated_at", "2023-02-02 19:29:44.131739"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sade Conn"], ["created_at", "2023-02-02 19:29:44.132637"], ["updated_at", "2023-02-02 19:29:44.132637"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Chang Lang"], ["created_at", "2023-02-02 19:29:44.134096"], ["updated_at", "2023-02-02 19:29:44.134096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sung Zboncak"], ["created_at", "2023-02-02 19:29:44.135477"], ["updated_at", "2023-02-02 19:29:44.135477"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stephania Kreiger"], ["created_at", "2023-02-02 19:29:44.138699"], ["updated_at", "2023-02-02 19:29:44.138699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lovetta O'Hara"], ["created_at", "2023-02-02 19:29:44.140543"], ["updated_at", "2023-02-02 19:29:44.140543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:29:44.143397"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.2ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julian Bechtelar"], ["description", "Quibusdam eaque voluptatem. Aut sed sapiente. Et eos nobis."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.149869"], ["updated_at", "2023-02-02 19:29:44.149869"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cristen Schamberger"], ["description", "Enim fuga quam. Distinctio aut inventore. Atque reprehenderit ut."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.152151"], ["updated_at", "2023-02-02 19:29:44.152151"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hank Wintheiser"], ["created_at", "2023-02-02 19:29:44.153855"], ["updated_at", "2023-02-02 19:29:44.153855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ernie Lebsack"], ["created_at", "2023-02-02 19:29:44.156779"], ["updated_at", "2023-02-02 19:29:44.156779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bobbie Medhurst"], ["created_at", "2023-02-02 19:29:44.158449"], ["updated_at", "2023-02-02 19:29:44.158449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mack Torp"], ["created_at", "2023-02-02 19:29:44.160312"], ["updated_at", "2023-02-02 19:29:44.160312"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Austin Macejkovic"], ["created_at", "2023-02-02 19:29:44.161695"], ["updated_at", "2023-02-02 19:29:44.161695"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chasidy Gerhold IV"], ["created_at", "2023-02-02 19:29:44.162722"], ["updated_at", "2023-02-02 19:29:44.162722"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Clay Zieme"], ["description", "Ratione provident repudiandae. Libero aut ea. Qui recusandae odio."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.166862"], ["updated_at", "2023-02-02 19:29:44.166862"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bo Buckridge"], ["description", "Provident qui eos. Consequuntur a et. Consequatur labore ut."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:29:44.173361"], ["updated_at", "2023-02-02 19:29:44.173361"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.002257"], ["updated_at", "2023-02-02 19:30:22.002257"], ["name", "Madeleine Crooks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Deanna Brown"], ["description", "Occaecati corrupti explicabo. Ad enim saepe. Et aut et."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.007697"], ["updated_at", "2023-02-02 19:30:22.007697"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jerold Runte"], ["created_at", "2023-02-02 19:30:22.020251"], ["updated_at", "2023-02-02 19:30:22.020251"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Berneice Bernhard"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.023285"], ["updated_at", "2023-02-02 19:30:22.023285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:22.026297"], ["updated_at", "2023-02-02 19:30:22.026297"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.041910"], ["updated_at", "2023-02-02 19:30:22.041910"], ["name", "Peter Stanton"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Niki Schaden"], ["description", "Architecto id aspernatur. Repellat aut et. Est est non."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.043423"], ["updated_at", "2023-02-02 19:30:22.043423"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Cordell Pagac"], ["created_at", "2023-02-02 19:30:22.046381"], ["updated_at", "2023-02-02 19:30:22.046381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Andrea Parisian"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.047328"], ["updated_at", "2023-02-02 19:30:22.047328"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:22.048438"], ["updated_at", "2023-02-02 19:30:22.048438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.050745"], ["updated_at", "2023-02-02 19:30:22.050745"], ["name", "Cornelius Graham MD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Bryce Sanford"], ["description", "Nihil dolores provident. Sit est dolores. Dolore quia laboriosam."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.052116"], ["updated_at", "2023-02-02 19:30:22.052116"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Margarito Rowe"], ["created_at", "2023-02-02 19:30:22.054126"], ["updated_at", "2023-02-02 19:30:22.054126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Wendell Grimes"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.054852"], ["updated_at", "2023-02-02 19:30:22.054852"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:22.055825"], ["updated_at", "2023-02-02 19:30:22.055825"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.057740"], ["updated_at", "2023-02-02 19:30:22.057740"], ["name", "Haydee Bradtke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Hugo McClure"], ["description", "Ad nam consequatur. Magnam quae sed. Iste cupiditate incidunt."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.059068"], ["updated_at", "2023-02-02 19:30:22.059068"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kiyoko Stark VM"], ["created_at", "2023-02-02 19:30:22.061118"], ["updated_at", "2023-02-02 19:30:22.061118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Florentina Turner"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.061848"], ["updated_at", "2023-02-02 19:30:22.061848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:22.062829"], ["updated_at", "2023-02-02 19:30:22.062829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (4.1ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.077416"], ["updated_at", "2023-02-02 19:30:22.077416"], ["name", "Yang Daniel PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Augustine Lesch Sr."], ["description", "Incidunt quisquam temporibus. Odio autem necessitatibus. Veritatis ullam vitae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.080488"], ["updated_at", "2023-02-02 19:30:22.080488"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:22.094021"], ["updated_at", "2023-02-02 19:30:22.094021"], ["name", "Jordon Russel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maximo Ullrich"], ["description", "Similique sed nemo. Autem praesentium eveniet. Accusamus alias dicta."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.095424"], ["updated_at", "2023-02-02 19:30:22.095424"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.6ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terry Reilly"], ["description", "Est assumenda alias. Minus officia quam. Distinctio ad sed."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.112870"], ["updated_at", "2023-02-02 19:30:22.112870"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Lauretta Kassulke"], ["created_at", "2023-02-02 19:30:22.114049"], ["updated_at", "2023-02-02 19:30:22.114049"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Latarsha Grant JD"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.114882"], ["updated_at", "2023-02-02 19:30:22.114882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Malia Mann"], ["description", "Quos suscipit voluptatibus. Est ullam ipsum. Corporis rerum aspernatur."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.117007"], ["updated_at", "2023-02-02 19:30:22.117007"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Martine Rice"], ["created_at", "2023-02-02 19:30:22.119332"], ["updated_at", "2023-02-02 19:30:22.119332"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Roderick Gerlach"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.120860"], ["updated_at", "2023-02-02 19:30:22.120860"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nieves Harvey"], ["description", "Vel et harum. Voluptas cum quod. Non pariatur autem."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.124693"], ["updated_at", "2023-02-02 19:30:22.124693"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Florencio Morissette"], ["created_at", "2023-02-02 19:30:22.125868"], ["updated_at", "2023-02-02 19:30:22.125868"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Melvin Kunde"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.127014"], ["updated_at", "2023-02-02 19:30:22.127014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.9ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ariel Rowe"], ["description", "Nam facere nihil. Veritatis sit sapiente. Et corrupti vitae."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.132793"], ["updated_at", "2023-02-02 19:30:22.132793"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. William Haag"], ["created_at", "2023-02-02 19:30:22.134212"], ["updated_at", "2023-02-02 19:30:22.134212"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alton Lang"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.135127"], ["updated_at", "2023-02-02 19:30:22.135127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Leonel Goodwin IV"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.136564"], ["updated_at", "2023-02-02 19:30:22.136564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Carmelo Swaniawski II"], ["correct", 1], ["created_at", "2023-02-02 19:30:22.137742"], ["updated_at", "2023-02-02 19:30:22.137742"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Lavina Stracke"], ["correct", 1], ["created_at", "2023-02-02 19:30:22.138684"], ["updated_at", "2023-02-02 19:30:22.138684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gaynelle Zieme"], ["description", "Consequatur unde consequuntur. Molestiae assumenda ullam. Velit laudantium et."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.145090"], ["updated_at", "2023-02-02 19:30:22.145090"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Renae Lindgren"], ["created_at", "2023-02-02 19:30:22.146941"], ["updated_at", "2023-02-02 19:30:22.146941"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loni O'Keefe"], ["description", "Et rem vitae. Ut nihil deleniti. Fugit assumenda est."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.149013"], ["updated_at", "2023-02-02 19:30:22.149013"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jarod Denesik"], ["created_at", "2023-02-02 19:30:22.150287"], ["updated_at", "2023-02-02 19:30:22.150287"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charley Jaskolski"], ["description", "Sint voluptatem laudantium. Quibusdam autem quod. Aut molestiae nam."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.154245"], ["updated_at", "2023-02-02 19:30:22.154245"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blake Lind"], ["created_at", "2023-02-02 19:30:22.156650"], ["updated_at", "2023-02-02 19:30:22.156650"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Penelope Stiedemann"], ["correct", 1], ["created_at", "2023-02-02 19:30:22.157719"], ["updated_at", "2023-02-02 19:30:22.157719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gonzalo Heller"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.158521"], ["updated_at", "2023-02-02 19:30:22.158521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Randell Hills"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.159262"], ["updated_at", "2023-02-02 19:30:22.159262"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Everett Leannon"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.159979"], ["updated_at", "2023-02-02 19:30:22.159979"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Emerson Monahan"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.160697"], ["updated_at", "2023-02-02 19:30:22.160697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carley Ledner"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.161410"], ["updated_at", "2023-02-02 19:30:22.161410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ona Nader"], ["correct", 0], ["created_at", "2023-02-02 19:30:22.162114"], ["updated_at", "2023-02-02 19:30:22.162114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.2ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lakendra Littel"], ["description", "Velit aliquam eos. Nesciunt qui odio. Quia nobis ad."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.173715"], ["updated_at", "2023-02-02 19:30:22.173715"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tawana Schmidt"], ["description", "Quibusdam laborum voluptatem. Temporibus sed aliquam. Dolorem minima enim."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.176440"], ["updated_at", "2023-02-02 19:30:22.176440"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Sunny Quitzon"], ["description", "Dicta deserunt quia. Possimus ipsum exercitationem. Fuga et rerum."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.178791"], ["updated_at", "2023-02-02 19:30:22.178791"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gianna Treutel"], ["created_at", "2023-02-02 19:30:22.179173"], ["updated_at", "2023-02-02 19:30:22.179173"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Ima Witting"], ["created_at", "2023-02-02 19:30:22.179902"], ["updated_at", "2023-02-02 19:30:22.179902"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Erwin Morar"], ["created_at", "2023-02-02 19:30:22.180589"], ["updated_at", "2023-02-02 19:30:22.180589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gaston Schulist"], ["created_at", "2023-02-02 19:30:22.181263"], ["updated_at", "2023-02-02 19:30:22.181263"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Millard Borer"], ["created_at", "2023-02-02 19:30:22.181980"], ["updated_at", "2023-02-02 19:30:22.181980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:30:22.184014"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lanette Baumbach"], ["description", "Ratione amet esse. Natus optio non. Dolor omnis modi."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.188902"], ["updated_at", "2023-02-02 19:30:22.188902"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ima Ruecker II"], ["description", "Ipsum deserunt dolor. Voluptates doloribus tempora. Expedita nemo rem."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.190389"], ["updated_at", "2023-02-02 19:30:22.190389"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Harley Will JD"], ["created_at", "2023-02-02 19:30:22.191315"], ["updated_at", "2023-02-02 19:30:22.191315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sonny Strosin Jr."], ["created_at", "2023-02-02 19:30:22.192556"], ["updated_at", "2023-02-02 19:30:22.192556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jutta Murazik"], ["created_at", "2023-02-02 19:30:22.193567"], ["updated_at", "2023-02-02 19:30:22.193567"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kirby DuBuque"], ["created_at", "2023-02-02 19:30:22.194367"], ["updated_at", "2023-02-02 19:30:22.194367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dana Fahey"], ["created_at", "2023-02-02 19:30:22.195229"], ["updated_at", "2023-02-02 19:30:22.195229"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "George Larson"], ["created_at", "2023-02-02 19:30:22.196117"], ["updated_at", "2023-02-02 19:30:22.196117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carissa Grant"], ["description", "Qui expedita occaecati. Laborum totam consectetur. Ratione qui laudantium."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.198830"], ["updated_at", "2023-02-02 19:30:22.198830"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Cornelius Lakin"], ["description", "Quia atque non. Dolorem ea sint. Quia ipsam minus."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:22.203176"], ["updated_at", "2023-02-02 19:30:22.203176"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.134227"], ["updated_at", "2023-02-02 19:30:39.134227"], ["name", "Reed Schamberger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Malia Ondricka V"], ["description", "Autem cupiditate est. Voluptates fugiat et. Perferendis in sit."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.139586"], ["updated_at", "2023-02-02 19:30:39.139586"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Patrick Schimmel"], ["created_at", "2023-02-02 19:30:39.152170"], ["updated_at", "2023-02-02 19:30:39.152170"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Latrina McLaughlin"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.155375"], ["updated_at", "2023-02-02 19:30:39.155375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:39.158400"], ["updated_at", "2023-02-02 19:30:39.158400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.173674"], ["updated_at", "2023-02-02 19:30:39.173674"], ["name", "Jacquetta Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Levi Upton"], ["description", "Omnis ut porro. Culpa veritatis sed. Voluptas aliquid nesciunt."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.175205"], ["updated_at", "2023-02-02 19:30:39.175205"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Petronila Reinger"], ["created_at", "2023-02-02 19:30:39.177707"], ["updated_at", "2023-02-02 19:30:39.177707"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alphonse Beier"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.178708"], ["updated_at", "2023-02-02 19:30:39.178708"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:39.179787"], ["updated_at", "2023-02-02 19:30:39.179787"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.181863"], ["updated_at", "2023-02-02 19:30:39.181863"], ["name", "Msgr. Charlene Howe"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Odell Schiller"], ["description", "Occaecati consequuntur accusantium. Corporis voluptas aliquam. In eaque praesentium."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.183136"], ["updated_at", "2023-02-02 19:30:39.183136"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bernie Pouros DVM"], ["created_at", "2023-02-02 19:30:39.185101"], ["updated_at", "2023-02-02 19:30:39.185101"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lon Roob"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.185798"], ["updated_at", "2023-02-02 19:30:39.185798"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:39.186718"], ["updated_at", "2023-02-02 19:30:39.186718"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.188562"], ["updated_at", "2023-02-02 19:30:39.188562"], ["name", "Janet Turcotte IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Craig Rosenbaum"], ["description", "Vel quia molestiae. Nisi quibusdam at. Illum quis voluptatem."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.189875"], ["updated_at", "2023-02-02 19:30:39.189875"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Randi Crooks DO"], ["created_at", "2023-02-02 19:30:39.192871"], ["updated_at", "2023-02-02 19:30:39.192871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dwayne Bartoletti IV"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.193961"], ["updated_at", "2023-02-02 19:30:39.193961"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:30:39.195189"], ["updated_at", "2023-02-02 19:30:39.195189"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.204404"], ["updated_at", "2023-02-02 19:30:39.204404"], ["name", "Raleigh Torphy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gale Conroy"], ["description", "Reiciendis pariatur sit. Autem vel deleniti. Aut distinctio et."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.205751"], ["updated_at", "2023-02-02 19:30:39.205751"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:30:39.218340"], ["updated_at", "2023-02-02 19:30:39.218340"], ["name", "Annabel Crooks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Francisco Hansen IV"], ["description", "Dolores et velit. Voluptatem voluptatem consequatur. Consequuntur repellat consectetur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.220196"], ["updated_at", "2023-02-02 19:30:39.220196"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ezra Kshlerin"], ["description", "Incidunt eum accusantium. Blanditiis consectetur dignissimos. Earum eveniet quibusdam."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.234988"], ["updated_at", "2023-02-02 19:30:39.234988"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bruno Beahan"], ["created_at", "2023-02-02 19:30:39.236675"], ["updated_at", "2023-02-02 19:30:39.236675"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Milo Bechtelar"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.237752"], ["updated_at", "2023-02-02 19:30:39.237752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Randal Thompson"], ["description", "Rerum voluptate et. Aut quisquam occaecati. Veniam minima aliquam."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.239859"], ["updated_at", "2023-02-02 19:30:39.239859"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edgar Gusikowski CPA"], ["created_at", "2023-02-02 19:30:39.241318"], ["updated_at", "2023-02-02 19:30:39.241318"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Doug Schumm"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.242296"], ["updated_at", "2023-02-02 19:30:39.242296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roxy Ruecker"], ["description", "Inventore iusto ullam. Dolore voluptas illum. Qui est quia."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.246744"], ["updated_at", "2023-02-02 19:30:39.246744"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sharron Armstrong"], ["created_at", "2023-02-02 19:30:39.248022"], ["updated_at", "2023-02-02 19:30:39.248022"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Delmy Wilderman"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.248814"], ["updated_at", "2023-02-02 19:30:39.248814"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mervin Wisozk"], ["description", "Occaecati consequatur eum. Amet omnis dolor. Et facilis aut."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.251204"], ["updated_at", "2023-02-02 19:30:39.251204"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lyndon Kautzer"], ["created_at", "2023-02-02 19:30:39.252252"], ["updated_at", "2023-02-02 19:30:39.252252"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Frieda Predovic"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.253069"], ["updated_at", "2023-02-02 19:30:39.253069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Isaac Rowe"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.254053"], ["updated_at", "2023-02-02 19:30:39.254053"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kristina Jacobi"], ["correct", 1], ["created_at", "2023-02-02 19:30:39.255185"], ["updated_at", "2023-02-02 19:30:39.255185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "The Hon. Bradly Rodriguez"], ["correct", 1], ["created_at", "2023-02-02 19:30:39.256032"], ["updated_at", "2023-02-02 19:30:39.256032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kittie Will"], ["description", "Maxime aut illo. Aliquam corporis ut. Corrupti unde est."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.263200"], ["updated_at", "2023-02-02 19:30:39.263200"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Toi Torp"], ["created_at", "2023-02-02 19:30:39.264572"], ["updated_at", "2023-02-02 19:30:39.264572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lai Ratke"], ["description", "Doloremque fuga dolores. Aspernatur aliquid dolorem. Asperiores velit veniam."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.266561"], ["updated_at", "2023-02-02 19:30:39.266561"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Roseann Mills"], ["created_at", "2023-02-02 19:30:39.267657"], ["updated_at", "2023-02-02 19:30:39.267657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Jeromy MacGyver"], ["description", "Adipisci nemo doloribus. Eos iste repellendus. Optio quod ut."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.271717"], ["updated_at", "2023-02-02 19:30:39.271717"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Leigh Klocko"], ["created_at", "2023-02-02 19:30:39.273064"], ["updated_at", "2023-02-02 19:30:39.273064"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Carlo Koelpin"], ["correct", 1], ["created_at", "2023-02-02 19:30:39.274178"], ["updated_at", "2023-02-02 19:30:39.274178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tiana Kiehn Esq."], ["correct", 0], ["created_at", "2023-02-02 19:30:39.275225"], ["updated_at", "2023-02-02 19:30:39.275225"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Percy Gottlieb"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.276274"], ["updated_at", "2023-02-02 19:30:39.276274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Whitney Gulgowski VM"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.277098"], ["updated_at", "2023-02-02 19:30:39.277098"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Francisco Abernathy"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.277832"], ["updated_at", "2023-02-02 19:30:39.277832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Stephen Raynor"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.278552"], ["updated_at", "2023-02-02 19:30:39.278552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Israel Homenick IV"], ["correct", 0], ["created_at", "2023-02-02 19:30:39.279329"], ["updated_at", "2023-02-02 19:30:39.279329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (1.1ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mary Harris"], ["description", "Dolorem vel id. Magnam vero mollitia. Et rerum laborum."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.291409"], ["updated_at", "2023-02-02 19:30:39.291409"], ["survey_type", 0]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darcie Bogan"], ["description", "Delectus aut minus. Sed ut qui. Sunt ut ea."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.294851"], ["updated_at", "2023-02-02 19:30:39.294851"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dustin Kessler"], ["description", "Aperiam placeat non. Dignissimos nemo architecto. Minima libero assumenda."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.297604"], ["updated_at", "2023-02-02 19:30:39.297604"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Issac Hartmann"], ["created_at", "2023-02-02 19:30:39.298170"], ["updated_at", "2023-02-02 19:30:39.298170"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shoshana Lowe"], ["created_at", "2023-02-02 19:30:39.298965"], ["updated_at", "2023-02-02 19:30:39.298965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reuben Cole IV"], ["created_at", "2023-02-02 19:30:39.299700"], ["updated_at", "2023-02-02 19:30:39.299700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ollie Koss IV"], ["created_at", "2023-02-02 19:30:39.300419"], ["updated_at", "2023-02-02 19:30:39.300419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Karen Ankunding"], ["created_at", "2023-02-02 19:30:39.301110"], ["updated_at", "2023-02-02 19:30:39.301110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.0ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-02 19:30:39.302482"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ben Frami LLD"], ["description", "Quibusdam qui id. Ratione ducimus autem. Et voluptatum corporis."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.307750"], ["updated_at", "2023-02-02 19:30:39.307750"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Henrietta Fadel"], ["description", "Quia est architecto. Qui sint iste. Natus quisquam eos."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.309780"], ["updated_at", "2023-02-02 19:30:39.309780"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cheyenne Jacobi"], ["created_at", "2023-02-02 19:30:39.311352"], ["updated_at", "2023-02-02 19:30:39.311352"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dewey Cormier"], ["created_at", "2023-02-02 19:30:39.312184"], ["updated_at", "2023-02-02 19:30:39.312184"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shavon Weimann"], ["created_at", "2023-02-02 19:30:39.312911"], ["updated_at", "2023-02-02 19:30:39.312911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Zackary Spencer"], ["created_at", "2023-02-02 19:30:39.313847"], ["updated_at", "2023-02-02 19:30:39.313847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Birdie Bradtke"], ["created_at", "2023-02-02 19:30:39.315011"], ["updated_at", "2023-02-02 19:30:39.315011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Evia Howe"], ["created_at", "2023-02-02 19:30:39.315849"], ["updated_at", "2023-02-02 19:30:39.315849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alonzo Beatty MD"], ["description", "Minus officia ut. Eum voluptas est. Praesentium eveniet sit."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.318488"], ["updated_at", "2023-02-02 19:30:39.318488"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corey Rowe"], ["description", "Et tenetur delectus. Ad veritatis et. Voluptatem quibusdam non."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:30:39.321995"], ["updated_at", "2023-02-02 19:30:39.321995"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.603626"], ["updated_at", "2023-02-02 19:42:30.603626"], ["name", "Terrence Gulgowski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.623806"], ["updated_at", "2023-02-02 19:42:30.623806"], ["name", "Suzan Erdman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.626276"], ["updated_at", "2023-02-02 19:42:30.626276"], ["name", "Vernice Crooks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.629215"], ["updated_at", "2023-02-02 19:42:30.629215"], ["name", "Fr. Lavina Bernhard"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.635926"], ["updated_at", "2023-02-02 19:42:30.635926"], ["name", "Vincent Moen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:42:30.638078"], ["updated_at", "2023-02-02 19:42:30.638078"], ["name", "Dr. Latashia Kuvalis"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.3ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:43:29.472792"], ["updated_at", "2023-02-02 19:43:29.472792"], ["name", "Jackie Russel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:15.345939"], ["updated_at", "2023-02-02 19:45:15.345939"], ["name", "Jason Rodriguez III"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.363836"], ["updated_at", "2023-02-02 19:45:50.363836"], ["name", "Dewayne Koch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cheryl Parisian IV"], ["description", "Autem omnis quasi. Id aut qui. Animi placeat totam."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.369059"], ["updated_at", "2023-02-02 19:45:50.369059"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.394190"], ["updated_at", "2023-02-02 19:45:50.394190"], ["name", "Hettie Conn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shayne Hyatt"], ["description", "Ducimus fugiat voluptas. Ex temporibus et. Et sequi placeat."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.395776"], ["updated_at", "2023-02-02 19:45:50.395776"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.399685"], ["updated_at", "2023-02-02 19:45:50.399685"], ["name", "Abraham Nitzsche"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chantel Rutherford"], ["description", "Voluptates sint aliquid. Ipsam molestias sit. Possimus non delectus."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.401074"], ["updated_at", "2023-02-02 19:45:50.401074"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.403991"], ["updated_at", "2023-02-02 19:45:50.403991"], ["name", "Pok Hyatt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mathew Grady"], ["description", "Ratione voluptatem rem. Repellat iusto minima. Aut numquam assumenda."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.405482"], ["updated_at", "2023-02-02 19:45:50.405482"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.413064"], ["updated_at", "2023-02-02 19:45:50.413064"], ["name", "Stella Ebert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilfred Hauck"], ["description", "Minima quis veniam. Provident dolores voluptatum. Omnis eveniet sunt."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.414720"], ["updated_at", "2023-02-02 19:45:50.414720"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:45:50.425331"], ["updated_at", "2023-02-02 19:45:50.425331"], ["name", "Shaunte Dach"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Adelia Ankunding"], ["description", "Consequatur aliquam dicta. Dolorum aut suscipit. Perspiciatis aperiam odio."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.426694"], ["updated_at", "2023-02-02 19:45:50.426694"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deshawn Kohler"], ["description", "Vero qui ab. Numquam quia sit. Molestiae deleniti optio."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.442252"], ["updated_at", "2023-02-02 19:45:50.442252"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Cliff Konopelski"], ["description", "Consectetur error optio. Velit eligendi natus. Odit laudantium ab."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.445671"], ["updated_at", "2023-02-02 19:45:50.445671"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Refugio Walsh"], ["description", "Consectetur accusamus esse. Voluptatem dolores nihil. Dolor unde iusto."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.449016"], ["updated_at", "2023-02-02 19:45:50.449016"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jerrica Will"], ["description", "Libero consequatur dolorem. Qui debitis ratione. Dignissimos voluptas modi."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.451589"], ["updated_at", "2023-02-02 19:45:50.451589"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Annis Zboncak II"], ["description", "Quis sit reprehenderit. Esse eveniet illum. Sint possimus odio."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.458713"], ["updated_at", "2023-02-02 19:45:50.458713"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Adolph Bailey"], ["description", "Adipisci ut suscipit. Illo dolorem expedita. Quidem doloremque voluptatibus."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.461287"], ["updated_at", "2023-02-02 19:45:50.461287"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tony Kutch"], ["description", "Et modi vel. Perferendis harum id. Ut aut officia."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.465044"], ["updated_at", "2023-02-02 19:45:50.465044"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jordon Bins Sr."], ["description", "Eos doloribus exercitationem. Sint voluptatem distinctio. Suscipit culpa dolor."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.472874"], ["updated_at", "2023-02-02 19:45:50.472874"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mason Macejkovic"], ["description", "Ullam atque nulla. Autem culpa at. Voluptatum rem sed."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.475334"], ["updated_at", "2023-02-02 19:45:50.475334"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deadra Abbott"], ["description", "Provident magnam sit. Enim atque possimus. Accusantium neque eveniet."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.493451"], ["updated_at", "2023-02-02 19:45:50.493451"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Herbert Moen"], ["description", "Quae earum provident. Doloribus ullam aut. Voluptatem qui ipsam."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.497058"], ["updated_at", "2023-02-02 19:45:50.497058"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Melinda Cole"], ["description", "Aut molestiae officia. Enim nostrum sint. Modi natus aperiam."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:45:50.502303"], ["updated_at", "2023-02-02 19:45:50.502303"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.423016"], ["updated_at", "2023-02-02 19:46:17.423016"], ["name", "Nicholle Purdy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Nadine Schowalter"], ["description", "Nemo tenetur animi. Et est aut. Non velit temporibus."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.428527"], ["updated_at", "2023-02-02 19:46:17.428527"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cruz Veum"], ["created_at", "2023-02-02 19:46:17.440910"], ["updated_at", "2023-02-02 19:46:17.440910"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Olimpia Cremin"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.444367"], ["updated_at", "2023-02-02 19:46:17.444367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:46:17.447514"], ["updated_at", "2023-02-02 19:46:17.447514"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.463105"], ["updated_at", "2023-02-02 19:46:17.463105"], ["name", "Otha Dickens"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Francesco Upton"], ["description", "Ut et qui. Quidem quae libero. Omnis nesciunt nobis."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.464570"], ["updated_at", "2023-02-02 19:46:17.464570"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Bette Ryan"], ["created_at", "2023-02-02 19:46:17.467181"], ["updated_at", "2023-02-02 19:46:17.467181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Barb Dach"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.468222"], ["updated_at", "2023-02-02 19:46:17.468222"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:46:17.469323"], ["updated_at", "2023-02-02 19:46:17.469323"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.471306"], ["updated_at", "2023-02-02 19:46:17.471306"], ["name", "Selina Greenholt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Inga Price"], ["description", "Possimus dignissimos iste. Vel ipsum eum. Molestiae modi et."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.472522"], ["updated_at", "2023-02-02 19:46:17.472522"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clinton Pfeffer"], ["created_at", "2023-02-02 19:46:17.474411"], ["updated_at", "2023-02-02 19:46:17.474411"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marth Kertzmann"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.475317"], ["updated_at", "2023-02-02 19:46:17.475317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:46:17.476282"], ["updated_at", "2023-02-02 19:46:17.476282"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.478163"], ["updated_at", "2023-02-02 19:46:17.478163"], ["name", "Houston Wiza LLD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lynelle Paucek"], ["description", "Aperiam unde accusantium. Autem consequatur saepe. Aut minus possimus."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.479369"], ["updated_at", "2023-02-02 19:46:17.479369"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Allegra Krajcik"], ["created_at", "2023-02-02 19:46:17.481301"], ["updated_at", "2023-02-02 19:46:17.481301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mana King Esq."], ["correct", 0], ["created_at", "2023-02-02 19:46:17.482041"], ["updated_at", "2023-02-02 19:46:17.482041"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:46:17.483015"], ["updated_at", "2023-02-02 19:46:17.483015"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.492081"], ["updated_at", "2023-02-02 19:46:17.492081"], ["name", "Beckie Bashirian"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gerard Rosenbaum"], ["description", "Eos quas nihil. Voluptatem perferendis sit. Ducimus delectus quia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.493832"], ["updated_at", "2023-02-02 19:46:17.493832"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:46:17.508478"], ["updated_at", "2023-02-02 19:46:17.508478"], ["name", "Owen Langworth"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kristal Mraz DDS"], ["description", "Eos ea magnam. Ipsam laboriosam harum. Ut ex molestiae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.510081"], ["updated_at", "2023-02-02 19:46:17.510081"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chong Erdman"], ["description", "Quas nesciunt ut. Qui optio ut. Voluptatibus earum ut."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.526338"], ["updated_at", "2023-02-02 19:46:17.526338"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeana Moore"], ["created_at", "2023-02-02 19:46:17.527916"], ["updated_at", "2023-02-02 19:46:17.527916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jed Schimmel I"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.528793"], ["updated_at", "2023-02-02 19:46:17.528793"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Markus Metz"], ["description", "Et aut magnam. Aspernatur molestiae recusandae. Necessitatibus corrupti quam."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.530953"], ["updated_at", "2023-02-02 19:46:17.530953"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Delphia Jenkins"], ["created_at", "2023-02-02 19:46:17.532257"], ["updated_at", "2023-02-02 19:46:17.532257"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jovan Kulas"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.533093"], ["updated_at", "2023-02-02 19:46:17.533093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Valentine Zemlak"], ["description", "Quia est nobis. Accusamus repellendus sit. Necessitatibus qui aut."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.538498"], ["updated_at", "2023-02-02 19:46:17.538498"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Domitila Kuhn"], ["created_at", "2023-02-02 19:46:17.539969"], ["updated_at", "2023-02-02 19:46:17.539969"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Francine Jast JD"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.540850"], ["updated_at", "2023-02-02 19:46:17.540850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Roseanna Wisozk"], ["description", "Ipsam natus optio. Debitis voluptatem maxime. Nam quaerat voluptas."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.543307"], ["updated_at", "2023-02-02 19:46:17.543307"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tommy Okuneva"], ["created_at", "2023-02-02 19:46:17.544362"], ["updated_at", "2023-02-02 19:46:17.544362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Patrick Lesch"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.545447"], ["updated_at", "2023-02-02 19:46:17.545447"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Stacey MacGyver Jr."], ["correct", 0], ["created_at", "2023-02-02 19:46:17.547002"], ["updated_at", "2023-02-02 19:46:17.547002"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Clarissa Romaguera"], ["correct", 1], ["created_at", "2023-02-02 19:46:17.548056"], ["updated_at", "2023-02-02 19:46:17.548056"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Phylicia Wuckert"], ["correct", 1], ["created_at", "2023-02-02 19:46:17.548817"], ["updated_at", "2023-02-02 19:46:17.548817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nikita Weimann"], ["description", "Occaecati sint nulla. Laborum commodi omnis. Est voluptatibus esse."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.556470"], ["updated_at", "2023-02-02 19:46:17.556470"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marth Green"], ["created_at", "2023-02-02 19:46:17.557801"], ["updated_at", "2023-02-02 19:46:17.557801"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Whitney Flatley"], ["description", "Voluptas vel et. Facere sunt aliquid. Impedit animi consequatur."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.559690"], ["updated_at", "2023-02-02 19:46:17.559690"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Jeffry Wuckert"], ["created_at", "2023-02-02 19:46:17.560773"], ["updated_at", "2023-02-02 19:46:17.560773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ebonie Weber DDS"], ["description", "Omnis blanditiis dolores. Necessitatibus odit quibusdam. Molestiae dolor et."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.564137"], ["updated_at", "2023-02-02 19:46:17.564137"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Faustino Lindgren"], ["created_at", "2023-02-02 19:46:17.565687"], ["updated_at", "2023-02-02 19:46:17.565687"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Reuben Hills"], ["correct", 1], ["created_at", "2023-02-02 19:46:17.567060"], ["updated_at", "2023-02-02 19:46:17.567060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Chelsey Senger"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.567931"], ["updated_at", "2023-02-02 19:46:17.567931"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Matilda Sawayn"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.568808"], ["updated_at", "2023-02-02 19:46:17.568808"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Odell Balistreri"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.569767"], ["updated_at", "2023-02-02 19:46:17.569767"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shavon Baumbach"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.570570"], ["updated_at", "2023-02-02 19:46:17.570570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Andrea McGlynn"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.571375"], ["updated_at", "2023-02-02 19:46:17.571375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Aline Brown"], ["correct", 0], ["created_at", "2023-02-02 19:46:17.572080"], ["updated_at", "2023-02-02 19:46:17.572080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jon Schultz"], ["description", "Nulla facilis debitis. Eos dolor aut. Perferendis dolores cumque."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.582777"], ["updated_at", "2023-02-02 19:46:17.582777"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Angele McClure"], ["description", "Voluptas voluptatem amet. Modi quam harum. Inventore a eligendi."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.585590"], ["updated_at", "2023-02-02 19:46:17.585590"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shenna Welch"], ["description", "Beatae quaerat rem. Fugit dolore nihil. Ea est qui."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.606777"], ["updated_at", "2023-02-02 19:46:17.606777"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nickolas Homenick"], ["description", "Quis laborum ea. Eveniet nisi necessitatibus. Nihil aut amet."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.609078"], ["updated_at", "2023-02-02 19:46:17.609078"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Aaron Schinner DO"], ["created_at", "2023-02-02 19:46:17.609557"], ["updated_at", "2023-02-02 19:46:17.609557"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reyes Lockman"], ["created_at", "2023-02-02 19:46:17.610429"], ["updated_at", "2023-02-02 19:46:17.610429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Barb Farrell"], ["created_at", "2023-02-02 19:46:17.611188"], ["updated_at", "2023-02-02 19:46:17.611188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kathlene O'Kon JD"], ["created_at", "2023-02-02 19:46:17.611913"], ["updated_at", "2023-02-02 19:46:17.611913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Matthew Cummerata"], ["created_at", "2023-02-02 19:46:17.612552"], ["updated_at", "2023-02-02 19:46:17.612552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Neal Padberg I"], ["created_at", "2023-02-02 19:46:17.613234"], ["updated_at", "2023-02-02 19:46:17.613234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gloria Spencer"], ["description", "Suscipit iusto et. Voluptate exercitationem et. Modi dolor commodi."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.616446"], ["updated_at", "2023-02-02 19:46:17.616446"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Juana Murray"], ["description", "Numquam quia facilis. Eos iste consectetur. Voluptatum dolorem ut."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:46:17.622060"], ["updated_at", "2023-02-02 19:46:17.622060"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.637738"], ["updated_at", "2023-02-02 19:47:43.637738"], ["name", "Jackson Hickle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Danial Hamill"], ["description", "Qui et excepturi. Dignissimos enim rerum. Neque magni doloremque."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.643872"], ["updated_at", "2023-02-02 19:47:43.643872"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tyree Schneider"], ["created_at", "2023-02-02 19:47:43.656445"], ["updated_at", "2023-02-02 19:47:43.656445"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tori Herman III"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.659556"], ["updated_at", "2023-02-02 19:47:43.659556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:47:43.662629"], ["updated_at", "2023-02-02 19:47:43.662629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.680288"], ["updated_at", "2023-02-02 19:47:43.680288"], ["name", "Dr. Linwood Waters"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Sharell Bernier"], ["description", "Deleniti repellat deserunt. Quis facilis nam. Quibusdam doloremque et."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.682318"], ["updated_at", "2023-02-02 19:47:43.682318"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arie Schuppe"], ["created_at", "2023-02-02 19:47:43.685714"], ["updated_at", "2023-02-02 19:47:43.685714"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Inga Cummerata"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.686598"], ["updated_at", "2023-02-02 19:47:43.686598"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:47:43.687652"], ["updated_at", "2023-02-02 19:47:43.687652"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.689699"], ["updated_at", "2023-02-02 19:47:43.689699"], ["name", "Stacy Waters"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Johnson Ferry"], ["description", "Voluptate dolor dolores. Saepe sed temporibus. Eius magni et."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.691021"], ["updated_at", "2023-02-02 19:47:43.691021"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amado Daugherty LLD"], ["created_at", "2023-02-02 19:47:43.693006"], ["updated_at", "2023-02-02 19:47:43.693006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Horacio Kutch"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.693726"], ["updated_at", "2023-02-02 19:47:43.693726"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:47:43.694813"], ["updated_at", "2023-02-02 19:47:43.694813"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.696881"], ["updated_at", "2023-02-02 19:47:43.696881"], ["name", "Fr. Joyce Goodwin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Laverne Orn"], ["description", "Sed ut delectus. Dolorum adipisci ducimus. Molestiae architecto nihil."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.698207"], ["updated_at", "2023-02-02 19:47:43.698207"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Gisele Hane"], ["created_at", "2023-02-02 19:47:43.700830"], ["updated_at", "2023-02-02 19:47:43.700830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alton Gottlieb CPA"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.702200"], ["updated_at", "2023-02-02 19:47:43.702200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:47:43.703367"], ["updated_at", "2023-02-02 19:47:43.703367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.712836"], ["updated_at", "2023-02-02 19:47:43.712836"], ["name", "Alton Parisian"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Enriqueta Stiedemann"], ["description", "Aspernatur facilis magnam. Autem officia adipisci. Error placeat aut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.714261"], ["updated_at", "2023-02-02 19:47:43.714261"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:47:43.728206"], ["updated_at", "2023-02-02 19:47:43.728206"], ["name", "Renay Weimann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rachele McCullough"], ["description", "Repellendus occaecati earum. Et minus non. Asperiores voluptatem sint."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.729804"], ["updated_at", "2023-02-02 19:47:43.729804"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (3.0ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Toshiko Fahey"], ["description", "Ea accusantium hic. Pariatur optio quia. Ut explicabo qui."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.753610"], ["updated_at", "2023-02-02 19:47:43.753610"], ["survey_type", 0]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shiloh Gulgowski JD"], ["created_at", "2023-02-02 19:47:43.759956"], ["updated_at", "2023-02-02 19:47:43.759956"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lennie Jacobs"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.761743"], ["updated_at", "2023-02-02 19:47:43.761743"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.9ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Novella McDermott"], ["description", "Consequatur veniam molestiae. Laborum vel quia. Aliquam porro illo."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.766367"], ["updated_at", "2023-02-02 19:47:43.766367"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Leland Zulauf CPA"], ["created_at", "2023-02-02 19:47:43.769085"], ["updated_at", "2023-02-02 19:47:43.769085"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Riley Barrows LLD"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.772123"], ["updated_at", "2023-02-02 19:47:43.772123"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vince Gislason"], ["description", "Ut aut exercitationem. Voluptatem placeat ut. Placeat non odio."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.783119"], ["updated_at", "2023-02-02 19:47:43.783119"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Aurore Gutmann VM"], ["created_at", "2023-02-02 19:47:43.785069"], ["updated_at", "2023-02-02 19:47:43.785069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Woodrow VonRueden"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.786268"], ["updated_at", "2023-02-02 19:47:43.786268"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lucas Klocko Sr."], ["description", "Debitis eveniet quis. Praesentium qui deserunt. Iste repudiandae quas."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.789943"], ["updated_at", "2023-02-02 19:47:43.789943"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nena Schuppe"], ["created_at", "2023-02-02 19:47:43.791512"], ["updated_at", "2023-02-02 19:47:43.791512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bridgette Kertzmann"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.792583"], ["updated_at", "2023-02-02 19:47:43.792583"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jeri Halvorson"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.793571"], ["updated_at", "2023-02-02 19:47:43.793571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Librada Beahan DO"], ["correct", 1], ["created_at", "2023-02-02 19:47:43.794451"], ["updated_at", "2023-02-02 19:47:43.794451"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Aracely Veum"], ["correct", 1], ["created_at", "2023-02-02 19:47:43.795298"], ["updated_at", "2023-02-02 19:47:43.795298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.3ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Malissa Crooks"], ["description", "Dolor iure qui. Voluptatum nisi reiciendis. In quaerat quo."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.803832"], ["updated_at", "2023-02-02 19:47:43.803832"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Frida Willms"], ["created_at", "2023-02-02 19:47:43.806149"], ["updated_at", "2023-02-02 19:47:43.806149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Lucius Marks"], ["description", "Culpa quod commodi. Minus quas repudiandae. Numquam est ipsam."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.810983"], ["updated_at", "2023-02-02 19:47:43.810983"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jean Rolfson"], ["created_at", "2023-02-02 19:47:43.812595"], ["updated_at", "2023-02-02 19:47:43.812595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joelle Mills"], ["description", "Sequi et modi. Voluptatem neque minima. Molestiae debitis non."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.819080"], ["updated_at", "2023-02-02 19:47:43.819080"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Philomena Hettinger"], ["created_at", "2023-02-02 19:47:43.821003"], ["updated_at", "2023-02-02 19:47:43.821003"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Christin Gorczany"], ["correct", 1], ["created_at", "2023-02-02 19:47:43.822508"], ["updated_at", "2023-02-02 19:47:43.822508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gale Muller"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.823409"], ["updated_at", "2023-02-02 19:47:43.823409"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Chere Streich"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.824208"], ["updated_at", "2023-02-02 19:47:43.824208"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Stewart Bogan"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.824962"], ["updated_at", "2023-02-02 19:47:43.824962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brandon Stokes PhD"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.825767"], ["updated_at", "2023-02-02 19:47:43.825767"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Solomon Denesik"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.826548"], ["updated_at", "2023-02-02 19:47:43.826548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Teodoro King"], ["correct", 0], ["created_at", "2023-02-02 19:47:43.827290"], ["updated_at", "2023-02-02 19:47:43.827290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.5ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alexis Herzog"], ["description", "Iure velit optio. Nisi dolores qui. Commodi maxime ipsum."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.839693"], ["updated_at", "2023-02-02 19:47:43.839693"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Jimmy Zemlak"], ["description", "Aut occaecati eaque. Ipsum eius consequuntur. Aperiam quam numquam."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.842364"], ["updated_at", "2023-02-02 19:47:43.842364"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Michaela Reichert"], ["created_at", "2023-02-02 19:47:43.846202"], ["updated_at", "2023-02-02 19:47:43.846202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Bernard Flatley DC"], ["created_at", "2023-02-02 19:47:43.847403"], ["updated_at", "2023-02-02 19:47:43.847403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Rudolph Lynch"], ["created_at", "2023-02-02 19:47:43.848247"], ["updated_at", "2023-02-02 19:47:43.848247"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Jae Monahan"], ["created_at", "2023-02-02 19:47:43.849185"], ["updated_at", "2023-02-02 19:47:43.849185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Brigitte Conn"], ["created_at", "2023-02-02 19:47:43.850254"], ["updated_at", "2023-02-02 19:47:43.850254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Kristopher Lebsack"], ["description", "Nulla qui impedit. Voluptas amet omnis. Omnis et praesentium."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.855080"], ["updated_at", "2023-02-02 19:47:43.855080"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dorris Hills"], ["description", "Ut delectus tempore. Et dolores distinctio. Dolores ab cum."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.857137"], ["updated_at", "2023-02-02 19:47:43.857137"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jacinta Gottlieb"], ["created_at", "2023-02-02 19:47:43.857523"], ["updated_at", "2023-02-02 19:47:43.857523"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Malka Lynch"], ["created_at", "2023-02-02 19:47:43.858237"], ["updated_at", "2023-02-02 19:47:43.858237"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jamison McGlynn"], ["created_at", "2023-02-02 19:47:43.858929"], ["updated_at", "2023-02-02 19:47:43.858929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Charles Stanton"], ["created_at", "2023-02-02 19:47:43.859609"], ["updated_at", "2023-02-02 19:47:43.859609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fermin McKenzie"], ["created_at", "2023-02-02 19:47:43.860505"], ["updated_at", "2023-02-02 19:47:43.860505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kathryne Bahringer"], ["created_at", "2023-02-02 19:47:43.861500"], ["updated_at", "2023-02-02 19:47:43.861500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Karren Ward"], ["description", "Unde blanditiis sed. Illo incidunt aut. Ipsa sed non."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.864531"], ["updated_at", "2023-02-02 19:47:43.864531"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kristeen Jacobs"], ["description", "Laudantium dolores alias. Numquam optio minima. Architecto atque voluptates."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:47:43.869010"], ["updated_at", "2023-02-02 19:47:43.869010"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (6.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.752122"], ["updated_at", "2023-02-02 19:48:50.752122"], ["name", "Keira Koch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Hong Koch"], ["description", "Non nihil rerum. Praesentium quam est. Iusto dignissimos molestiae."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.758089"], ["updated_at", "2023-02-02 19:48:50.758089"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Shawnta Lockman"], ["created_at", "2023-02-02 19:48:50.771121"], ["updated_at", "2023-02-02 19:48:50.771121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Anibal Kulas"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.774187"], ["updated_at", "2023-02-02 19:48:50.774187"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:48:50.777204"], ["updated_at", "2023-02-02 19:48:50.777204"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.792643"], ["updated_at", "2023-02-02 19:48:50.792643"], ["name", "Truman Strosin Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jetta Grimes"], ["description", "Ea ut nemo. Quos labore aut. Qui dolorem dicta."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.794081"], ["updated_at", "2023-02-02 19:48:50.794081"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rhett Blick Esq."], ["created_at", "2023-02-02 19:48:50.796576"], ["updated_at", "2023-02-02 19:48:50.796576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Cherise O'Hara"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.797537"], ["updated_at", "2023-02-02 19:48:50.797537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:48:50.798680"], ["updated_at", "2023-02-02 19:48:50.798680"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.800723"], ["updated_at", "2023-02-02 19:48:50.800723"], ["name", "Chang Baumbach"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Otto Kulas"], ["description", "Rem eos quia. Est veniam impedit. Quis voluptates fugiat."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.802062"], ["updated_at", "2023-02-02 19:48:50.802062"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ali Fadel"], ["created_at", "2023-02-02 19:48:50.804316"], ["updated_at", "2023-02-02 19:48:50.804316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Omar Rempel"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.805187"], ["updated_at", "2023-02-02 19:48:50.805187"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:48:50.806604"], ["updated_at", "2023-02-02 19:48:50.806604"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.808720"], ["updated_at", "2023-02-02 19:48:50.808720"], ["name", "Willy Lockman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carmelita Veum"], ["description", "Iste porro culpa. Voluptatibus assumenda voluptate. Reiciendis autem alias."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.809959"], ["updated_at", "2023-02-02 19:48:50.809959"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Zenaida Mills"], ["created_at", "2023-02-02 19:48:50.811915"], ["updated_at", "2023-02-02 19:48:50.811915"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Clarence Rice"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.812674"], ["updated_at", "2023-02-02 19:48:50.812674"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:48:50.813685"], ["updated_at", "2023-02-02 19:48:50.813685"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.9ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.8ms) DELETE FROM "users" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.825373"], ["updated_at", "2023-02-02 19:48:50.825373"], ["name", "Nickole Tremblay"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Mikaela Keebler"], ["description", "Magnam ipsam eum. Molestiae perferendis dolore. Voluptatem et alias."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.827608"], ["updated_at", "2023-02-02 19:48:50.827608"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:48:50.839049"], ["updated_at", "2023-02-02 19:48:50.839049"], ["name", "Aron Purdy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Heidi Howe"], ["description", "Similique dolores vitae. Aut temporibus voluptatem. Fugit tempore corrupti."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.841655"], ["updated_at", "2023-02-02 19:48:50.841655"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jerald Sanford MD"], ["description", "Reprehenderit dolorum perspiciatis. Nihil atque quasi. Similique fugit dignissimos."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.856267"], ["updated_at", "2023-02-02 19:48:50.856267"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Margarete Gulgowski"], ["created_at", "2023-02-02 19:48:50.857809"], ["updated_at", "2023-02-02 19:48:50.857809"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Hallie Kreiger"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.858632"], ["updated_at", "2023-02-02 19:48:50.858632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Emilia Jakubowski"], ["description", "Debitis ipsum autem. Quisquam suscipit est. Delectus eaque est."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.860642"], ["updated_at", "2023-02-02 19:48:50.860642"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Thea Zboncak"], ["created_at", "2023-02-02 19:48:50.862124"], ["updated_at", "2023-02-02 19:48:50.862124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tonda McDermott"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.863176"], ["updated_at", "2023-02-02 19:48:50.863176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nathanial Kautzer DC"], ["description", "Animi fugiat quas. Veniam dolore possimus. Vitae fugiat est."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.867246"], ["updated_at", "2023-02-02 19:48:50.867246"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Earnest Quitzon"], ["created_at", "2023-02-02 19:48:50.868427"], ["updated_at", "2023-02-02 19:48:50.868427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Delta Schmidt"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.869226"], ["updated_at", "2023-02-02 19:48:50.869226"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ryan Wolff"], ["description", "Quia veniam sunt. Delectus consequatur eum. Voluptatem quae et."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.872976"], ["updated_at", "2023-02-02 19:48:50.872976"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Isis Heidenreich"], ["created_at", "2023-02-02 19:48:50.874592"], ["updated_at", "2023-02-02 19:48:50.874592"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Barbar Altenwerth"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.875651"], ["updated_at", "2023-02-02 19:48:50.875651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sang Sanford"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.876434"], ["updated_at", "2023-02-02 19:48:50.876434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jackie Adams DC"], ["correct", 1], ["created_at", "2023-02-02 19:48:50.877271"], ["updated_at", "2023-02-02 19:48:50.877271"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Eden Lindgren"], ["correct", 1], ["created_at", "2023-02-02 19:48:50.878006"], ["updated_at", "2023-02-02 19:48:50.878006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Selma Hegmann"], ["description", "Consequuntur fugiat facilis. Velit est et. Quos pariatur dolore."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.885175"], ["updated_at", "2023-02-02 19:48:50.885175"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Julius Cassin II"], ["created_at", "2023-02-02 19:48:50.886316"], ["updated_at", "2023-02-02 19:48:50.886316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosamond Grimes"], ["description", "Qui quaerat amet. Voluptatibus repellendus sit. Nihil voluptas ipsam."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.888769"], ["updated_at", "2023-02-02 19:48:50.888769"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Bryon Roberts"], ["created_at", "2023-02-02 19:48:50.891234"], ["updated_at", "2023-02-02 19:48:50.891234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gillian Sawayn"], ["description", "Quis nam esse. Et reiciendis ab. Suscipit enim error."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.895382"], ["updated_at", "2023-02-02 19:48:50.895382"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marty Skiles DO"], ["created_at", "2023-02-02 19:48:50.896621"], ["updated_at", "2023-02-02 19:48:50.896621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Diego Blanda"], ["correct", 1], ["created_at", "2023-02-02 19:48:50.897467"], ["updated_at", "2023-02-02 19:48:50.897467"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Arnita Hudson"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.898455"], ["updated_at", "2023-02-02 19:48:50.898455"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Charley Zboncak"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.899581"], ["updated_at", "2023-02-02 19:48:50.899581"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Claudio Swift"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.900439"], ["updated_at", "2023-02-02 19:48:50.900439"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Renea Luettgen"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.901175"], ["updated_at", "2023-02-02 19:48:50.901175"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marg Koss V"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.901942"], ["updated_at", "2023-02-02 19:48:50.901942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jackie Simonis"], ["correct", 0], ["created_at", "2023-02-02 19:48:50.902734"], ["updated_at", "2023-02-02 19:48:50.902734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.2ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.2ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ricky Powlowski"], ["description", "Ut magni delectus. Sint fugit ut. Nesciunt aut et."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.915280"], ["updated_at", "2023-02-02 19:48:50.915280"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Madeline Schneider"], ["description", "Optio in nihil. Qui rerum voluptatibus. Quidem laborum minima."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.919309"], ["updated_at", "2023-02-02 19:48:50.919309"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Genesis Schinner MD"], ["description", "Beatae nesciunt culpa. Omnis sit nesciunt. Possimus aut et."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.939727"], ["updated_at", "2023-02-02 19:48:50.939727"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jordan Ledner"], ["description", "Enim asperiores autem. Enim quia temporibus. Sunt temporibus eum."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.943195"], ["updated_at", "2023-02-02 19:48:50.943195"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Larry Goodwin"], ["created_at", "2023-02-02 19:48:50.944029"], ["updated_at", "2023-02-02 19:48:50.944029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stacy Nolan Esq."], ["created_at", "2023-02-02 19:48:50.944962"], ["updated_at", "2023-02-02 19:48:50.944962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Teisha McLaughlin"], ["created_at", "2023-02-02 19:48:50.945711"], ["updated_at", "2023-02-02 19:48:50.945711"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Rosanne Wiza"], ["created_at", "2023-02-02 19:48:50.946458"], ["updated_at", "2023-02-02 19:48:50.946458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nancy Morar"], ["created_at", "2023-02-02 19:48:50.947171"], ["updated_at", "2023-02-02 19:48:50.947171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Enid Kovacek IV"], ["created_at", "2023-02-02 19:48:50.947897"], ["updated_at", "2023-02-02 19:48:50.947897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Williams Deckow"], ["description", "Quia tempora maxime. Velit eligendi non. Sapiente numquam repudiandae."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.951409"], ["updated_at", "2023-02-02 19:48:50.951409"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corrie Deckow JD"], ["description", "Itaque qui et. Quis et et. Quam ducimus aut."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:48:50.955316"], ["updated_at", "2023-02-02 19:48:50.955316"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.624677"], ["updated_at", "2023-02-02 19:49:22.624677"], ["name", "Nyla Jast"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joshua Crist"], ["description", "Quo quasi cupiditate. Quia sit soluta. Rem iste hic."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.629824"], ["updated_at", "2023-02-02 19:49:22.629824"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Torie Halvorson"], ["created_at", "2023-02-02 19:49:22.642233"], ["updated_at", "2023-02-02 19:49:22.642233"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Leland Deckow"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.645504"], ["updated_at", "2023-02-02 19:49:22.645504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:22.648613"], ["updated_at", "2023-02-02 19:49:22.648613"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.664305"], ["updated_at", "2023-02-02 19:49:22.664305"], ["name", "Leonardo Funk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ira Donnelly"], ["description", "Fugit quisquam est. Doloribus laboriosam dolores. Consectetur dolores tempore."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.665800"], ["updated_at", "2023-02-02 19:49:22.665800"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Dong Weber"], ["created_at", "2023-02-02 19:49:22.668470"], ["updated_at", "2023-02-02 19:49:22.668470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Msgr. Efrain Kunde"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.669554"], ["updated_at", "2023-02-02 19:49:22.669554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:22.670648"], ["updated_at", "2023-02-02 19:49:22.670648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.672647"], ["updated_at", "2023-02-02 19:49:22.672647"], ["name", "Rep. Tess Kuhic"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Logan Funk"], ["description", "Totam nulla voluptatem. Ex velit ut. Tempora dolores in."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.673925"], ["updated_at", "2023-02-02 19:49:22.673925"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carrol Yost"], ["created_at", "2023-02-02 19:49:22.675930"], ["updated_at", "2023-02-02 19:49:22.675930"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Vanesa Koss"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.676784"], ["updated_at", "2023-02-02 19:49:22.676784"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:22.678144"], ["updated_at", "2023-02-02 19:49:22.678144"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.680629"], ["updated_at", "2023-02-02 19:49:22.680629"], ["name", "Paul Deckow"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Beckie Hackett"], ["description", "Commodi quidem distinctio. Quia reprehenderit non. Iusto consequatur est."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.681913"], ["updated_at", "2023-02-02 19:49:22.681913"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jamison Bradtke"], ["created_at", "2023-02-02 19:49:22.683850"], ["updated_at", "2023-02-02 19:49:22.683850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Mauricio Tillman"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.684609"], ["updated_at", "2023-02-02 19:49:22.684609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:22.685591"], ["updated_at", "2023-02-02 19:49:22.685591"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.695148"], ["updated_at", "2023-02-02 19:49:22.695148"], ["name", "Shon Blanda DVM"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Season Johnston"], ["description", "Magni aut eius. Neque quidem qui. Beatae deleniti ut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.698973"], ["updated_at", "2023-02-02 19:49:22.698973"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:22.711611"], ["updated_at", "2023-02-02 19:49:22.711611"], ["name", "Mechelle McLaughlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Cory Grant"], ["description", "Exercitationem eaque natus. Quia accusantium omnis. Veniam et harum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.714520"], ["updated_at", "2023-02-02 19:49:22.714520"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Arnulfo Blick"], ["description", "Suscipit nulla voluptates. Molestias id eaque. Consequatur eum ut."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.730637"], ["updated_at", "2023-02-02 19:49:22.730637"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Frederic Mohr"], ["created_at", "2023-02-02 19:49:22.732292"], ["updated_at", "2023-02-02 19:49:22.732292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bernita Kshlerin"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.733984"], ["updated_at", "2023-02-02 19:49:22.733984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lili Dicki"], ["description", "Omnis nesciunt reiciendis. Distinctio qui aut. Et non praesentium."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.736983"], ["updated_at", "2023-02-02 19:49:22.736983"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lora Hilpert"], ["created_at", "2023-02-02 19:49:22.738279"], ["updated_at", "2023-02-02 19:49:22.738279"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Juliet Rath"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.739081"], ["updated_at", "2023-02-02 19:49:22.739081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Owen Ullrich I"], ["description", "Delectus cum ut. Praesentium sed est. Sit possimus exercitationem."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.743140"], ["updated_at", "2023-02-02 19:49:22.743140"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Archie Walker"], ["created_at", "2023-02-02 19:49:22.745175"], ["updated_at", "2023-02-02 19:49:22.745175"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Percy Mayer"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.746586"], ["updated_at", "2023-02-02 19:49:22.746586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Myrna Carter"], ["description", "Omnis et explicabo. Et dicta expedita. Dolor voluptas non."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.749170"], ["updated_at", "2023-02-02 19:49:22.749170"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Mitch Weissnat"], ["created_at", "2023-02-02 19:49:22.750301"], ["updated_at", "2023-02-02 19:49:22.750301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Norbert Swaniawski"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.751265"], ["updated_at", "2023-02-02 19:49:22.751265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ashlee Collins"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.752805"], ["updated_at", "2023-02-02 19:49:22.752805"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rita Carter"], ["correct", 1], ["created_at", "2023-02-02 19:49:22.753806"], ["updated_at", "2023-02-02 19:49:22.753806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Jena Lebsack"], ["correct", 1], ["created_at", "2023-02-02 19:49:22.754567"], ["updated_at", "2023-02-02 19:49:22.754567"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lynwood Wuckert"], ["description", "Nulla dolores unde. Fugiat porro fugit. Nostrum ullam culpa."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.760927"], ["updated_at", "2023-02-02 19:49:22.760927"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Natisha Hoeger"], ["created_at", "2023-02-02 19:49:22.763244"], ["updated_at", "2023-02-02 19:49:22.763244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jere Abshire"], ["description", "Soluta ipsum ullam. Placeat quo maiores. Dolor quibusdam maiores."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.766506"], ["updated_at", "2023-02-02 19:49:22.766506"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeffrey Ankunding"], ["created_at", "2023-02-02 19:49:22.768306"], ["updated_at", "2023-02-02 19:49:22.768306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dwayne Klein"], ["description", "Eligendi itaque veniam. Perferendis accusamus sequi. Beatae sapiente alias."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.772439"], ["updated_at", "2023-02-02 19:49:22.772439"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roosevelt Hayes"], ["created_at", "2023-02-02 19:49:22.774165"], ["updated_at", "2023-02-02 19:49:22.774165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dante Braun"], ["correct", 1], ["created_at", "2023-02-02 19:49:22.775120"], ["updated_at", "2023-02-02 19:49:22.775120"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Frank Schultz"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.775919"], ["updated_at", "2023-02-02 19:49:22.775919"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lilliana Kohler"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.776826"], ["updated_at", "2023-02-02 19:49:22.776826"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sharolyn Reinger"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.777799"], ["updated_at", "2023-02-02 19:49:22.777799"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Chester Wisoky"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.778845"], ["updated_at", "2023-02-02 19:49:22.778845"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Santos Lind"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.780026"], ["updated_at", "2023-02-02 19:49:22.780026"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kory Bednar"], ["correct", 0], ["created_at", "2023-02-02 19:49:22.780972"], ["updated_at", "2023-02-02 19:49:22.780972"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Earleen Frami"], ["description", "Accusamus voluptatem harum. Error sed nihil. Velit aut cupiditate."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.793460"], ["updated_at", "2023-02-02 19:49:22.793460"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Willard Boyle"], ["description", "Voluptatem non quia. Quos assumenda dolorem. Mollitia atque sit."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.797985"], ["updated_at", "2023-02-02 19:49:22.797985"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Ms. Britt Hand"], ["created_at", "2023-02-02 19:49:22.803208"], ["updated_at", "2023-02-02 19:49:22.803208"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Nichole Goodwin"], ["created_at", "2023-02-02 19:49:22.806577"], ["updated_at", "2023-02-02 19:49:22.806577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Quinton Greenfelder V"], ["created_at", "2023-02-02 19:49:22.807893"], ["updated_at", "2023-02-02 19:49:22.807893"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Almeta Brekke"], ["created_at", "2023-02-02 19:49:22.808901"], ["updated_at", "2023-02-02 19:49:22.808901"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Khadijah Pouros"], ["created_at", "2023-02-02 19:49:22.809946"], ["updated_at", "2023-02-02 19:49:22.809946"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Genaro Olson"], ["description", "Soluta laboriosam exercitationem. Natus a officia. Molestiae aut aliquid."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.813455"], ["updated_at", "2023-02-02 19:49:22.813455"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Michiko O'Hara"], ["description", "Quia iure officiis. Labore et molestiae. Dolorem quia veritatis."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.817991"], ["updated_at", "2023-02-02 19:49:22.817991"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Scott Torp"], ["created_at", "2023-02-02 19:49:22.818719"], ["updated_at", "2023-02-02 19:49:22.818719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lester Schmidt"], ["created_at", "2023-02-02 19:49:22.819848"], ["updated_at", "2023-02-02 19:49:22.819848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ariel Konopelski"], ["created_at", "2023-02-02 19:49:22.821034"], ["updated_at", "2023-02-02 19:49:22.821034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Noella Parisian"], ["created_at", "2023-02-02 19:49:22.821864"], ["updated_at", "2023-02-02 19:49:22.821864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Lesley Crist"], ["created_at", "2023-02-02 19:49:22.822638"], ["updated_at", "2023-02-02 19:49:22.822638"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Eusebia Kessler"], ["created_at", "2023-02-02 19:49:22.823745"], ["updated_at", "2023-02-02 19:49:22.823745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mikel Mann DDS"], ["description", "Iure id aliquam. Ut ut est. Repudiandae magnam corporis."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.831405"], ["updated_at", "2023-02-02 19:49:22.831405"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sung Considine II"], ["description", "Eaque qui et. Aut excepturi rerum. Sit commodi omnis."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:22.844492"], ["updated_at", "2023-02-02 19:49:22.844492"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.493260"], ["updated_at", "2023-02-02 19:49:45.493260"], ["name", "Devin Hauck"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cole Denesik"], ["description", "Quo quisquam hic. Neque corporis consectetur. Fugit labore eum."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.499206"], ["updated_at", "2023-02-02 19:49:45.499206"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Arlyne Franecki"], ["created_at", "2023-02-02 19:49:45.512107"], ["updated_at", "2023-02-02 19:49:45.512107"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Trena Fahey"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.515200"], ["updated_at", "2023-02-02 19:49:45.515200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:45.518281"], ["updated_at", "2023-02-02 19:49:45.518281"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.533772"], ["updated_at", "2023-02-02 19:49:45.533772"], ["name", "Jack Reilly Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Shellie Spencer"], ["description", "Voluptatum nihil laudantium. Cum et tenetur. Doloribus laboriosam ipsam."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.535304"], ["updated_at", "2023-02-02 19:49:45.535304"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Eduardo Boyer"], ["created_at", "2023-02-02 19:49:45.537957"], ["updated_at", "2023-02-02 19:49:45.537957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bebe Dietrich I"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.538976"], ["updated_at", "2023-02-02 19:49:45.538976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:45.540092"], ["updated_at", "2023-02-02 19:49:45.540092"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.542121"], ["updated_at", "2023-02-02 19:49:45.542121"], ["name", "Karisa Langosh"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kristie Ratke"], ["description", "Amet itaque iste. Explicabo ut ab. Nemo ex est."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.543411"], ["updated_at", "2023-02-02 19:49:45.543411"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Beau Rodriguez"], ["created_at", "2023-02-02 19:49:45.546264"], ["updated_at", "2023-02-02 19:49:45.546264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Deeann Dare"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.547273"], ["updated_at", "2023-02-02 19:49:45.547273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:45.548342"], ["updated_at", "2023-02-02 19:49:45.548342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.550384"], ["updated_at", "2023-02-02 19:49:45.550384"], ["name", "Gov. Cary Torp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Darnell Hermann"], ["description", "Et ab culpa. Omnis ipsam vitae. Qui dolor vel."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.551797"], ["updated_at", "2023-02-02 19:49:45.551797"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ariel Doyle"], ["created_at", "2023-02-02 19:49:45.553871"], ["updated_at", "2023-02-02 19:49:45.553871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ted Boyle"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.554600"], ["updated_at", "2023-02-02 19:49:45.554600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:49:45.555574"], ["updated_at", "2023-02-02 19:49:45.555574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.564825"], ["updated_at", "2023-02-02 19:49:45.564825"], ["name", "Christopher Cruickshank II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Cleo Simonis"], ["description", "Amet id est. Delectus omnis rerum. Dolores excepturi voluptas."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.566244"], ["updated_at", "2023-02-02 19:49:45.566244"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:49:45.575616"], ["updated_at", "2023-02-02 19:49:45.575616"], ["name", "Bradford Tillman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilford Schaden"], ["description", "Corrupti consequatur architecto. Commodi atque enim. Quia nam repellendus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.577107"], ["updated_at", "2023-02-02 19:49:45.577107"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (1.8ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Malisa Carter I"], ["description", "Aliquam quis nemo. Suscipit cumque facilis. Iure et non."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.594514"], ["updated_at", "2023-02-02 19:49:45.594514"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darrick Goodwin"], ["created_at", "2023-02-02 19:49:45.596977"], ["updated_at", "2023-02-02 19:49:45.596977"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Stacey Stiedemann"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.598849"], ["updated_at", "2023-02-02 19:49:45.598849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jamison Donnelly"], ["description", "Dolorum reiciendis in. Sunt modi inventore. Deserunt tenetur eos."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.601584"], ["updated_at", "2023-02-02 19:49:45.601584"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ardath Daugherty III"], ["created_at", "2023-02-02 19:49:45.603061"], ["updated_at", "2023-02-02 19:49:45.603061"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yasmine Harber MD"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.603917"], ["updated_at", "2023-02-02 19:49:45.603917"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yuri Koelpin"], ["description", "Officiis dolor qui. Quasi vel officia. Veniam aperiam consequuntur."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.607600"], ["updated_at", "2023-02-02 19:49:45.607600"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wm Emard"], ["created_at", "2023-02-02 19:49:45.609296"], ["updated_at", "2023-02-02 19:49:45.609296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Preston Klein"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.610340"], ["updated_at", "2023-02-02 19:49:45.610340"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss George Sauer"], ["description", "Placeat impedit assumenda. Ullam voluptatem est. Necessitatibus aperiam ipsa."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.613518"], ["updated_at", "2023-02-02 19:49:45.613518"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Kimberely Kovacek"], ["created_at", "2023-02-02 19:49:45.615291"], ["updated_at", "2023-02-02 19:49:45.615291"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Na Welch"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.616181"], ["updated_at", "2023-02-02 19:49:45.616181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Chanell Jenkins"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.617158"], ["updated_at", "2023-02-02 19:49:45.617158"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gilbert Thompson"], ["correct", 1], ["created_at", "2023-02-02 19:49:45.618817"], ["updated_at", "2023-02-02 19:49:45.618817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Nestor Reinger IV"], ["correct", 1], ["created_at", "2023-02-02 19:49:45.620157"], ["updated_at", "2023-02-02 19:49:45.620157"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bill Carter"], ["description", "Quae architecto ducimus. Dignissimos qui rerum. Non quas dolor."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.627417"], ["updated_at", "2023-02-02 19:49:45.627417"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "James Zulauf"], ["created_at", "2023-02-02 19:49:45.630049"], ["updated_at", "2023-02-02 19:49:45.630049"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rickie Ullrich III"], ["description", "Qui praesentium ea. Ut et laboriosam. Non sit perferendis."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.633068"], ["updated_at", "2023-02-02 19:49:45.633068"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cathi Abbott"], ["created_at", "2023-02-02 19:49:45.634396"], ["updated_at", "2023-02-02 19:49:45.634396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Noah Jacobs"], ["description", "Modi repellat sapiente. Nihil eos aliquam. Nobis dolorum quis."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.637811"], ["updated_at", "2023-02-02 19:49:45.637811"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Houston Bartoletti"], ["created_at", "2023-02-02 19:49:45.638913"], ["updated_at", "2023-02-02 19:49:45.638913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Katina Armstrong"], ["correct", 1], ["created_at", "2023-02-02 19:49:45.639687"], ["updated_at", "2023-02-02 19:49:45.639687"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Denae Klocko"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.640476"], ["updated_at", "2023-02-02 19:49:45.640476"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lenard Gleichner"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.641371"], ["updated_at", "2023-02-02 19:49:45.641371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Werner Skiles"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.642403"], ["updated_at", "2023-02-02 19:49:45.642403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Margie Kris"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.643224"], ["updated_at", "2023-02-02 19:49:45.643224"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Davis Abshire"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.644109"], ["updated_at", "2023-02-02 19:49:45.644109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Madge Reinger"], ["correct", 0], ["created_at", "2023-02-02 19:49:45.644927"], ["updated_at", "2023-02-02 19:49:45.644927"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Ronald Kris"], ["description", "Ut atque exercitationem. Qui facilis aut. Commodi quis et."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.655680"], ["updated_at", "2023-02-02 19:49:45.655680"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Elidia Erdman"], ["description", "Dolorem eligendi et. Odio et aliquam. Dolores qui ut."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.658025"], ["updated_at", "2023-02-02 19:49:45.658025"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Kattie McDermott"], ["description", "Eum accusantium et. Ut voluptate officiis. Ut dolores rerum."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.664844"], ["updated_at", "2023-02-02 19:49:45.664844"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leonel Schumm"], ["description", "Molestias pariatur voluptates. Nesciunt et voluptas. Et dolorem excepturi."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.666341"], ["updated_at", "2023-02-02 19:49:45.666341"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Debrah Gibson IV"], ["created_at", "2023-02-02 19:49:45.667319"], ["updated_at", "2023-02-02 19:49:45.667319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Gil Marquardt"], ["created_at", "2023-02-02 19:49:45.668316"], ["updated_at", "2023-02-02 19:49:45.668316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shawna McKenzie"], ["created_at", "2023-02-02 19:49:45.669200"], ["updated_at", "2023-02-02 19:49:45.669200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hue Berge Jr."], ["created_at", "2023-02-02 19:49:45.670029"], ["updated_at", "2023-02-02 19:49:45.670029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Francoise Douglas"], ["created_at", "2023-02-02 19:49:45.670789"], ["updated_at", "2023-02-02 19:49:45.670789"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adan Hodkiewicz"], ["created_at", "2023-02-02 19:49:45.671489"], ["updated_at", "2023-02-02 19:49:45.671489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Glen Jakubowski"], ["description", "Non alias eos. Et reiciendis labore. Sunt officia quis."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.673971"], ["updated_at", "2023-02-02 19:49:45.673971"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gilma Effertz"], ["description", "Sint possimus quisquam. Quia tempora sit. Non et quas."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:49:45.677487"], ["updated_at", "2023-02-02 19:49:45.677487"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:03.935399"], ["updated_at", "2023-02-02 19:50:03.935399"], ["name", "Jesica Walsh"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Leeanne Will"], ["description", "Voluptas iure quisquam. Odit accusantium sed. Sit repellat voluptatem."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:03.940647"], ["updated_at", "2023-02-02 19:50:03.940647"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (5.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Buford Doyle"], ["created_at", "2023-02-02 19:50:03.958317"], ["updated_at", "2023-02-02 19:50:03.958317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jc Jaskolski"], ["correct", 0], ["created_at", "2023-02-02 19:50:03.961719"], ["updated_at", "2023-02-02 19:50:03.961719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:50:03.964806"], ["updated_at", "2023-02-02 19:50:03.964806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:03.980191"], ["updated_at", "2023-02-02 19:50:03.980191"], ["name", "Dorathy Smitham VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Earle Bartoletti III"], ["description", "Et omnis dolorem. Maiores animi fuga. Aperiam molestias omnis."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:03.981633"], ["updated_at", "2023-02-02 19:50:03.981633"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elvis Stokes"], ["created_at", "2023-02-02 19:50:03.984174"], ["updated_at", "2023-02-02 19:50:03.984174"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Keven Altenwerth VM"], ["correct", 0], ["created_at", "2023-02-02 19:50:03.985203"], ["updated_at", "2023-02-02 19:50:03.985203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:50:03.986319"], ["updated_at", "2023-02-02 19:50:03.986319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:03.988264"], ["updated_at", "2023-02-02 19:50:03.988264"], ["name", "Georgene Schneider"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Russ Trantow"], ["description", "Itaque culpa fuga. Aut et dignissimos. Culpa qui ipsam."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:03.989490"], ["updated_at", "2023-02-02 19:50:03.989490"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Devin Little"], ["created_at", "2023-02-02 19:50:03.991435"], ["updated_at", "2023-02-02 19:50:03.991435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Barry Wilkinson"], ["correct", 0], ["created_at", "2023-02-02 19:50:03.992195"], ["updated_at", "2023-02-02 19:50:03.992195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:50:03.993399"], ["updated_at", "2023-02-02 19:50:03.993399"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:03.995934"], ["updated_at", "2023-02-02 19:50:03.995934"], ["name", "Berry Shanahan Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ali Fisher"], ["description", "Laboriosam enim eos. Doloribus modi cupiditate. Optio dolores ut."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:03.997355"], ["updated_at", "2023-02-02 19:50:03.997355"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Tamra Bradtke"], ["created_at", "2023-02-02 19:50:03.999339"], ["updated_at", "2023-02-02 19:50:03.999339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Benny Ratke Ret."], ["correct", 0], ["created_at", "2023-02-02 19:50:04.000116"], ["updated_at", "2023-02-02 19:50:04.000116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-02 19:50:04.001140"], ["updated_at", "2023-02-02 19:50:04.001140"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:04.009973"], ["updated_at", "2023-02-02 19:50:04.009973"], ["name", "Lesia Waelchi"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Horacio Lynch"], ["description", "Non totam accusantium. Voluptatem aut nulla. Cupiditate incidunt accusantium."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.011758"], ["updated_at", "2023-02-02 19:50:04.011758"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-02 19:50:04.022075"], ["updated_at", "2023-02-02 19:50:04.022075"], ["name", "Andres Mante"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carey Denesik"], ["description", "Deserunt quas laudantium. Perferendis ut adipisci. Saepe quis quia."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.023574"], ["updated_at", "2023-02-02 19:50:04.023574"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.5ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Silvia Bogan"], ["description", "Nesciunt minus voluptatibus. Dolorem in quibusdam. Quos accusantium odio."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.040879"], ["updated_at", "2023-02-02 19:50:04.040879"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stanley Nikolaus"], ["created_at", "2023-02-02 19:50:04.042046"], ["updated_at", "2023-02-02 19:50:04.042046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Isaac Turner"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.042985"], ["updated_at", "2023-02-02 19:50:04.042985"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Breanna Jones"], ["description", "Unde rem incidunt. Nemo est et. Velit et magni."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.045490"], ["updated_at", "2023-02-02 19:50:04.045490"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Oda Herman"], ["created_at", "2023-02-02 19:50:04.047361"], ["updated_at", "2023-02-02 19:50:04.047361"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ambrose Farrell"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.048270"], ["updated_at", "2023-02-02 19:50:04.048270"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jose Wintheiser DC"], ["description", "Excepturi ut illum. Dolorem itaque aperiam. Reiciendis soluta corporis."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.051837"], ["updated_at", "2023-02-02 19:50:04.051837"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sandy Sawayn"], ["created_at", "2023-02-02 19:50:04.052953"], ["updated_at", "2023-02-02 19:50:04.052953"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Micheal Bruen"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.053775"], ["updated_at", "2023-02-02 19:50:04.053775"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.9ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Errol Wiegand"], ["description", "Enim non voluptate. Aliquid vel et. Tempore quae aut."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.058522"], ["updated_at", "2023-02-02 19:50:04.058522"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlota Raynor"], ["created_at", "2023-02-02 19:50:04.060469"], ["updated_at", "2023-02-02 19:50:04.060469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Richard Kiehn III"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.061996"], ["updated_at", "2023-02-02 19:50:04.061996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jewell Walsh"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.063400"], ["updated_at", "2023-02-02 19:50:04.063400"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lourie Pollich"], ["correct", 1], ["created_at", "2023-02-02 19:50:04.064536"], ["updated_at", "2023-02-02 19:50:04.064536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mr. Dolores Green"], ["correct", 1], ["created_at", "2023-02-02 19:50:04.065419"], ["updated_at", "2023-02-02 19:50:04.065419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brigitte Bechtelar"], ["description", "Voluptatem laboriosam nesciunt. Est optio nobis. Qui et autem."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.072953"], ["updated_at", "2023-02-02 19:50:04.072953"], ["survey_type", 0]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nikia Jacobs"], ["created_at", "2023-02-02 19:50:04.074965"], ["updated_at", "2023-02-02 19:50:04.074965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Viki Dibbert"], ["description", "Aspernatur consectetur nostrum. Soluta velit nostrum. Et quidem at."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.079502"], ["updated_at", "2023-02-02 19:50:04.079502"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Regine Little"], ["created_at", "2023-02-02 19:50:04.080861"], ["updated_at", "2023-02-02 19:50:04.080861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jacob Schaden"], ["description", "Hic sint architecto. Omnis officia corporis. Expedita totam maxime."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.086055"], ["updated_at", "2023-02-02 19:50:04.086055"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Wally Aufderhar"], ["created_at", "2023-02-02 19:50:04.088504"], ["updated_at", "2023-02-02 19:50:04.088504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Florencio Bechtelar Jr."], ["correct", 1], ["created_at", "2023-02-02 19:50:04.089606"], ["updated_at", "2023-02-02 19:50:04.089606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mitsue Bosco"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.091468"], ["updated_at", "2023-02-02 19:50:04.091468"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rudy Reichel DDS"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.093075"], ["updated_at", "2023-02-02 19:50:04.093075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Adolfo Hilll"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.094443"], ["updated_at", "2023-02-02 19:50:04.094443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Anette Prohaska"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.096339"], ["updated_at", "2023-02-02 19:50:04.096339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Kathrin Spinka"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.097714"], ["updated_at", "2023-02-02 19:50:04.097714"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Temika Beahan LLD"], ["correct", 0], ["created_at", "2023-02-02 19:50:04.100939"], ["updated_at", "2023-02-02 19:50:04.100939"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kimbra Hackett"], ["description", "Ducimus molestias iure. Doloremque repellendus error. Optio voluptatem error."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.112008"], ["updated_at", "2023-02-02 19:50:04.112008"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Austin Goodwin"], ["description", "Eius temporibus ea. Sed sit asperiores. Libero dolorem facilis."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.114677"], ["updated_at", "2023-02-02 19:50:04.114677"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Moses Medhurst"], ["description", "Sequi in at. Impedit repudiandae id. Aut odit ipsa."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.121986"], ["updated_at", "2023-02-02 19:50:04.121986"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Magaly Altenwerth Esq."], ["description", "Doloremque voluptas ut. Corrupti eos soluta. Nostrum inventore dolor."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.123552"], ["updated_at", "2023-02-02 19:50:04.123552"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Roxy Jacobson"], ["created_at", "2023-02-02 19:50:04.124429"], ["updated_at", "2023-02-02 19:50:04.124429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Royal Reichert"], ["created_at", "2023-02-02 19:50:04.125157"], ["updated_at", "2023-02-02 19:50:04.125157"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lita Willms"], ["created_at", "2023-02-02 19:50:04.125843"], ["updated_at", "2023-02-02 19:50:04.125843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Renaldo Dickens"], ["created_at", "2023-02-02 19:50:04.126590"], ["updated_at", "2023-02-02 19:50:04.126590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Doretha Terry"], ["created_at", "2023-02-02 19:50:04.127354"], ["updated_at", "2023-02-02 19:50:04.127354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tamie Lang"], ["created_at", "2023-02-02 19:50:04.128155"], ["updated_at", "2023-02-02 19:50:04.128155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amos Torp"], ["description", "Accusantium accusamus a. Ab odio omnis. Voluptates voluptatem voluptatem."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.131841"], ["updated_at", "2023-02-02 19:50:04.131841"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Myles Boyer"], ["description", "Sequi assumenda nam. Voluptas qui laborum. Ea non aut."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:50:04.135406"], ["updated_at", "2023-02-02 19:50:04.135406"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sena Heathcote"], ["description", "Qui nesciunt assumenda. Sit saepe optio. Nostrum natus est."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:51:36.747273"], ["updated_at", "2023-02-02 19:51:36.747273"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (2.1ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kristopher Block"], ["description", "Et at aut. Amet maxime impedit. Aliquid commodi ad."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:52:24.548966"], ["updated_at", "2023-02-02 19:52:24.548966"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Patricia Dibbert"], ["created_at", "2023-02-02 19:52:24.565202"], ["updated_at", "2023-02-02 19:52:24.565202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Lacy Glover"], ["created_at", "2023-02-02 19:52:24.568433"], ["updated_at", "2023-02-02 19:52:24.568433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Augustus Jacobi"], ["created_at", "2023-02-02 19:52:24.570524"], ["updated_at", "2023-02-02 19:52:24.570524"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Neville Bartell"], ["created_at", "2023-02-02 19:52:24.572296"], ["updated_at", "2023-02-02 19:52:24.572296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Jeannine O'Connell MD"], ["created_at", "2023-02-02 19:52:24.574110"], ["updated_at", "2023-02-02 19:52:24.574110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miles Hilpert"], ["description", "Vel facere corrupti. Quam eius nulla. Eius et facere."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 19:52:31.758820"], ["updated_at", "2023-02-02 19:52:31.758820"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Elyse Schultz"], ["created_at", "2023-02-02 19:52:31.786536"], ["updated_at", "2023-02-02 19:52:31.786536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Dee Runolfsson"], ["created_at", "2023-02-02 19:52:31.789580"], ["updated_at", "2023-02-02 19:52:31.789580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Fay Kautzer JD"], ["created_at", "2023-02-02 19:52:31.791553"], ["updated_at", "2023-02-02 19:52:31.791553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Sen. Hoyt Waelchi"], ["created_at", "2023-02-02 19:52:31.793245"], ["updated_at", "2023-02-02 19:52:31.793245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Fr. Kyoko Cummings"], ["created_at", "2023-02-02 19:52:31.794897"], ["updated_at", "2023-02-02 19:52:31.794897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.5ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (1.2ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (1.0ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.6ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lacey Mann"], ["description", "Qui magni nobis. Similique necessitatibus dignissimos. Omnis ducimus ea."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-02 20:00:16.323988"], ["updated_at", "2023-02-02 20:00:16.323988"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.6ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Frank Reichert"], ["description", "Eaque ad nobis. Non esse sit. Quibusdam dolores repudiandae."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:23:17.854971"], ["updated_at", "2023-02-03 09:23:17.854971"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.3ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julio Medhurst"], ["description", "Eveniet magnam deleniti. Iste excepturi voluptatem. Blanditiis repudiandae ullam."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:24:56.743972"], ["updated_at", "2023-02-03 09:24:56.743972"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + Survey::Question Load (0.4ms) SELECT "survey_questions".* FROM "survey_questions" /* loading for inspect */ LIMIT ? [["LIMIT", 11]] + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Clyde Witting"], ["description", "Cumque officiis iste. Officia hic quidem. Reiciendis iusto cum."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:26:15.376705"], ["updated_at", "2023-02-03 09:26:15.376705"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anjelica Ryan"], ["description", "Dignissimos et sunt. Aut est distinctio. Alias illo sapiente."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:26:34.366800"], ["updated_at", "2023-02-03 09:26:34.366800"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Arden Vandervort PhD"], ["created_at", "2023-02-03 09:26:34.398535"], ["updated_at", "2023-02-03 09:26:34.398535"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Gil Stiedemann"], ["created_at", "2023-02-03 09:26:34.402359"], ["updated_at", "2023-02-03 09:26:34.402359"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Vina Ondricka"], ["created_at", "2023-02-03 09:26:34.404769"], ["updated_at", "2023-02-03 09:26:34.404769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Arnulfo Dickens"], ["created_at", "2023-02-03 09:26:34.406716"], ["updated_at", "2023-02-03 09:26:34.406716"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", nil], ["text", "Sharonda Kohler V"], ["created_at", "2023-02-03 09:26:34.408642"], ["updated_at", "2023-02-03 09:26:34.408642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Theo Harvey"], ["description", "Asperiores quibusdam molestiae. Molestiae est odit. Maiores ea ut."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:27:03.677640"], ["updated_at", "2023-02-03 09:27:03.677640"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Neville Stoltenberg"], ["description", "Aspernatur optio dolor. Totam dolor ullam. Quis similique et."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:27:25.147780"], ["updated_at", "2023-02-03 09:27:25.147780"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.3ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hanh Stehr"], ["description", "Similique consequatur omnis. Sint dolorem voluptatem. Aspernatur dolore ut."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:27:42.891277"], ["updated_at", "2023-02-03 09:27:42.891277"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Floretta Schaden DVM"], ["description", "Amet nisi odit. Eaque ducimus autem. In consequatur architecto."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:28:24.750236"], ["updated_at", "2023-02-03 09:28:24.750236"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emanuel Mohr"], ["description", "Rerum ducimus veritatis. Quisquam repellat nesciunt. Suscipit et ducimus."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:28:46.972396"], ["updated_at", "2023-02-03 09:28:46.972396"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" /* loading for inspect */ LIMIT ? [["LIMIT", 11]] + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jonas Paucek Jr."], ["description", "Magni quisquam nihil. Quod qui dicta. Et iusto et."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:32:46.201191"], ["updated_at", "2023-02-03 09:32:46.201191"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (1.1ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Major Schmeler"], ["description", "Odio qui voluptatum. Provident aliquid qui. Voluptates eos eos."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:37:29.735372"], ["updated_at", "2023-02-03 09:37:29.735372"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeffry Bechtelar"], ["description", "Ab rem itaque. Labore fugit laboriosam. Nostrum sed qui."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:38:25.163289"], ["updated_at", "2023-02-03 09:38:25.163289"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.2ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.3ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Douglass Price"], ["description", "Architecto facilis debitis. Sit corporis aliquam. Aut aut eaque."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:39:49.168392"], ["updated_at", "2023-02-03 09:39:49.168392"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.3ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.5ms) SAVEPOINT active_record_1 + Survey::Survey Create (2.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Caren Mills"], ["description", "Facilis doloribus qui. Et nulla ab. Aliquam impedit fugit."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:55:07.874697"], ["updated_at", "2023-02-03 09:55:07.874697"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eileen Rodriguez"], ["description", "Dolor provident et. Temporibus porro ea. Eum quia voluptatem."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:55:14.676933"], ["updated_at", "2023-02-03 09:55:14.676933"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Frankie Windler"], ["description", "Necessitatibus dolorum beatae. Delectus eveniet eos. Ut earum autem."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:55:21.652035"], ["updated_at", "2023-02-03 09:55:21.652035"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mckinley Rolfson"], ["description", "Aliquam similique placeat. Commodi enim fuga. Dolorum et quia."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:55:55.542881"], ["updated_at", "2023-02-03 09:55:55.542881"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Claud Towne"], ["description", "Magni molestiae corrupti. Reprehenderit explicabo atque. Saepe deleniti quis."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:56:07.698419"], ["updated_at", "2023-02-03 09:56:07.698419"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Theressa Wiza"], ["description", "Deleniti officia nihil. Inventore quis est. Maiores eum nostrum."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:57:58.193087"], ["updated_at", "2023-02-03 09:57:58.193087"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jason Mann"], ["description", "Molestias at voluptatem. Est pariatur deserunt. Ipsam quia facere."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:57:58.201497"], ["updated_at", "2023-02-03 09:57:58.201497"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tamika Steuber"], ["created_at", "2023-02-03 09:57:58.202000"], ["updated_at", "2023-02-03 09:57:58.202000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jeffery Harvey IV"], ["created_at", "2023-02-03 09:57:58.203142"], ["updated_at", "2023-02-03 09:57:58.203142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ronnie Stoltenberg III"], ["created_at", "2023-02-03 09:57:58.203830"], ["updated_at", "2023-02-03 09:57:58.203830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Erwin Corkery DC"], ["created_at", "2023-02-03 09:57:58.204508"], ["updated_at", "2023-02-03 09:57:58.204508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Erna Cremin"], ["created_at", "2023-02-03 09:57:58.205147"], ["updated_at", "2023-02-03 09:57:58.205147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 09:57:58.210700"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.7ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hillary Lynch"], ["description", "Non voluptatum dolore. In natus accusamus. Corrupti aut consequuntur."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 09:58:24.234721"], ["updated_at", "2023-02-03 09:58:24.234721"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Claud Lind"], ["description", "Ea voluptatibus sapiente. Nihil ut eligendi. Voluptatem id error."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:09:13.639834"], ["updated_at", "2023-02-03 10:09:13.639834"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Malcom McCullough"], ["description", "Culpa dicta veniam. Omnis inventore officiis. Incidunt dolores dolorem."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:09:13.648693"], ["updated_at", "2023-02-03 10:09:13.648693"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bryon Marks"], ["created_at", "2023-02-03 10:09:13.649584"], ["updated_at", "2023-02-03 10:09:13.649584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Branden Champlin"], ["created_at", "2023-02-03 10:09:13.650834"], ["updated_at", "2023-02-03 10:09:13.650834"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Yoshiko Sporer"], ["created_at", "2023-02-03 10:09:13.651604"], ["updated_at", "2023-02-03 10:09:13.651604"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Sherron Bode"], ["created_at", "2023-02-03 10:09:13.652281"], ["updated_at", "2023-02-03 10:09:13.652281"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Charlyn Cormier"], ["created_at", "2023-02-03 10:09:13.652929"], ["updated_at", "2023-02-03 10:09:13.652929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:09:13.658721"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lyn Waters"], ["description", "Delectus tenetur quaerat. Quae non qui. Corrupti tempore aperiam."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:11:47.903009"], ["updated_at", "2023-02-03 10:11:47.903009"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Leon Rodriguez"], ["description", "Saepe rem ducimus. Quam quaerat molestiae. Necessitatibus quas ipsam."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:11:47.912107"], ["updated_at", "2023-02-03 10:11:47.912107"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lashonda Davis III"], ["created_at", "2023-02-03 10:11:47.912986"], ["updated_at", "2023-02-03 10:11:47.912986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elvia Gusikowski"], ["created_at", "2023-02-03 10:11:47.914214"], ["updated_at", "2023-02-03 10:11:47.914214"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marlon Kemmer Ret."], ["created_at", "2023-02-03 10:11:47.914922"], ["updated_at", "2023-02-03 10:11:47.914922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laureen Price"], ["created_at", "2023-02-03 10:11:47.915553"], ["updated_at", "2023-02-03 10:11:47.915553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ben O'Conner"], ["created_at", "2023-02-03 10:11:47.916185"], ["updated_at", "2023-02-03 10:11:47.916185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:11:47.921872"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (1.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (1.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rodrigo Fritsch"], ["description", "Possimus ut veniam. Magnam odit adipisci. Eius ratione architecto."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:12:14.180762"], ["updated_at", "2023-02-03 10:12:14.180762"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (1.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tracie Glover"], ["description", "Aut mollitia modi. Aut sit quisquam. Et ut repellendus."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:12:28.878274"], ["updated_at", "2023-02-03 10:12:28.878274"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dennis Pollich"], ["description", "Debitis et provident. Aut exercitationem voluptas. Est magni vitae."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:12:52.470625"], ["updated_at", "2023-02-03 10:12:52.470625"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ellsworth Fritsch"], ["description", "Voluptas laboriosam aut. Tempora libero nulla. Autem veniam dolor."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:12:52.478639"], ["updated_at", "2023-02-03 10:12:52.478639"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lorri Rolfson"], ["created_at", "2023-02-03 10:12:52.479368"], ["updated_at", "2023-02-03 10:12:52.479368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chris Spencer DDS"], ["created_at", "2023-02-03 10:12:52.480347"], ["updated_at", "2023-02-03 10:12:52.480347"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gaynelle Walker"], ["created_at", "2023-02-03 10:12:52.481027"], ["updated_at", "2023-02-03 10:12:52.481027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jonas Walker"], ["created_at", "2023-02-03 10:12:52.481738"], ["updated_at", "2023-02-03 10:12:52.481738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Collene Feeney"], ["created_at", "2023-02-03 10:12:52.482447"], ["updated_at", "2023-02-03 10:12:52.482447"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.4ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:12:52.488102"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wilburn Bailey"], ["description", "Qui quibusdam voluptatem. Eligendi dolorem aut. Nisi vel odio."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:14:43.965116"], ["updated_at", "2023-02-03 10:14:43.965116"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yan Rempel"], ["description", "Explicabo quia alias. Inventore ex magni. Quasi sint tempore."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:14:43.984039"], ["updated_at", "2023-02-03 10:14:43.984039"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jae Kutch"], ["description", "Voluptas vel non. Eligendi fuga aut. Error laboriosam officia."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:14:44.011589"], ["updated_at", "2023-02-03 10:14:44.011589"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zada Morissette"], ["description", "Ut vel ut. Facere numquam ratione. Odio quisquam est."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:14:44.014285"], ["updated_at", "2023-02-03 10:14:44.014285"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yvone Kerluke"], ["description", "Quia eum eum. Hic voluptatem et. Quod velit sit."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:14:44.017414"], ["updated_at", "2023-02-03 10:14:44.017414"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Ethelyn Abbott"], ["description", "Blanditiis sed vel. Ipsam commodi magnam. Minus quae ut."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:41.243291"], ["updated_at", "2023-02-03 10:23:41.243291"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chanda Kuhn"], ["description", "Rerum quasi odio. Mollitia quis consequuntur. Et placeat porro."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:41.261513"], ["updated_at", "2023-02-03 10:23:41.261513"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeannie Kessler"], ["description", "Aut maiores hic. Nostrum est est. Aliquam quis dolore."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:41.288548"], ["updated_at", "2023-02-03 10:23:41.288548"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lecia Hansen"], ["description", "Voluptatem et omnis. In sed omnis. Sit sunt culpa."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:41.289992"], ["updated_at", "2023-02-03 10:23:41.289992"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cassey Mitchell"], ["description", "Odio ducimus blanditiis. Officia temporibus nemo. Perspiciatis impedit neque."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:41.292607"], ["updated_at", "2023-02-03 10:23:41.292607"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Dorene Rogahn"], ["description", "Quidem dignissimos iure. Vitae temporibus fugit. Rerum impedit possimus."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:23:57.308891"], ["updated_at", "2023-02-03 10:23:57.308891"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elfreda Gulgowski"], ["description", "Sit numquam vero. Repellat corrupti velit. Aut distinctio totam."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:33.145205"], ["updated_at", "2023-02-03 10:24:33.145205"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loan Nader"], ["description", "Laudantium in eum. Illum non ea. Consequuntur sequi ut."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:33.153337"], ["updated_at", "2023-02-03 10:24:33.153337"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Christoper Steuber"], ["created_at", "2023-02-03 10:24:33.154017"], ["updated_at", "2023-02-03 10:24:33.154017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Yanira Bahringer"], ["created_at", "2023-02-03 10:24:33.155147"], ["updated_at", "2023-02-03 10:24:33.155147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Philomena Mosciski"], ["created_at", "2023-02-03 10:24:33.155806"], ["updated_at", "2023-02-03 10:24:33.155806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Buford Heller V"], ["created_at", "2023-02-03 10:24:33.156474"], ["updated_at", "2023-02-03 10:24:33.156474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hue Heller"], ["created_at", "2023-02-03 10:24:33.157117"], ["updated_at", "2023-02-03 10:24:33.157117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:24:33.163714"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rebekah Donnelly PhD"], ["description", "Eum eos nihil. Architecto doloremque ullam. Natus repellat est."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:39.968154"], ["updated_at", "2023-02-03 10:24:39.968154"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jay Feest"], ["description", "Occaecati et laboriosam. Sint in qui. Voluptatem optio in."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:39.984332"], ["updated_at", "2023-02-03 10:24:39.984332"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Armand Brown III"], ["description", "Qui quis incidunt. Nemo alias consequuntur. Sit quia nihil."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:39.991856"], ["updated_at", "2023-02-03 10:24:39.991856"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eusebia Padberg"], ["created_at", "2023-02-03 10:24:39.992503"], ["updated_at", "2023-02-03 10:24:39.992503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Antonetta Kub V"], ["created_at", "2023-02-03 10:24:39.993518"], ["updated_at", "2023-02-03 10:24:39.993518"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dominick Ritchie"], ["created_at", "2023-02-03 10:24:39.994249"], ["updated_at", "2023-02-03 10:24:39.994249"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Everett Lockman"], ["created_at", "2023-02-03 10:24:39.994957"], ["updated_at", "2023-02-03 10:24:39.994957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Geraldo Koelpin"], ["created_at", "2023-02-03 10:24:39.995625"], ["updated_at", "2023-02-03 10:24:39.995625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:24:40.002367"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sid Hickle"], ["description", "Tempore quod harum. Eum autem atque. Rerum quis et."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:40.007144"], ["updated_at", "2023-02-03 10:24:40.007144"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Sherril Kutch"], ["description", "Ullam nostrum voluptates. Sint molestiae voluptas. Laborum velit non."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:40.008865"], ["updated_at", "2023-02-03 10:24:40.008865"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Osvaldo Lueilwitz"], ["created_at", "2023-02-03 10:24:40.009216"], ["updated_at", "2023-02-03 10:24:40.009216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wendell McCullough"], ["created_at", "2023-02-03 10:24:40.009872"], ["updated_at", "2023-02-03 10:24:40.009872"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Calvin Lind"], ["created_at", "2023-02-03 10:24:40.010531"], ["updated_at", "2023-02-03 10:24:40.010531"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ollie Hammes"], ["created_at", "2023-02-03 10:24:40.011158"], ["updated_at", "2023-02-03 10:24:40.011158"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Clair MacGyver"], ["created_at", "2023-02-03 10:24:40.011816"], ["updated_at", "2023-02-03 10:24:40.011816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Camille Leffler"], ["created_at", "2023-02-03 10:24:40.012530"], ["updated_at", "2023-02-03 10:24:40.012530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shayla Mohr"], ["created_at", "2023-02-03 10:24:40.013381"], ["updated_at", "2023-02-03 10:24:40.013381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Jules Sipes"], ["created_at", "2023-02-03 10:24:40.014147"], ["updated_at", "2023-02-03 10:24:40.014147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laureen Fritsch"], ["created_at", "2023-02-03 10:24:40.014849"], ["updated_at", "2023-02-03 10:24:40.014849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mitchell Crona"], ["created_at", "2023-02-03 10:24:40.015581"], ["updated_at", "2023-02-03 10:24:40.015581"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosina Wolff"], ["created_at", "2023-02-03 10:24:40.016643"], ["updated_at", "2023-02-03 10:24:40.016643"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Irina Funk"], ["created_at", "2023-02-03 10:24:40.017415"], ["updated_at", "2023-02-03 10:24:40.017415"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.4ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Santina Leuschke"], ["description", "Repellendus id perferendis. Odio tempora in. Voluptatem assumenda tempore."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:24:40.032672"], ["updated_at", "2023-02-03 10:24:40.032672"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Isaac Flatley"], ["description", "Natus impedit ratione. Corrupti debitis et. Sequi ut quidem."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.585569"], ["updated_at", "2023-02-03 10:26:55.585569"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Otha Sawayn LLD"], ["description", "Voluptatum beatae sint. Accusantium quis iure. Cupiditate accusamus aut."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.607578"], ["updated_at", "2023-02-03 10:26:55.607578"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Todd Thiel"], ["description", "Reprehenderit est doloribus. Doloremque numquam vel. Itaque debitis reiciendis."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.615649"], ["updated_at", "2023-02-03 10:26:55.615649"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brenton Schiller"], ["created_at", "2023-02-03 10:26:55.616524"], ["updated_at", "2023-02-03 10:26:55.616524"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kittie Boyer"], ["created_at", "2023-02-03 10:26:55.617770"], ["updated_at", "2023-02-03 10:26:55.617770"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lara Sauer DVM"], ["created_at", "2023-02-03 10:26:55.618514"], ["updated_at", "2023-02-03 10:26:55.618514"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Lena Pouros"], ["created_at", "2023-02-03 10:26:55.619222"], ["updated_at", "2023-02-03 10:26:55.619222"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Karl Stiedemann"], ["created_at", "2023-02-03 10:26:55.619884"], ["updated_at", "2023-02-03 10:26:55.619884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:26:55.626002"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Jaimie Gerhold"], ["description", "Natus et asperiores. Laudantium eos ipsam. Doloremque soluta eos."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.631292"], ["updated_at", "2023-02-03 10:26:55.631292"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Inocencia Schumm"], ["description", "Ipsum magni atque. Animi assumenda ullam. Vitae dignissimos ex."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.633259"], ["updated_at", "2023-02-03 10:26:55.633259"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Haley Gulgowski"], ["created_at", "2023-02-03 10:26:55.633783"], ["updated_at", "2023-02-03 10:26:55.633783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Evonne Kerluke"], ["created_at", "2023-02-03 10:26:55.634759"], ["updated_at", "2023-02-03 10:26:55.634759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lisandra Rogahn"], ["created_at", "2023-02-03 10:26:55.635557"], ["updated_at", "2023-02-03 10:26:55.635557"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nathaniel Johnson"], ["created_at", "2023-02-03 10:26:55.636253"], ["updated_at", "2023-02-03 10:26:55.636253"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Josh Daugherty"], ["created_at", "2023-02-03 10:26:55.636920"], ["updated_at", "2023-02-03 10:26:55.636920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alycia Bednar"], ["created_at", "2023-02-03 10:26:55.638103"], ["updated_at", "2023-02-03 10:26:55.638103"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Terrie Gutmann"], ["created_at", "2023-02-03 10:26:55.639118"], ["updated_at", "2023-02-03 10:26:55.639118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Winfred Moen"], ["created_at", "2023-02-03 10:26:55.639826"], ["updated_at", "2023-02-03 10:26:55.639826"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hollis Metz"], ["created_at", "2023-02-03 10:26:55.640523"], ["updated_at", "2023-02-03 10:26:55.640523"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Debbi Kiehn"], ["created_at", "2023-02-03 10:26:55.641207"], ["updated_at", "2023-02-03 10:26:55.641207"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Horacio Hilll"], ["created_at", "2023-02-03 10:26:55.641896"], ["updated_at", "2023-02-03 10:26:55.641896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shawanda Tremblay"], ["created_at", "2023-02-03 10:26:55.642590"], ["updated_at", "2023-02-03 10:26:55.642590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.3ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosalyn Terry"], ["description", "Error qui eos. Qui assumenda blanditiis. Odit omnis vitae."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:26:55.656171"], ["updated_at", "2023-02-03 10:26:55.656171"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lorita Ruecker CPA"], ["description", "Qui eligendi consequatur. Minima delectus aliquam. Ipsa ipsam eum."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.317246"], ["updated_at", "2023-02-03 10:27:26.317246"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jesse Breitenberg"], ["description", "Velit nam repudiandae. Modi ut vero. Qui eveniet neque."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.340321"], ["updated_at", "2023-02-03 10:27:26.340321"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Grant Robel"], ["description", "Laboriosam et in. Perferendis enim molestiae. Suscipit doloremque magnam."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.346975"], ["updated_at", "2023-02-03 10:27:26.346975"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elden O'Reilly"], ["created_at", "2023-02-03 10:27:26.347653"], ["updated_at", "2023-02-03 10:27:26.347653"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lashanda Ondricka"], ["created_at", "2023-02-03 10:27:26.348636"], ["updated_at", "2023-02-03 10:27:26.348636"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lynne Trantow LLD"], ["created_at", "2023-02-03 10:27:26.349378"], ["updated_at", "2023-02-03 10:27:26.349378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shawn Schuster"], ["created_at", "2023-02-03 10:27:26.350034"], ["updated_at", "2023-02-03 10:27:26.350034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Brenton Langworth"], ["created_at", "2023-02-03 10:27:26.350713"], ["updated_at", "2023-02-03 10:27:26.350713"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:27:26.351832"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Laurine Kihn"], ["description", "Molestias est ea. Quisquam sapiente aut. Commodi nobis cupiditate."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.356469"], ["updated_at", "2023-02-03 10:27:26.356469"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Seth Wiza DO"], ["description", "Incidunt quod facilis. Placeat aliquid ut. Est sunt et."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.358397"], ["updated_at", "2023-02-03 10:27:26.358397"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Winfred White"], ["created_at", "2023-02-03 10:27:26.358759"], ["updated_at", "2023-02-03 10:27:26.358759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melda Beier"], ["created_at", "2023-02-03 10:27:26.359548"], ["updated_at", "2023-02-03 10:27:26.359548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Merlin Hessel"], ["created_at", "2023-02-03 10:27:26.360268"], ["updated_at", "2023-02-03 10:27:26.360268"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Robert Hilpert"], ["created_at", "2023-02-03 10:27:26.360935"], ["updated_at", "2023-02-03 10:27:26.360935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jed Rippin"], ["created_at", "2023-02-03 10:27:26.361606"], ["updated_at", "2023-02-03 10:27:26.361606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shirlee Jacobs"], ["created_at", "2023-02-03 10:27:26.362261"], ["updated_at", "2023-02-03 10:27:26.362261"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Alecia Cummerata"], ["created_at", "2023-02-03 10:27:26.363647"], ["updated_at", "2023-02-03 10:27:26.363647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Matthew Beer"], ["created_at", "2023-02-03 10:27:26.364452"], ["updated_at", "2023-02-03 10:27:26.364452"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anthony Marquardt V"], ["created_at", "2023-02-03 10:27:26.365242"], ["updated_at", "2023-02-03 10:27:26.365242"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sylvia Fadel JD"], ["created_at", "2023-02-03 10:27:26.366105"], ["updated_at", "2023-02-03 10:27:26.366105"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fidelia Connelly"], ["created_at", "2023-02-03 10:27:26.366765"], ["updated_at", "2023-02-03 10:27:26.366765"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Georgeanna Stark"], ["created_at", "2023-02-03 10:27:26.367462"], ["updated_at", "2023-02-03 10:27:26.367462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Xiomara Considine"], ["description", "Alias tempora non. Enim totam animi. Sunt quis nam."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:26.369720"], ["updated_at", "2023-02-03 10:27:26.369720"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Elton Marvin"], ["description", "Architecto veniam earum. Accusamus quaerat eos. Ut quis voluptates."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:35.959878"], ["updated_at", "2023-02-03 10:27:35.959878"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sheba Abernathy Jr."], ["description", "Dolores sunt et. Facere et est. Voluptatibus laboriosam et."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:35.976647"], ["updated_at", "2023-02-03 10:27:35.976647"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Angelo Bruen"], ["description", "Aliquam ea omnis. Et rerum officiis. Quo ut rerum."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:35.984502"], ["updated_at", "2023-02-03 10:27:35.984502"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amie Roob"], ["created_at", "2023-02-03 10:27:35.985147"], ["updated_at", "2023-02-03 10:27:35.985147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Virgie Stokes"], ["created_at", "2023-02-03 10:27:35.986149"], ["updated_at", "2023-02-03 10:27:35.986149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rocco Balistreri"], ["created_at", "2023-02-03 10:27:35.986843"], ["updated_at", "2023-02-03 10:27:35.986843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sophia Mitchell"], ["created_at", "2023-02-03 10:27:35.987510"], ["updated_at", "2023-02-03 10:27:35.987510"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hector Kunze"], ["created_at", "2023-02-03 10:27:35.988215"], ["updated_at", "2023-02-03 10:27:35.988215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:27:35.994567"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Nolan Windler"], ["description", "Consequatur aspernatur ad. Molestiae dolorum reprehenderit. Laudantium alias tenetur."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:36.000560"], ["updated_at", "2023-02-03 10:27:36.000560"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anjanette Corwin"], ["description", "Maxime dolor sapiente. Ut quis voluptatum. Beatae ab placeat."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:36.003271"], ["updated_at", "2023-02-03 10:27:36.003271"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Robt Osinski"], ["created_at", "2023-02-03 10:27:36.004424"], ["updated_at", "2023-02-03 10:27:36.004424"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Maria Hermann"], ["created_at", "2023-02-03 10:27:36.005630"], ["updated_at", "2023-02-03 10:27:36.005630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Shaun Moen"], ["created_at", "2023-02-03 10:27:36.006478"], ["updated_at", "2023-02-03 10:27:36.006478"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jane Sporer"], ["created_at", "2023-02-03 10:27:36.007211"], ["updated_at", "2023-02-03 10:27:36.007211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Tashia Ledner"], ["created_at", "2023-02-03 10:27:36.007947"], ["updated_at", "2023-02-03 10:27:36.007947"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Floretta Homenick"], ["created_at", "2023-02-03 10:27:36.008645"], ["updated_at", "2023-02-03 10:27:36.008645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Toi Schmidt"], ["created_at", "2023-02-03 10:27:36.009567"], ["updated_at", "2023-02-03 10:27:36.009567"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Doris Medhurst Sr."], ["created_at", "2023-02-03 10:27:36.010254"], ["updated_at", "2023-02-03 10:27:36.010254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Luisa Homenick"], ["created_at", "2023-02-03 10:27:36.010885"], ["updated_at", "2023-02-03 10:27:36.010885"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Audie Ernser"], ["created_at", "2023-02-03 10:27:36.011537"], ["updated_at", "2023-02-03 10:27:36.011537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eladia DuBuque"], ["created_at", "2023-02-03 10:27:36.012186"], ["updated_at", "2023-02-03 10:27:36.012186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shani Bashirian"], ["created_at", "2023-02-03 10:27:36.012877"], ["updated_at", "2023-02-03 10:27:36.012877"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Porter Stark"], ["description", "Excepturi nemo non. Ut dolor enim. Nam voluptate porro."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:36.026857"], ["updated_at", "2023-02-03 10:27:36.026857"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donny Spencer"], ["description", "Iste illo laudantium. Accusamus id rerum. Dolores tenetur omnis."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.201156"], ["updated_at", "2023-02-03 10:27:48.201156"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Abdul Johnston"], ["description", "Dolorem fugit recusandae. Et sit cumque. Aut animi quia."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.223754"], ["updated_at", "2023-02-03 10:27:48.223754"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Chase Armstrong"], ["description", "Rem quia minima. Excepturi quidem architecto. Aspernatur blanditiis sit."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.230715"], ["updated_at", "2023-02-03 10:27:48.230715"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lou Wolf DO"], ["created_at", "2023-02-03 10:27:48.231377"], ["updated_at", "2023-02-03 10:27:48.231377"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wesley Christiansen Ret."], ["created_at", "2023-02-03 10:27:48.232481"], ["updated_at", "2023-02-03 10:27:48.232481"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jeremiah Prohaska DO"], ["created_at", "2023-02-03 10:27:48.233218"], ["updated_at", "2023-02-03 10:27:48.233218"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wes McCullough II"], ["created_at", "2023-02-03 10:27:48.233978"], ["updated_at", "2023-02-03 10:27:48.233978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mathew Rowe"], ["created_at", "2023-02-03 10:27:48.234667"], ["updated_at", "2023-02-03 10:27:48.234667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:27:48.235774"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hipolito Champlin"], ["description", "Impedit pariatur mollitia. Rerum debitis nihil. Optio commodi tenetur."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.240553"], ["updated_at", "2023-02-03 10:27:48.240553"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Conrad Kunze"], ["description", "Expedita dolor odit. Dolorem eos ut. Vel saepe mollitia."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.242546"], ["updated_at", "2023-02-03 10:27:48.242546"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Orville Marks"], ["created_at", "2023-02-03 10:27:48.242912"], ["updated_at", "2023-02-03 10:27:48.242912"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eve Spencer"], ["created_at", "2023-02-03 10:27:48.243576"], ["updated_at", "2023-02-03 10:27:48.243576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nelly Rohan"], ["created_at", "2023-02-03 10:27:48.244247"], ["updated_at", "2023-02-03 10:27:48.244247"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carman McDermott"], ["created_at", "2023-02-03 10:27:48.244896"], ["updated_at", "2023-02-03 10:27:48.244896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Beaulah Littel"], ["created_at", "2023-02-03 10:27:48.245555"], ["updated_at", "2023-02-03 10:27:48.245555"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jenifer Willms"], ["created_at", "2023-02-03 10:27:48.246339"], ["updated_at", "2023-02-03 10:27:48.246339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dianna Jenkins"], ["created_at", "2023-02-03 10:27:48.247922"], ["updated_at", "2023-02-03 10:27:48.247922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jackson Denesik DVM"], ["created_at", "2023-02-03 10:27:48.249081"], ["updated_at", "2023-02-03 10:27:48.249081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Era Collins III"], ["created_at", "2023-02-03 10:27:48.249849"], ["updated_at", "2023-02-03 10:27:48.249849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dorian Wiegand"], ["created_at", "2023-02-03 10:27:48.250556"], ["updated_at", "2023-02-03 10:27:48.250556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Palmira Rice"], ["created_at", "2023-02-03 10:27:48.251258"], ["updated_at", "2023-02-03 10:27:48.251258"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wilford Lubowitz Esq."], ["created_at", "2023-02-03 10:27:48.251980"], ["updated_at", "2023-02-03 10:27:48.251980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edwardo MacGyver MD"], ["description", "Assumenda voluptatem ut. Rerum veniam esse. Non quidem veniam."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:27:48.254067"], ["updated_at", "2023-02-03 10:27:48.254067"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Freeman Cassin"], ["description", "Voluptatem autem placeat. Neque sint odit. Et autem fugit."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.391574"], ["updated_at", "2023-02-03 10:28:01.391574"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jarrett McDermott"], ["description", "Est officia dolor. Vel saepe reprehenderit. Atque similique quis."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.417791"], ["updated_at", "2023-02-03 10:28:01.417791"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sally O'Kon"], ["description", "Corporis consequatur eum. Voluptatem harum nam. Fugit ex voluptas."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.426727"], ["updated_at", "2023-02-03 10:28:01.426727"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Tyesha Crooks"], ["created_at", "2023-02-03 10:28:01.427696"], ["updated_at", "2023-02-03 10:28:01.427696"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sonya Doyle"], ["created_at", "2023-02-03 10:28:01.429651"], ["updated_at", "2023-02-03 10:28:01.429651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dorsey Connelly"], ["created_at", "2023-02-03 10:28:01.431303"], ["updated_at", "2023-02-03 10:28:01.431303"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Honey Schultz"], ["created_at", "2023-02-03 10:28:01.432448"], ["updated_at", "2023-02-03 10:28:01.432448"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Wes Jast"], ["created_at", "2023-02-03 10:28:01.433307"], ["updated_at", "2023-02-03 10:28:01.433307"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:28:01.434635"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Earlean Raynor"], ["description", "Non vel consequuntur. Velit aut numquam. Qui quia commodi."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.440725"], ["updated_at", "2023-02-03 10:28:01.440725"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Trudi Bartell"], ["description", "Tenetur explicabo minus. Eaque et suscipit. Sint nam vero."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.443211"], ["updated_at", "2023-02-03 10:28:01.443211"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Suzann Dare"], ["created_at", "2023-02-03 10:28:01.443816"], ["updated_at", "2023-02-03 10:28:01.443816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Waylon Bruen JD"], ["created_at", "2023-02-03 10:28:01.444657"], ["updated_at", "2023-02-03 10:28:01.444657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dusti Koss"], ["created_at", "2023-02-03 10:28:01.445613"], ["updated_at", "2023-02-03 10:28:01.445613"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marylyn Franecki"], ["created_at", "2023-02-03 10:28:01.446768"], ["updated_at", "2023-02-03 10:28:01.446768"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lizabeth Okuneva"], ["created_at", "2023-02-03 10:28:01.447906"], ["updated_at", "2023-02-03 10:28:01.447906"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Vashti Howell"], ["created_at", "2023-02-03 10:28:01.449321"], ["updated_at", "2023-02-03 10:28:01.449321"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eileen Hilpert DDS"], ["created_at", "2023-02-03 10:28:01.451077"], ["updated_at", "2023-02-03 10:28:01.451077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rickie Barrows"], ["created_at", "2023-02-03 10:28:01.452223"], ["updated_at", "2023-02-03 10:28:01.452223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chung Hodkiewicz"], ["created_at", "2023-02-03 10:28:01.453119"], ["updated_at", "2023-02-03 10:28:01.453119"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stefanie Reichert"], ["created_at", "2023-02-03 10:28:01.453868"], ["updated_at", "2023-02-03 10:28:01.453868"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marietta Baumbach"], ["created_at", "2023-02-03 10:28:01.454601"], ["updated_at", "2023-02-03 10:28:01.454601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Milford Lindgren"], ["created_at", "2023-02-03 10:28:01.455397"], ["updated_at", "2023-02-03 10:28:01.455397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cora Hermann III"], ["description", "Aperiam mollitia et. In harum voluptatibus. Nam temporibus eum."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:01.457907"], ["updated_at", "2023-02-03 10:28:01.457907"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Glinda Jones V"], ["description", "Suscipit id officia. Est incidunt cupiditate. Omnis cupiditate ullam."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.306489"], ["updated_at", "2023-02-03 10:28:16.306489"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chauncey Klocko"], ["description", "Quisquam molestias quo. Velit praesentium ut. Esse consequuntur quis."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.323417"], ["updated_at", "2023-02-03 10:28:16.323417"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Errol Price Ret."], ["description", "Et corrupti quam. Totam assumenda excepturi. Et autem perspiciatis."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.329872"], ["updated_at", "2023-02-03 10:28:16.329872"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Claretha Carter"], ["created_at", "2023-02-03 10:28:16.330530"], ["updated_at", "2023-02-03 10:28:16.330530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elmo Kiehn"], ["created_at", "2023-02-03 10:28:16.331497"], ["updated_at", "2023-02-03 10:28:16.331497"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Meagan Von"], ["created_at", "2023-02-03 10:28:16.332230"], ["updated_at", "2023-02-03 10:28:16.332230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Maximo Jenkins"], ["created_at", "2023-02-03 10:28:16.332904"], ["updated_at", "2023-02-03 10:28:16.332904"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Salvatore Dicki"], ["created_at", "2023-02-03 10:28:16.333579"], ["updated_at", "2023-02-03 10:28:16.333579"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stacie Rohan MD"], ["description", "Minus officia molestiae. Voluptatibus earum beatae. Consequatur voluptas sunt."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.348959"], ["updated_at", "2023-02-03 10:28:16.348959"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harland Wolf III"], ["description", "Enim in quam. Qui et molestiae. Dolores est et."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.350962"], ["updated_at", "2023-02-03 10:28:16.350962"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dorian Orn"], ["created_at", "2023-02-03 10:28:16.351449"], ["updated_at", "2023-02-03 10:28:16.351449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bree McClure Sr."], ["created_at", "2023-02-03 10:28:16.352709"], ["updated_at", "2023-02-03 10:28:16.352709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Teddy Champlin"], ["created_at", "2023-02-03 10:28:16.353459"], ["updated_at", "2023-02-03 10:28:16.353459"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kiana Romaguera"], ["created_at", "2023-02-03 10:28:16.354140"], ["updated_at", "2023-02-03 10:28:16.354140"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jenee Block"], ["created_at", "2023-02-03 10:28:16.354814"], ["updated_at", "2023-02-03 10:28:16.354814"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lorenzo Spencer"], ["created_at", "2023-02-03 10:28:16.355451"], ["updated_at", "2023-02-03 10:28:16.355451"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Roseanne Will V"], ["created_at", "2023-02-03 10:28:16.356373"], ["updated_at", "2023-02-03 10:28:16.356373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marge Bergstrom"], ["created_at", "2023-02-03 10:28:16.357034"], ["updated_at", "2023-02-03 10:28:16.357034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stephani Gutkowski DO"], ["created_at", "2023-02-03 10:28:16.357703"], ["updated_at", "2023-02-03 10:28:16.357703"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brock Wisoky"], ["created_at", "2023-02-03 10:28:16.358346"], ["updated_at", "2023-02-03 10:28:16.358346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tuan Konopelski"], ["created_at", "2023-02-03 10:28:16.359126"], ["updated_at", "2023-02-03 10:28:16.359126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lee MacGyver"], ["created_at", "2023-02-03 10:28:16.359928"], ["updated_at", "2023-02-03 10:28:16.359928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Francisca Wyman"], ["description", "Aliquam dolorem omnis. Harum et quia. Animi cupiditate veritatis."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:16.361985"], ["updated_at", "2023-02-03 10:28:16.361985"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (1.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeanelle Harris"], ["description", "Laboriosam possimus a. Eos est recusandae. Necessitatibus ab dolor."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.161177"], ["updated_at", "2023-02-03 10:28:23.161177"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Esteban Kuphal"], ["description", "Et exercitationem et. In ut dolorem. Voluptatibus aut eius."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.184389"], ["updated_at", "2023-02-03 10:28:23.184389"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Scott Sawayn IV"], ["description", "Libero facere tempora. Rerum facilis explicabo. Iste aut veritatis."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.191599"], ["updated_at", "2023-02-03 10:28:23.191599"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Vickie Trantow"], ["created_at", "2023-02-03 10:28:23.192273"], ["updated_at", "2023-02-03 10:28:23.192273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lucie Wolf"], ["created_at", "2023-02-03 10:28:23.193295"], ["updated_at", "2023-02-03 10:28:23.193295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reinaldo Hilll"], ["created_at", "2023-02-03 10:28:23.194018"], ["updated_at", "2023-02-03 10:28:23.194018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nichol Senger I"], ["created_at", "2023-02-03 10:28:23.194779"], ["updated_at", "2023-02-03 10:28:23.194779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Molly Renner"], ["created_at", "2023-02-03 10:28:23.195500"], ["updated_at", "2023-02-03 10:28:23.195500"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:28:23.196873"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Orval Buckridge"], ["description", "Ab minus non. Tempore voluptatem mollitia. Et et dolore."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.202337"], ["updated_at", "2023-02-03 10:28:23.202337"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Beatrice Bashirian"], ["description", "Aut debitis consequatur. Et qui aut. Deleniti est quod."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.204398"], ["updated_at", "2023-02-03 10:28:23.204398"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Delmer Heaney"], ["created_at", "2023-02-03 10:28:23.204769"], ["updated_at", "2023-02-03 10:28:23.204769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kyoko McCullough Jr."], ["created_at", "2023-02-03 10:28:23.205479"], ["updated_at", "2023-02-03 10:28:23.205479"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Quinn Gutmann MD"], ["created_at", "2023-02-03 10:28:23.206200"], ["updated_at", "2023-02-03 10:28:23.206200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Frank Brekke"], ["created_at", "2023-02-03 10:28:23.206855"], ["updated_at", "2023-02-03 10:28:23.206855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Gertrud Purdy"], ["created_at", "2023-02-03 10:28:23.207546"], ["updated_at", "2023-02-03 10:28:23.207546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Oleta Prohaska"], ["created_at", "2023-02-03 10:28:23.208203"], ["updated_at", "2023-02-03 10:28:23.208203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Waldo Lesch"], ["created_at", "2023-02-03 10:28:23.209419"], ["updated_at", "2023-02-03 10:28:23.209419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gayla Walker"], ["created_at", "2023-02-03 10:28:23.210083"], ["updated_at", "2023-02-03 10:28:23.210083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lynwood Aufderhar"], ["created_at", "2023-02-03 10:28:23.210735"], ["updated_at", "2023-02-03 10:28:23.210735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Columbus Sauer V"], ["created_at", "2023-02-03 10:28:23.211407"], ["updated_at", "2023-02-03 10:28:23.211407"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hung Mosciski"], ["created_at", "2023-02-03 10:28:23.212060"], ["updated_at", "2023-02-03 10:28:23.212060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Verdell Lowe"], ["created_at", "2023-02-03 10:28:23.212904"], ["updated_at", "2023-02-03 10:28:23.212904"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Shane McLaughlin"], ["description", "Enim sed culpa. Sed earum fugit. Cumque totam at."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:28:23.215583"], ["updated_at", "2023-02-03 10:28:23.215583"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.9ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Venice Zulauf"], ["description", "Labore consequuntur commodi. Dolores culpa eos. Modi veniam totam."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.349555"], ["updated_at", "2023-02-03 10:29:17.349555"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.0ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Candy Bartell"], ["description", "Voluptates quo sunt. Et quibusdam provident. Iusto excepturi praesentium."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.373271"], ["updated_at", "2023-02-03 10:29:17.373271"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.0ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Daniell Kirlin"], ["description", "Vero animi ad. Explicabo ratione voluptas. Unde magnam placeat."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.380090"], ["updated_at", "2023-02-03 10:29:17.380090"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brendan Klocko"], ["created_at", "2023-02-03 10:29:17.380785"], ["updated_at", "2023-02-03 10:29:17.380785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brian Ullrich"], ["created_at", "2023-02-03 10:29:17.381818"], ["updated_at", "2023-02-03 10:29:17.381818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laronda Dietrich JD"], ["created_at", "2023-02-03 10:29:17.382563"], ["updated_at", "2023-02-03 10:29:17.382563"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ronny Pollich"], ["created_at", "2023-02-03 10:29:17.383236"], ["updated_at", "2023-02-03 10:29:17.383236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Clorinda Sporer"], ["created_at", "2023-02-03 10:29:17.383940"], ["updated_at", "2023-02-03 10:29:17.383940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:29:17.385047"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Xavier Parisian"], ["description", "Soluta amet est. Harum saepe aut. Aspernatur et et."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.389980"], ["updated_at", "2023-02-03 10:29:17.389980"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.0ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denise Upton"], ["description", "Tempora sit et. Minus saepe cumque. Voluptate et minima."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.391969"], ["updated_at", "2023-02-03 10:29:17.391969"], ["survey_type", 1]] + Survey::Question Create (0.7ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dean Crona"], ["created_at", "2023-02-03 10:29:17.392336"], ["updated_at", "2023-02-03 10:29:17.392336"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sherwood Heathcote"], ["created_at", "2023-02-03 10:29:17.393734"], ["updated_at", "2023-02-03 10:29:17.393734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kenisha Pacocha"], ["created_at", "2023-02-03 10:29:17.394417"], ["updated_at", "2023-02-03 10:29:17.394417"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Debi Bailey"], ["created_at", "2023-02-03 10:29:17.395097"], ["updated_at", "2023-02-03 10:29:17.395097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Isidro Heaney"], ["created_at", "2023-02-03 10:29:17.395845"], ["updated_at", "2023-02-03 10:29:17.395845"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kasey Heathcote"], ["created_at", "2023-02-03 10:29:17.396541"], ["updated_at", "2023-02-03 10:29:17.396541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.1ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosalinda Jaskolski"], ["created_at", "2023-02-03 10:29:17.398257"], ["updated_at", "2023-02-03 10:29:17.398257"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hailey McKenzie"], ["created_at", "2023-02-03 10:29:17.399009"], ["updated_at", "2023-02-03 10:29:17.399009"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Billy Flatley"], ["created_at", "2023-02-03 10:29:17.400307"], ["updated_at", "2023-02-03 10:29:17.400307"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Melita Prosacco"], ["created_at", "2023-02-03 10:29:17.401470"], ["updated_at", "2023-02-03 10:29:17.401470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Gayle Stehr"], ["created_at", "2023-02-03 10:29:17.402342"], ["updated_at", "2023-02-03 10:29:17.402342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Scott Johnson JD"], ["created_at", "2023-02-03 10:29:17.403114"], ["updated_at", "2023-02-03 10:29:17.403114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lorenzo Bogisich"], ["description", "Quaerat dicta omnis. Voluptatum perspiciatis eligendi. Vitae non sed."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:17.416487"], ["updated_at", "2023-02-03 10:29:17.416487"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.1ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carolyn Harvey"], ["description", "Aut odio hic. Recusandae a illum. Fugiat consectetur aliquam."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.055756"], ["updated_at", "2023-02-03 10:29:57.055756"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Thelma Abbott"], ["description", "Excepturi quasi quos. Nostrum soluta quam. Voluptates iste dolor."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.072342"], ["updated_at", "2023-02-03 10:29:57.072342"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Felicia Becker IV"], ["description", "Laboriosam est tempore. Mollitia ex ipsam. Non reprehenderit error."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.078478"], ["updated_at", "2023-02-03 10:29:57.078478"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Willetta Upton"], ["created_at", "2023-02-03 10:29:57.079230"], ["updated_at", "2023-02-03 10:29:57.079230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Erica Nolan"], ["created_at", "2023-02-03 10:29:57.080223"], ["updated_at", "2023-02-03 10:29:57.080223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Amira Heathcote"], ["created_at", "2023-02-03 10:29:57.080943"], ["updated_at", "2023-02-03 10:29:57.080943"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reid Runolfsson"], ["created_at", "2023-02-03 10:29:57.081609"], ["updated_at", "2023-02-03 10:29:57.081609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Loria Nolan"], ["created_at", "2023-02-03 10:29:57.082296"], ["updated_at", "2023-02-03 10:29:57.082296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:29:57.083379"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Natasha Ernser"], ["description", "Inventore ut ea. Quia sunt ea. Et unde culpa."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.088188"], ["updated_at", "2023-02-03 10:29:57.088188"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kelsie Monahan"], ["description", "Rerum dolores dolorum. Vel et nisi. Dicta ipsa expedita."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.089857"], ["updated_at", "2023-02-03 10:29:57.089857"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Christiane Beier"], ["created_at", "2023-02-03 10:29:57.090219"], ["updated_at", "2023-02-03 10:29:57.090219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Leona Rogahn"], ["created_at", "2023-02-03 10:29:57.090898"], ["updated_at", "2023-02-03 10:29:57.090898"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Britt Rau"], ["created_at", "2023-02-03 10:29:57.091580"], ["updated_at", "2023-02-03 10:29:57.091580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dan Schaefer"], ["created_at", "2023-02-03 10:29:57.092239"], ["updated_at", "2023-02-03 10:29:57.092239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Aaron Vandervort"], ["created_at", "2023-02-03 10:29:57.092927"], ["updated_at", "2023-02-03 10:29:57.092927"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Newton Ritchie PhD"], ["created_at", "2023-02-03 10:29:57.093677"], ["updated_at", "2023-02-03 10:29:57.093677"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Delete All (0.0ms) DELETE FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nichole Jakubowski"], ["created_at", "2023-02-03 10:29:57.094954"], ["updated_at", "2023-02-03 10:29:57.094954"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mariann Schultz"], ["created_at", "2023-02-03 10:29:57.095633"], ["updated_at", "2023-02-03 10:29:57.095633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sharell Muller"], ["created_at", "2023-02-03 10:29:57.096390"], ["updated_at", "2023-02-03 10:29:57.096390"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kent Ziemann"], ["created_at", "2023-02-03 10:29:57.097123"], ["updated_at", "2023-02-03 10:29:57.097123"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marlys Rath"], ["created_at", "2023-02-03 10:29:57.097885"], ["updated_at", "2023-02-03 10:29:57.097885"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Garry Leffler"], ["created_at", "2023-02-03 10:29:57.098730"], ["updated_at", "2023-02-03 10:29:57.098730"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rafael Gutkowski"], ["description", "Dolor iusto debitis. Sit dolorem libero. Officia nihil non."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:29:57.112455"], ["updated_at", "2023-02-03 10:29:57.112455"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.9ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denver Corkery"], ["description", "Eum alias est. Magnam laborum repellat. Mollitia aut non."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.462158"], ["updated_at", "2023-02-03 10:30:19.462158"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rolf Kreiger"], ["description", "Consequatur quasi beatae. Iure dicta asperiores. Qui beatae architecto."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.485330"], ["updated_at", "2023-02-03 10:30:19.485330"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Efren Ebert"], ["description", "Sequi veniam esse. Aut ab laboriosam. Dolores debitis aut."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.492153"], ["updated_at", "2023-02-03 10:30:19.492153"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Orval Hackett"], ["created_at", "2023-02-03 10:30:19.492791"], ["updated_at", "2023-02-03 10:30:19.492791"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mariette Mosciski"], ["created_at", "2023-02-03 10:30:19.493771"], ["updated_at", "2023-02-03 10:30:19.493771"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Granville Casper"], ["created_at", "2023-02-03 10:30:19.494465"], ["updated_at", "2023-02-03 10:30:19.494465"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jordan Tillman"], ["created_at", "2023-02-03 10:30:19.495181"], ["updated_at", "2023-02-03 10:30:19.495181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Fausto Daniel"], ["created_at", "2023-02-03 10:30:19.496008"], ["updated_at", "2023-02-03 10:30:19.496008"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:30:19.497235"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (2.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lakeshia Ward VM"], ["description", "Beatae reiciendis dolor. Nam possimus architecto. Dolores et ad."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.502416"], ["updated_at", "2023-02-03 10:30:19.502416"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emelda Kiehn"], ["description", "Sit officiis cupiditate. Aliquid ut et. Dolor quam veniam."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.506836"], ["updated_at", "2023-02-03 10:30:19.506836"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jerry Schmidt"], ["created_at", "2023-02-03 10:30:19.507256"], ["updated_at", "2023-02-03 10:30:19.507256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dwana Cruickshank"], ["created_at", "2023-02-03 10:30:19.507960"], ["updated_at", "2023-02-03 10:30:19.507960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cayla Jones"], ["created_at", "2023-02-03 10:30:19.508639"], ["updated_at", "2023-02-03 10:30:19.508639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gerry Prohaska"], ["created_at", "2023-02-03 10:30:19.509306"], ["updated_at", "2023-02-03 10:30:19.509306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bettyann Olson"], ["created_at", "2023-02-03 10:30:19.510036"], ["updated_at", "2023-02-03 10:30:19.510036"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ulysses Howe"], ["created_at", "2023-02-03 10:30:19.510713"], ["updated_at", "2023-02-03 10:30:19.510713"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stacey Mosciski Jr."], ["created_at", "2023-02-03 10:30:19.512018"], ["updated_at", "2023-02-03 10:30:19.512018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Don Jacobi"], ["created_at", "2023-02-03 10:30:19.512754"], ["updated_at", "2023-02-03 10:30:19.512754"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Shannan Schaden"], ["created_at", "2023-02-03 10:30:19.513539"], ["updated_at", "2023-02-03 10:30:19.513539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anamaria Koss"], ["created_at", "2023-02-03 10:30:19.514253"], ["updated_at", "2023-02-03 10:30:19.514253"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "King Collier"], ["created_at", "2023-02-03 10:30:19.515116"], ["updated_at", "2023-02-03 10:30:19.515116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ginny Ankunding"], ["created_at", "2023-02-03 10:30:19.515999"], ["updated_at", "2023-02-03 10:30:19.515999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deloise Tillman"], ["description", "Voluptatum dolor quasi. Aspernatur eos quis. Nemo quos iusto."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:30:19.518742"], ["updated_at", "2023-02-03 10:30:19.518742"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Clint Gutmann"], ["description", "Consequatur ut id. Ut et omnis. Natus nesciunt aut."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:23.228717"], ["updated_at", "2023-02-03 10:31:23.228717"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jeanie Simonis"], ["description", "Ducimus sunt cupiditate. Corporis consequatur molestiae. Vero distinctio aut."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:23.255219"], ["updated_at", "2023-02-03 10:31:23.255219"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Geoffrey Pacocha"], ["description", "Aperiam repudiandae est. Earum est neque. A commodi voluptatem."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:23.274833"], ["updated_at", "2023-02-03 10:31:23.274833"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Chester Crist"], ["description", "Dicta expedita aliquam. Et aspernatur minima. Quia voluptatum ut."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:23.276713"], ["updated_at", "2023-02-03 10:31:23.276713"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jean Shanahan"], ["created_at", "2023-02-03 10:31:23.281158"], ["updated_at", "2023-02-03 10:31:23.281158"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jean Dickinson"], ["created_at", "2023-02-03 10:31:23.283566"], ["updated_at", "2023-02-03 10:31:23.283566"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bobby Carroll CPA"], ["created_at", "2023-02-03 10:31:23.284521"], ["updated_at", "2023-02-03 10:31:23.284521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tyree Rosenbaum"], ["created_at", "2023-02-03 10:31:23.285254"], ["updated_at", "2023-02-03 10:31:23.285254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marlin Nolan"], ["created_at", "2023-02-03 10:31:23.285964"], ["updated_at", "2023-02-03 10:31:23.285964"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Yajaira Fisher"], ["created_at", "2023-02-03 10:31:23.286695"], ["updated_at", "2023-02-03 10:31:23.286695"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Odis White PhD"], ["description", "Ut eum praesentium. Praesentium qui eos. Quia et ipsam."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:23.288786"], ["updated_at", "2023-02-03 10:31:23.288786"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hilda Stamm"], ["description", "Omnis veniam nemo. Aut sed consequatur. Voluptatibus corrupti nobis."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.254498"], ["updated_at", "2023-02-03 10:31:33.254498"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gennie Hahn CPA"], ["description", "Omnis qui incidunt. Et rem facere. Quia dolores officiis."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.270552"], ["updated_at", "2023-02-03 10:31:33.270552"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Willia Crooks"], ["description", "Quia magni illum. Possimus tempore qui. Necessitatibus sit minus."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.276703"], ["updated_at", "2023-02-03 10:31:33.276703"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bennett Johnston"], ["created_at", "2023-02-03 10:31:33.277374"], ["updated_at", "2023-02-03 10:31:33.277374"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Maurice Frami"], ["created_at", "2023-02-03 10:31:33.278386"], ["updated_at", "2023-02-03 10:31:33.278386"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lakita Torphy"], ["created_at", "2023-02-03 10:31:33.279180"], ["updated_at", "2023-02-03 10:31:33.279180"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Felisha Hills"], ["created_at", "2023-02-03 10:31:33.279844"], ["updated_at", "2023-02-03 10:31:33.279844"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Viki Lindgren"], ["created_at", "2023-02-03 10:31:33.280507"], ["updated_at", "2023-02-03 10:31:33.280507"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Soraya Russel"], ["description", "Est deleniti voluptas. Sed et a. Mollitia quo aut."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.295199"], ["updated_at", "2023-02-03 10:31:33.295199"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hang Walker MD"], ["description", "Similique voluptatem doloribus. Placeat blanditiis qui. Temporibus nihil quae."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.297237"], ["updated_at", "2023-02-03 10:31:33.297237"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Sid Lakin"], ["created_at", "2023-02-03 10:31:33.297802"], ["updated_at", "2023-02-03 10:31:33.297802"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Sid Breitenberg"], ["created_at", "2023-02-03 10:31:33.298769"], ["updated_at", "2023-02-03 10:31:33.298769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bert Rice"], ["created_at", "2023-02-03 10:31:33.299518"], ["updated_at", "2023-02-03 10:31:33.299518"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Leoma Wilkinson"], ["created_at", "2023-02-03 10:31:33.300183"], ["updated_at", "2023-02-03 10:31:33.300183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Lamont Swift"], ["created_at", "2023-02-03 10:31:33.300855"], ["updated_at", "2023-02-03 10:31:33.300855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lauri Bogisich"], ["created_at", "2023-02-03 10:31:33.301508"], ["updated_at", "2023-02-03 10:31:33.301508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Edgardo Treutel"], ["created_at", "2023-02-03 10:31:33.302417"], ["updated_at", "2023-02-03 10:31:33.302417"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Fausto Rath"], ["created_at", "2023-02-03 10:31:33.303089"], ["updated_at", "2023-02-03 10:31:33.303089"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Herbert Dicki"], ["created_at", "2023-02-03 10:31:33.303820"], ["updated_at", "2023-02-03 10:31:33.303820"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Sophia Veum"], ["created_at", "2023-02-03 10:31:33.304488"], ["updated_at", "2023-02-03 10:31:33.304488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Neda Emard JD"], ["created_at", "2023-02-03 10:31:33.305164"], ["updated_at", "2023-02-03 10:31:33.305164"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Jenelle Keebler"], ["created_at", "2023-02-03 10:31:33.305832"], ["updated_at", "2023-02-03 10:31:33.305832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Branda Heller"], ["description", "Officiis saepe qui. Harum officiis animi. Sint voluptas nostrum."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:33.307779"], ["updated_at", "2023-02-03 10:31:33.307779"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rickie Bauch"], ["description", "Facere velit repellat. Molestias ipsa ex. Ut et eos."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.301921"], ["updated_at", "2023-02-03 10:31:48.301921"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Vance Hyatt"], ["description", "Aut voluptatem consectetur. Tempora optio sequi. Ipsam aut rerum."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.327497"], ["updated_at", "2023-02-03 10:31:48.327497"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Rigoberto Boehm"], ["description", "Reprehenderit molestiae voluptas. Est magnam qui. Natus illum commodi."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.334570"], ["updated_at", "2023-02-03 10:31:48.334570"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Siobhan Ritchie"], ["created_at", "2023-02-03 10:31:48.335645"], ["updated_at", "2023-02-03 10:31:48.335645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Honey Balistreri"], ["created_at", "2023-02-03 10:31:48.337216"], ["updated_at", "2023-02-03 10:31:48.337216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Lonny Ernser"], ["created_at", "2023-02-03 10:31:48.338141"], ["updated_at", "2023-02-03 10:31:48.338141"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Corrin Harris"], ["created_at", "2023-02-03 10:31:48.338869"], ["updated_at", "2023-02-03 10:31:48.338869"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Newton Cruickshank"], ["created_at", "2023-02-03 10:31:48.339587"], ["updated_at", "2023-02-03 10:31:48.339587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.5ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:31:48.340841"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joella Wilderman Ret."], ["description", "Voluptate eos facere. Libero omnis et. Voluptatum architecto enim."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.346583"], ["updated_at", "2023-02-03 10:31:48.346583"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Dwight Emard"], ["description", "Corporis architecto eveniet. Nemo harum quis. Sunt excepturi qui."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.349337"], ["updated_at", "2023-02-03 10:31:48.349337"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Latisha Cormier Jr."], ["created_at", "2023-02-03 10:31:48.350165"], ["updated_at", "2023-02-03 10:31:48.350165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Daryl Champlin"], ["created_at", "2023-02-03 10:31:48.350996"], ["updated_at", "2023-02-03 10:31:48.350996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dylan Johns"], ["created_at", "2023-02-03 10:31:48.351724"], ["updated_at", "2023-02-03 10:31:48.351724"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Scotty Zulauf"], ["created_at", "2023-02-03 10:31:48.352404"], ["updated_at", "2023-02-03 10:31:48.352404"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Temeka Shields LLD"], ["created_at", "2023-02-03 10:31:48.353088"], ["updated_at", "2023-02-03 10:31:48.353088"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Darrick Lubowitz"], ["created_at", "2023-02-03 10:31:48.353748"], ["updated_at", "2023-02-03 10:31:48.353748"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Adolph Parker"], ["created_at", "2023-02-03 10:31:48.355077"], ["updated_at", "2023-02-03 10:31:48.355077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wynell Rempel"], ["created_at", "2023-02-03 10:31:48.355735"], ["updated_at", "2023-02-03 10:31:48.355735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Bud Turcotte"], ["created_at", "2023-02-03 10:31:48.356452"], ["updated_at", "2023-02-03 10:31:48.356452"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Cristopher Buckridge"], ["created_at", "2023-02-03 10:31:48.357138"], ["updated_at", "2023-02-03 10:31:48.357138"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chong Stamm"], ["created_at", "2023-02-03 10:31:48.357785"], ["updated_at", "2023-02-03 10:31:48.357785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Annis Raynor"], ["created_at", "2023-02-03 10:31:48.358426"], ["updated_at", "2023-02-03 10:31:48.358426"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Enriqueta Christiansen"], ["description", "Eligendi explicabo provident. Accusamus cumque eius. Aliquam ut ipsa."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:31:48.360373"], ["updated_at", "2023-02-03 10:31:48.360373"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Nikki Stiedemann"], ["description", "Quo qui et. Ullam dolorem modi. Autem dolores id."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:06.139582"], ["updated_at", "2023-02-03 10:32:06.139582"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosann Vandervort"], ["description", "Officiis perferendis in. Rerum quas qui. Vel et doloribus."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:06.154101"], ["updated_at", "2023-02-03 10:32:06.154101"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tomas Williamson"], ["description", "Facilis tenetur a. Veniam praesentium illum. Ut itaque et."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:06.156304"], ["updated_at", "2023-02-03 10:32:06.156304"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lacy Grimes V"], ["description", "Ipsa quas expedita. Ipsa id inventore. Dicta omnis molestiae."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:06.159018"], ["updated_at", "2023-02-03 10:32:06.159018"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Casimira Rohan"], ["description", "Sed illum voluptates. Aut tenetur est. Qui aperiam et."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.884078"], ["updated_at", "2023-02-03 10:32:14.884078"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.4ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Martina Runolfsdottir"], ["description", "Natus laboriosam nemo. Explicabo perspiciatis in. Sint quia veritatis."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.906747"], ["updated_at", "2023-02-03 10:32:14.906747"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dalton Daniel"], ["description", "Laudantium et velit. Quidem quibusdam officia. Dolorum ullam tempore."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.913419"], ["updated_at", "2023-02-03 10:32:14.913419"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Denice Gleason"], ["created_at", "2023-02-03 10:32:14.914213"], ["updated_at", "2023-02-03 10:32:14.914213"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Illa Hills"], ["created_at", "2023-02-03 10:32:14.915446"], ["updated_at", "2023-02-03 10:32:14.915446"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Meg Turcotte"], ["created_at", "2023-02-03 10:32:14.916173"], ["updated_at", "2023-02-03 10:32:14.916173"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosetta Heathcote"], ["created_at", "2023-02-03 10:32:14.916851"], ["updated_at", "2023-02-03 10:32:14.916851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Arla Bruen"], ["created_at", "2023-02-03 10:32:14.917530"], ["updated_at", "2023-02-03 10:32:14.917530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:32:14.918577"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Babette Price"], ["description", "Occaecati consectetur eum. Saepe voluptatibus architecto. Vel sed asperiores."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.924039"], ["updated_at", "2023-02-03 10:32:14.924039"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Giselle Corkery"], ["description", "Molestias qui adipisci. Eos nihil molestiae. Iste aut consequatur."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.926318"], ["updated_at", "2023-02-03 10:32:14.926318"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chana Moen"], ["created_at", "2023-02-03 10:32:14.926730"], ["updated_at", "2023-02-03 10:32:14.926730"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bettyann Reinger"], ["created_at", "2023-02-03 10:32:14.927469"], ["updated_at", "2023-02-03 10:32:14.927469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Tomas Jones"], ["created_at", "2023-02-03 10:32:14.928301"], ["updated_at", "2023-02-03 10:32:14.928301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rory Dietrich"], ["created_at", "2023-02-03 10:32:14.929537"], ["updated_at", "2023-02-03 10:32:14.929537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carly Stanton"], ["created_at", "2023-02-03 10:32:14.931031"], ["updated_at", "2023-02-03 10:32:14.931031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lala Zemlak MD"], ["created_at", "2023-02-03 10:32:14.932077"], ["updated_at", "2023-02-03 10:32:14.932077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Syreeta Kemmer"], ["created_at", "2023-02-03 10:32:14.933983"], ["updated_at", "2023-02-03 10:32:14.933983"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Dennis Schmidt"], ["created_at", "2023-02-03 10:32:14.934847"], ["updated_at", "2023-02-03 10:32:14.934847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Erlene Altenwerth"], ["created_at", "2023-02-03 10:32:14.935582"], ["updated_at", "2023-02-03 10:32:14.935582"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Freda Turcotte"], ["created_at", "2023-02-03 10:32:14.936269"], ["updated_at", "2023-02-03 10:32:14.936269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lahoma Halvorson"], ["created_at", "2023-02-03 10:32:14.937057"], ["updated_at", "2023-02-03 10:32:14.937057"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Emerson Ullrich"], ["created_at", "2023-02-03 10:32:14.937874"], ["updated_at", "2023-02-03 10:32:14.937874"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Twana Douglas"], ["description", "Consequatur explicabo et. Voluptatem inventore fuga. Odio quae et."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:14.954188"], ["updated_at", "2023-02-03 10:32:14.954188"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.9ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ai Marquardt"], ["description", "Accusamus tempora nesciunt. Soluta voluptas recusandae. Ut facilis debitis."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.072631"], ["updated_at", "2023-02-03 10:32:27.072631"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lorraine Upton"], ["description", "Dolores est aut. Deleniti et reiciendis. Et ut neque."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.087455"], ["updated_at", "2023-02-03 10:32:27.087455"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Arnoldo Hansen"], ["description", "Excepturi iusto quia. Voluptas esse libero. Ut id vero."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.094663"], ["updated_at", "2023-02-03 10:32:27.094663"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shirley Heaney I"], ["created_at", "2023-02-03 10:32:27.095368"], ["updated_at", "2023-02-03 10:32:27.095368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Charlene Cole V"], ["created_at", "2023-02-03 10:32:27.096584"], ["updated_at", "2023-02-03 10:32:27.096584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kimberley Muller II"], ["created_at", "2023-02-03 10:32:27.097390"], ["updated_at", "2023-02-03 10:32:27.097390"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Jae Brown"], ["created_at", "2023-02-03 10:32:27.098126"], ["updated_at", "2023-02-03 10:32:27.098126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nathalie Dare"], ["created_at", "2023-02-03 10:32:27.098821"], ["updated_at", "2023-02-03 10:32:27.098821"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:32:27.104647"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Viviana Price DC"], ["description", "Omnis quod nam. Iusto ut et. Veritatis rerum et."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.109209"], ["updated_at", "2023-02-03 10:32:27.109209"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Norris Spinka"], ["description", "Quae accusantium iusto. Totam sunt dignissimos. Vel suscipit molestiae."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.110955"], ["updated_at", "2023-02-03 10:32:27.110955"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ivelisse Schumm"], ["created_at", "2023-02-03 10:32:27.111334"], ["updated_at", "2023-02-03 10:32:27.111334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosalba Kub"], ["created_at", "2023-02-03 10:32:27.112059"], ["updated_at", "2023-02-03 10:32:27.112059"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sherrie O'Hara"], ["created_at", "2023-02-03 10:32:27.112853"], ["updated_at", "2023-02-03 10:32:27.112853"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Lionel Weissnat"], ["created_at", "2023-02-03 10:32:27.113612"], ["updated_at", "2023-02-03 10:32:27.113612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marguerita Hoppe DC"], ["created_at", "2023-02-03 10:32:27.114442"], ["updated_at", "2023-02-03 10:32:27.114442"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adelaida Miller"], ["created_at", "2023-02-03 10:32:27.115322"], ["updated_at", "2023-02-03 10:32:27.115322"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Twanna Mills"], ["description", "Doloremque molestiae ea. Culpa sit at. Unde veritatis quas."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:32:27.119486"], ["updated_at", "2023-02-03 10:32:27.119486"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Abel Zulauf"], ["description", "Ut ducimus amet. Blanditiis repellat nemo. Adipisci perferendis eveniet."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.650072"], ["updated_at", "2023-02-03 10:33:56.650072"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Meta Will"], ["description", "Pariatur suscipit quia. Impedit eius suscipit. Dolores voluptas omnis."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.667776"], ["updated_at", "2023-02-03 10:33:56.667776"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donnie White"], ["description", "Voluptatum beatae quibusdam. Rem quod dicta. Aliquam quod sit."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.675839"], ["updated_at", "2023-02-03 10:33:56.675839"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Eveline Cruickshank"], ["created_at", "2023-02-03 10:33:56.676656"], ["updated_at", "2023-02-03 10:33:56.676656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tiffanie Steuber"], ["created_at", "2023-02-03 10:33:56.677762"], ["updated_at", "2023-02-03 10:33:56.677762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Herman Considine"], ["created_at", "2023-02-03 10:33:56.678616"], ["updated_at", "2023-02-03 10:33:56.678616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tyron Hettinger"], ["created_at", "2023-02-03 10:33:56.679308"], ["updated_at", "2023-02-03 10:33:56.679308"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Isidro Russel"], ["created_at", "2023-02-03 10:33:56.679984"], ["updated_at", "2023-02-03 10:33:56.679984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.3ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:33:56.689122"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leota McGlynn V"], ["description", "Hic illum corrupti. Perspiciatis et qui. Minus natus dolorem."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.694404"], ["updated_at", "2023-02-03 10:33:56.694404"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tressie Brekke"], ["description", "Rerum voluptas reiciendis. Sint illum enim. Qui et ullam."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.696462"], ["updated_at", "2023-02-03 10:33:56.696462"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Viviana Gottlieb Sr."], ["created_at", "2023-02-03 10:33:56.696999"], ["updated_at", "2023-02-03 10:33:56.696999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laurena Auer DVM"], ["created_at", "2023-02-03 10:33:56.698064"], ["updated_at", "2023-02-03 10:33:56.698064"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Leigh Weimann"], ["created_at", "2023-02-03 10:33:56.698896"], ["updated_at", "2023-02-03 10:33:56.698896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cameron McDermott DVM"], ["created_at", "2023-02-03 10:33:56.699604"], ["updated_at", "2023-02-03 10:33:56.699604"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anastacia Grady"], ["created_at", "2023-02-03 10:33:56.700280"], ["updated_at", "2023-02-03 10:33:56.700280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Verline Farrell"], ["created_at", "2023-02-03 10:33:56.700952"], ["updated_at", "2023-02-03 10:33:56.700952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.3ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mohammed Kunze"], ["description", "Aspernatur et voluptate. Quia amet accusamus. Sapiente non praesentium."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.703991"], ["updated_at", "2023-02-03 10:33:56.703991"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joesph Hodkiewicz"], ["description", "Voluptas quos quas. Soluta et asperiores. Cupiditate placeat voluptas."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:33:56.707633"], ["updated_at", "2023-02-03 10:33:56.707633"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Doreatha Conn"], ["description", "Saepe quod est. Perferendis est nostrum. Libero omnis voluptatibus."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:30.968013"], ["updated_at", "2023-02-03 10:34:30.968013"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Andrew Pacocha"], ["description", "Officiis facilis velit. Minima et fugiat. Impedit blanditiis officia."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:30.984613"], ["updated_at", "2023-02-03 10:34:30.984613"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dorla Gusikowski"], ["description", "Odio dignissimos architecto. Perspiciatis eligendi natus. Numquam asperiores deserunt."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:30.992380"], ["updated_at", "2023-02-03 10:34:30.992380"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Frieda Wolf"], ["created_at", "2023-02-03 10:34:30.993033"], ["updated_at", "2023-02-03 10:34:30.993033"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Williams Rodriguez"], ["created_at", "2023-02-03 10:34:30.994038"], ["updated_at", "2023-02-03 10:34:30.994038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gerard Halvorson"], ["created_at", "2023-02-03 10:34:30.994861"], ["updated_at", "2023-02-03 10:34:30.994861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lane O'Connell"], ["created_at", "2023-02-03 10:34:30.995572"], ["updated_at", "2023-02-03 10:34:30.995572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Olga Satterfield"], ["created_at", "2023-02-03 10:34:30.996231"], ["updated_at", "2023-02-03 10:34:30.996231"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:34:31.002482"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shan Mertz"], ["description", "Sunt ab blanditiis. Aut porro adipisci. Distinctio consequatur consectetur."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:31.007259"], ["updated_at", "2023-02-03 10:34:31.007259"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rivka Denesik"], ["description", "Aliquid veritatis ratione. Quibusdam dolorem odit. Quia ut nulla."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:31.008958"], ["updated_at", "2023-02-03 10:34:31.008958"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lanette Wehner"], ["created_at", "2023-02-03 10:34:31.009335"], ["updated_at", "2023-02-03 10:34:31.009335"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Madeleine Schiller"], ["created_at", "2023-02-03 10:34:31.010035"], ["updated_at", "2023-02-03 10:34:31.010035"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ross Thiel"], ["created_at", "2023-02-03 10:34:31.010701"], ["updated_at", "2023-02-03 10:34:31.010701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Arnoldo Ziemann"], ["created_at", "2023-02-03 10:34:31.011516"], ["updated_at", "2023-02-03 10:34:31.011516"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosario Ryan"], ["created_at", "2023-02-03 10:34:31.012688"], ["updated_at", "2023-02-03 10:34:31.012688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lan King JD"], ["created_at", "2023-02-03 10:34:31.013678"], ["updated_at", "2023-02-03 10:34:31.013678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mickey Collier"], ["description", "Expedita vel hic. Qui corrupti ea. Accusantium aut molestiae."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:31.017076"], ["updated_at", "2023-02-03 10:34:31.017076"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Federico Hyatt"], ["description", "Non et sunt. Aut impedit harum. Sapiente quo consectetur."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:31.020952"], ["updated_at", "2023-02-03 10:34:31.020952"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.852456"], ["updated_at", "2023-02-03 10:34:35.852456"], ["name", "Mrs. Betty Gusikowski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Regan Bradtke DDS"], ["description", "Laudantium amet vero. Voluptatem sunt odio. Omnis vel nesciunt."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.858408"], ["updated_at", "2023-02-03 10:34:35.858408"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Lazaro Bergnaum"], ["created_at", "2023-02-03 10:34:35.869960"], ["updated_at", "2023-02-03 10:34:35.869960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Debera Wyman"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.873061"], ["updated_at", "2023-02-03 10:34:35.873061"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 10:34:35.876075"], ["updated_at", "2023-02-03 10:34:35.876075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.891521"], ["updated_at", "2023-02-03 10:34:35.891521"], ["name", "Scott Nienow Esq."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kelley Hane"], ["description", "Facilis et ullam. Consequatur est in. Qui dicta facere."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.893329"], ["updated_at", "2023-02-03 10:34:35.893329"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dan Jones"], ["created_at", "2023-02-03 10:34:35.898053"], ["updated_at", "2023-02-03 10:34:35.898053"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lashunda Kilback"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.899185"], ["updated_at", "2023-02-03 10:34:35.899185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 10:34:35.900570"], ["updated_at", "2023-02-03 10:34:35.900570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.903123"], ["updated_at", "2023-02-03 10:34:35.903123"], ["name", "Dusty Schmeler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Karry Blanda"], ["description", "Quisquam non aliquid. Dolor quasi excepturi. Iure consequatur perferendis."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.904910"], ["updated_at", "2023-02-03 10:34:35.904910"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "August Goodwin"], ["created_at", "2023-02-03 10:34:35.907351"], ["updated_at", "2023-02-03 10:34:35.907351"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brice Goodwin"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.908164"], ["updated_at", "2023-02-03 10:34:35.908164"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 10:34:35.909377"], ["updated_at", "2023-02-03 10:34:35.909377"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.912074"], ["updated_at", "2023-02-03 10:34:35.912074"], ["name", "Bernardina Bednar"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Phoebe Towne"], ["description", "Qui molestiae rerum. Eius eos dignissimos. Aut voluptatem sapiente."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.914386"], ["updated_at", "2023-02-03 10:34:35.914386"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (1.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wynell Beer"], ["created_at", "2023-02-03 10:34:35.919639"], ["updated_at", "2023-02-03 10:34:35.919639"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Robbie Lehner"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.921409"], ["updated_at", "2023-02-03 10:34:35.921409"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 10:34:35.924438"], ["updated_at", "2023-02-03 10:34:35.924438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.4ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.940319"], ["updated_at", "2023-02-03 10:34:35.940319"], ["name", "Elsa Hammes II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kevin Schamberger JD"], ["description", "Temporibus rerum rem. Ut autem officia. Perspiciatis dolores illo."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.944178"], ["updated_at", "2023-02-03 10:34:35.944178"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:34:35.957224"], ["updated_at", "2023-02-03 10:34:35.957224"], ["name", "Ida Lehner"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Maye O'Connell"], ["description", "Repellat labore sunt. Eveniet nisi et. Reprehenderit rem alias."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.961288"], ["updated_at", "2023-02-03 10:34:35.961288"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.4ms) TRUNCATE TABLE "survey_attempts" +  (1.1ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charlott Kertzmann CPA"], ["description", "Eaque sit aspernatur. Pariatur et necessitatibus. Provident et voluptates."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.983230"], ["updated_at", "2023-02-03 10:34:35.983230"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wiley Wilderman"], ["created_at", "2023-02-03 10:34:35.984529"], ["updated_at", "2023-02-03 10:34:35.984529"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jarvis Hartmann"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.985330"], ["updated_at", "2023-02-03 10:34:35.985330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Pearl Kessler"], ["description", "Laudantium similique quo. Accusantium dicta voluptas. Ut adipisci laboriosam."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:35.987305"], ["updated_at", "2023-02-03 10:34:35.987305"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.4ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Micah Greenholt"], ["created_at", "2023-02-03 10:34:35.991138"], ["updated_at", "2023-02-03 10:34:35.991138"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Collette Langworth"], ["correct", 0], ["created_at", "2023-02-03 10:34:35.993865"], ["updated_at", "2023-02-03 10:34:35.993865"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dahlia Howe"], ["description", "Accusamus quisquam officiis. Illum animi sit. Tenetur sunt laboriosam."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.000380"], ["updated_at", "2023-02-03 10:34:36.000380"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mimi Dietrich"], ["created_at", "2023-02-03 10:34:36.003038"], ["updated_at", "2023-02-03 10:34:36.003038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Adrian Gottlieb"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.004671"], ["updated_at", "2023-02-03 10:34:36.004671"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yuri Kozey"], ["description", "Nostrum quia omnis. Neque architecto voluptas. Et natus cupiditate."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.007718"], ["updated_at", "2023-02-03 10:34:36.007718"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Eulah Huels"], ["created_at", "2023-02-03 10:34:36.009271"], ["updated_at", "2023-02-03 10:34:36.009271"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yu Cronin"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.010455"], ["updated_at", "2023-02-03 10:34:36.010455"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Deon Reilly"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.014429"], ["updated_at", "2023-02-03 10:34:36.014429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Tish Flatley PhD"], ["correct", 1], ["created_at", "2023-02-03 10:34:36.015892"], ["updated_at", "2023-02-03 10:34:36.015892"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Dr. Sandie Torp"], ["correct", 1], ["created_at", "2023-02-03 10:34:36.017129"], ["updated_at", "2023-02-03 10:34:36.017129"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Talia Corkery"], ["description", "Odio fuga accusamus. Cum voluptas eos. Repellat qui laborum."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.025268"], ["updated_at", "2023-02-03 10:34:36.025268"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kendrick Daniel"], ["created_at", "2023-02-03 10:34:36.026836"], ["updated_at", "2023-02-03 10:34:36.026836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lindsey Kiehn"], ["description", "Fuga neque nihil. Sit non nemo. Saepe aspernatur nostrum."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.029967"], ["updated_at", "2023-02-03 10:34:36.029967"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shoshana Walker"], ["created_at", "2023-02-03 10:34:36.031712"], ["updated_at", "2023-02-03 10:34:36.031712"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kirby Stehr V"], ["description", "Praesentium blanditiis itaque. Voluptatem nisi nobis. Quo sunt modi."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.036820"], ["updated_at", "2023-02-03 10:34:36.036820"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pasquale Harris"], ["created_at", "2023-02-03 10:34:36.038398"], ["updated_at", "2023-02-03 10:34:36.038398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mr. Kristan Buckridge"], ["correct", 1], ["created_at", "2023-02-03 10:34:36.039429"], ["updated_at", "2023-02-03 10:34:36.039429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Harvey Sauer"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.040396"], ["updated_at", "2023-02-03 10:34:36.040396"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sade Halvorson"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.041339"], ["updated_at", "2023-02-03 10:34:36.041339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.3ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nikita Towne"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.042149"], ["updated_at", "2023-02-03 10:34:36.042149"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Florencio Glover"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.045609"], ["updated_at", "2023-02-03 10:34:36.045609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "George Abernathy"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.047196"], ["updated_at", "2023-02-03 10:34:36.047196"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fermina Fritsch"], ["correct", 0], ["created_at", "2023-02-03 10:34:36.048667"], ["updated_at", "2023-02-03 10:34:36.048667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.1ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.4ms) TRUNCATE TABLE "survey_attempts" +  (2.5ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.2ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Davis Fadel"], ["description", "Dolorem expedita tempora. Animi eos voluptate. Maiores perspiciatis quae."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.067149"], ["updated_at", "2023-02-03 10:34:36.067149"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brendan Pagac"], ["description", "Harum ipsum hic. Vitae beatae eius. Facere enim voluptatum."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.070671"], ["updated_at", "2023-02-03 10:34:36.070671"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Jenna Kautzer"], ["description", "Quisquam nesciunt officiis. Molestias ducimus atque. Deserunt ad rerum."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.074317"], ["updated_at", "2023-02-03 10:34:36.074317"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Monique Kassulke"], ["created_at", "2023-02-03 10:34:36.075072"], ["updated_at", "2023-02-03 10:34:36.075072"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carlos Fahey III"], ["created_at", "2023-02-03 10:34:36.076118"], ["updated_at", "2023-02-03 10:34:36.076118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rudy Fritsch"], ["created_at", "2023-02-03 10:34:36.076914"], ["updated_at", "2023-02-03 10:34:36.076914"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Aleen Champlin"], ["created_at", "2023-02-03 10:34:36.077658"], ["updated_at", "2023-02-03 10:34:36.077658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brittani Cremin"], ["created_at", "2023-02-03 10:34:36.078397"], ["updated_at", "2023-02-03 10:34:36.078397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 10:34:36.080246"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Debbi Gleichner"], ["description", "Et consequatur odio. Aliquam aspernatur amet. Repellendus debitis repudiandae."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.085299"], ["updated_at", "2023-02-03 10:34:36.085299"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ira Beatty MD"], ["description", "Explicabo ex voluptatibus. Aut aspernatur voluptatem. Delectus est qui."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.087652"], ["updated_at", "2023-02-03 10:34:36.087652"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anglea Nienow"], ["created_at", "2023-02-03 10:34:36.088072"], ["updated_at", "2023-02-03 10:34:36.088072"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Boyd Mayer"], ["created_at", "2023-02-03 10:34:36.088784"], ["updated_at", "2023-02-03 10:34:36.088784"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hsiu Emard"], ["created_at", "2023-02-03 10:34:36.089489"], ["updated_at", "2023-02-03 10:34:36.089489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Whitney Koelpin"], ["created_at", "2023-02-03 10:34:36.090185"], ["updated_at", "2023-02-03 10:34:36.090185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kory Fadel"], ["created_at", "2023-02-03 10:34:36.090866"], ["updated_at", "2023-02-03 10:34:36.090866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tony Welch"], ["created_at", "2023-02-03 10:34:36.091541"], ["updated_at", "2023-02-03 10:34:36.091541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cortez Moen"], ["description", "Incidunt quam ullam. Illo et reiciendis. Consequuntur eum velit."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.094391"], ["updated_at", "2023-02-03 10:34:36.094391"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darleen O'Hara"], ["description", "Est rerum et. Id totam quo. Provident et debitis."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:34:36.099247"], ["updated_at", "2023-02-03 10:34:36.099247"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:39:30.177587"], ["updated_at", "2023-02-03 10:39:30.177587"], ["name", "Syreeta Collier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 10:39:30.180318"], ["updated_at", "2023-02-03 10:39:30.180318"], ["name", "Emeline Rogahn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Rolando Jones"], ["description", "Assumenda maxime ipsa. Dolor sapiente reiciendis. Est qui iste."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 10:39:30.196651"], ["updated_at", "2023-02-03 10:39:30.196651"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Towanda Greenfelder"], ["created_at", "2023-02-03 10:39:30.197273"], ["updated_at", "2023-02-03 10:39:30.197273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hyo McGlynn"], ["created_at", "2023-02-03 10:39:30.198391"], ["updated_at", "2023-02-03 10:39:30.198391"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shae Sauer"], ["created_at", "2023-02-03 10:39:30.199126"], ["updated_at", "2023-02-03 10:39:30.199126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Duane Wehner II"], ["created_at", "2023-02-03 10:39:30.199865"], ["updated_at", "2023-02-03 10:39:30.199865"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Question Load (0.4ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (1.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + Survey::Option Load (0.9ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (1.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Pluck (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:22:53.689781"], ["updated_at", "2023-02-03 11:22:53.689781"], ["name", "Prof. Elena Dickens"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:22:53.692383"], ["updated_at", "2023-02-03 11:22:53.692383"], ["name", "Taren Goodwin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cyndi Littel"], ["description", "Labore non sunt. Et quidem itaque. Porro nobis qui."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:22:53.703876"], ["updated_at", "2023-02-03 11:22:53.703876"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kecia Gleason"], ["created_at", "2023-02-03 11:22:53.704387"], ["updated_at", "2023-02-03 11:22:53.704387"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Orval Green"], ["correct", 0], ["created_at", "2023-02-03 11:22:53.704666"], ["updated_at", "2023-02-03 11:22:53.704666"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Frances Wehner"], ["created_at", "2023-02-03 11:22:53.706056"], ["updated_at", "2023-02-03 11:22:53.706056"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 0], ["text", "Mr. Marcelo Russel"], ["correct", 0], ["created_at", "2023-02-03 11:22:53.706347"], ["updated_at", "2023-02-03 11:22:53.706347"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shella Stroman IV"], ["created_at", "2023-02-03 11:22:53.707459"], ["updated_at", "2023-02-03 11:22:53.707459"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 0], ["text", "Orville Beatty LLD"], ["correct", 0], ["created_at", "2023-02-03 11:22:53.707750"], ["updated_at", "2023-02-03 11:22:53.707750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bethanie Langworth"], ["created_at", "2023-02-03 11:22:53.708782"], ["updated_at", "2023-02-03 11:22:53.708782"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 0], ["text", "Long Oberbrunner"], ["correct", 0], ["created_at", "2023-02-03 11:22:53.709053"], ["updated_at", "2023-02-03 11:22:53.709053"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? /* loading for inspect */ LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Question Load (0.2ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (1.9ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? /* loading for inspect */ LIMIT ? [["question_id", 1], ["LIMIT", 11]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? /* loading for inspect */ LIMIT ? [["question_id", 2], ["LIMIT", 11]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? /* loading for inspect */ LIMIT ? [["question_id", 3], ["LIMIT", 11]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? /* loading for inspect */ LIMIT ? [["question_id", 4], ["LIMIT", 11]] + TRANSACTION (1.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:34:53.619921"], ["updated_at", "2023-02-03 11:34:53.619921"], ["name", "Amb. Errol Purdy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:34:53.621887"], ["updated_at", "2023-02-03 11:34:53.621887"], ["name", "Marcelino Robel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.6ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:35:08.562334"], ["updated_at", "2023-02-03 11:35:08.562334"], ["name", "Prof. Cortez Parisian"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:35:08.564760"], ["updated_at", "2023-02-03 11:35:08.564760"], ["name", "Beau Stroman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Louis Lind"], ["description", "Et molestiae rerum. Ea similique natus. Consequatur minima nulla."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:35:08.583850"], ["updated_at", "2023-02-03 11:35:08.583850"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sheba Medhurst IV"], ["created_at", "2023-02-03 11:35:08.584495"], ["updated_at", "2023-02-03 11:35:08.584495"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jamar Brekke"], ["correct", 1], ["created_at", "2023-02-03 11:35:08.584772"], ["updated_at", "2023-02-03 11:35:08.584772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Paige Nader III"], ["created_at", "2023-02-03 11:35:08.586279"], ["updated_at", "2023-02-03 11:35:08.586279"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Carmen Rau"], ["correct", 1], ["created_at", "2023-02-03 11:35:08.586579"], ["updated_at", "2023-02-03 11:35:08.586579"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jarred Roob"], ["created_at", "2023-02-03 11:35:08.587741"], ["updated_at", "2023-02-03 11:35:08.587741"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ignacia Hartmann"], ["correct", 1], ["created_at", "2023-02-03 11:35:08.588009"], ["updated_at", "2023-02-03 11:35:08.588009"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donte Kuphal DVM"], ["created_at", "2023-02-03 11:35:08.589144"], ["updated_at", "2023-02-03 11:35:08.589144"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Bess Maggio II"], ["correct", 1], ["created_at", "2023-02-03 11:35:08.589499"], ["updated_at", "2023-02-03 11:35:08.589499"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.6ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (1.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.7ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (1.4ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.9ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (3.0ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:37:13.010797"], ["updated_at", "2023-02-03 11:37:13.010797"], ["name", "Jeffry Tromp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:37:13.012609"], ["updated_at", "2023-02-03 11:37:13.012609"], ["name", "Corliss Greenfelder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Louis Treutel"], ["description", "Perspiciatis porro qui. Nesciunt possimus rerum. Dignissimos aut quas."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:37:13.031389"], ["updated_at", "2023-02-03 11:37:13.031389"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Yvonne Monahan"], ["created_at", "2023-02-03 11:37:13.032016"], ["updated_at", "2023-02-03 11:37:13.032016"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mahalia Waelchi"], ["correct", 1], ["created_at", "2023-02-03 11:37:13.032291"], ["updated_at", "2023-02-03 11:37:13.032291"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Rigoberto Ward"], ["created_at", "2023-02-03 11:37:13.033779"], ["updated_at", "2023-02-03 11:37:13.033779"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Van Windler"], ["correct", 1], ["created_at", "2023-02-03 11:37:13.034093"], ["updated_at", "2023-02-03 11:37:13.034093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joni Langworth MD"], ["created_at", "2023-02-03 11:37:13.035317"], ["updated_at", "2023-02-03 11:37:13.035317"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Eugene Hills MD"], ["correct", 1], ["created_at", "2023-02-03 11:37:13.035590"], ["updated_at", "2023-02-03 11:37:13.035590"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Christena Wyman"], ["created_at", "2023-02-03 11:37:13.036670"], ["updated_at", "2023-02-03 11:37:13.036670"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Cinderella Koss"], ["correct", 1], ["created_at", "2023-02-03 11:37:13.036938"], ["updated_at", "2023-02-03 11:37:13.036938"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.3ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.3ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:41:00.864389"], ["updated_at", "2023-02-03 11:41:00.864389"], ["name", "Norris Schimmel IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:41:00.866179"], ["updated_at", "2023-02-03 11:41:00.866179"], ["name", "Idella Kuhn IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Mario Dibbert"], ["description", "Corporis et voluptas. Et porro tempora. Nostrum aut assumenda."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:41:00.886075"], ["updated_at", "2023-02-03 11:41:00.886075"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Onie Crooks"], ["created_at", "2023-02-03 11:41:00.886803"], ["updated_at", "2023-02-03 11:41:00.886803"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Erlene Goyette"], ["correct", 1], ["created_at", "2023-02-03 11:41:00.887115"], ["updated_at", "2023-02-03 11:41:00.887115"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chastity Tromp"], ["created_at", "2023-02-03 11:41:00.888686"], ["updated_at", "2023-02-03 11:41:00.888686"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Msgr. Gilberto Ryan"], ["correct", 1], ["created_at", "2023-02-03 11:41:00.888982"], ["updated_at", "2023-02-03 11:41:00.888982"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tom Fay"], ["created_at", "2023-02-03 11:41:00.890109"], ["updated_at", "2023-02-03 11:41:00.890109"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Sen. Chuck Lynch"], ["correct", 1], ["created_at", "2023-02-03 11:41:00.890382"], ["updated_at", "2023-02-03 11:41:00.890382"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Parker Upton"], ["created_at", "2023-02-03 11:41:00.891464"], ["updated_at", "2023-02-03 11:41:00.891464"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Reba Tremblay"], ["correct", 1], ["created_at", "2023-02-03 11:41:00.891741"], ["updated_at", "2023-02-03 11:41:00.891741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:41:00.907951"], ["updated_at", "2023-02-03 11:41:00.907951"]] + Survey::Answer Update (0.2ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:00.908363"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:41:00.909601"], ["updated_at", "2023-02-03 11:41:00.909601"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:00.909900"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:41:00.910693"], ["updated_at", "2023-02-03 11:41:00.910693"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:00.910980"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:41:00.911798"], ["updated_at", "2023-02-03 11:41:00.911798"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:00.912085"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:41:41.638792"], ["updated_at", "2023-02-03 11:41:41.638792"], ["name", "Adelaide Nikolaus"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:41:41.640607"], ["updated_at", "2023-02-03 11:41:41.640607"], ["name", "Sherman Schuster"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Audrea O'Keefe"], ["description", "Aperiam dolores laborum. Dolor rem et. Temporibus ullam perspiciatis."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:41:41.659140"], ["updated_at", "2023-02-03 11:41:41.659140"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gwenda Buckridge"], ["created_at", "2023-02-03 11:41:41.659783"], ["updated_at", "2023-02-03 11:41:41.659783"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lucien Wehner"], ["correct", 1], ["created_at", "2023-02-03 11:41:41.660068"], ["updated_at", "2023-02-03 11:41:41.660068"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Loralee Corwin"], ["created_at", "2023-02-03 11:41:41.661555"], ["updated_at", "2023-02-03 11:41:41.661555"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Reginia Windler DO"], ["correct", 1], ["created_at", "2023-02-03 11:41:41.661859"], ["updated_at", "2023-02-03 11:41:41.661859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tuan Mills"], ["created_at", "2023-02-03 11:41:41.662973"], ["updated_at", "2023-02-03 11:41:41.662973"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Isaias Boehm"], ["correct", 1], ["created_at", "2023-02-03 11:41:41.663246"], ["updated_at", "2023-02-03 11:41:41.663246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alton Buckridge"], ["created_at", "2023-02-03 11:41:41.664344"], ["updated_at", "2023-02-03 11:41:41.664344"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Ginny Toy"], ["correct", 1], ["created_at", "2023-02-03 11:41:41.664618"], ["updated_at", "2023-02-03 11:41:41.664618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:41:41.679708"], ["updated_at", "2023-02-03 11:41:41.679708"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:41.680110"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:41:41.681120"], ["updated_at", "2023-02-03 11:41:41.681120"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:41.681418"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:41:41.682167"], ["updated_at", "2023-02-03 11:41:41.682167"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:41.682453"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:41:41.683277"], ["updated_at", "2023-02-03 11:41:41.683277"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:41.683571"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:41:41.686837"], ["updated_at", "2023-02-03 11:41:41.686837"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:41:41.687158"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (1.7ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:42:37.580585"], ["updated_at", "2023-02-03 11:42:37.580585"], ["name", "Faye Volkman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:42:37.582592"], ["updated_at", "2023-02-03 11:42:37.582592"], ["name", "Arnoldo Greenfelder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lin McDermott"], ["description", "Sint nisi sequi. Nihil quae reprehenderit. Dicta ea assumenda."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:42:37.595700"], ["updated_at", "2023-02-03 11:42:37.595700"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Freeman Rau"], ["created_at", "2023-02-03 11:42:37.596299"], ["updated_at", "2023-02-03 11:42:37.596299"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Roseann Muller"], ["correct", 1], ["created_at", "2023-02-03 11:42:37.596571"], ["updated_at", "2023-02-03 11:42:37.596571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Claudie Hagenes II"], ["created_at", "2023-02-03 11:42:37.597998"], ["updated_at", "2023-02-03 11:42:37.597998"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Alane O'Keefe"], ["correct", 1], ["created_at", "2023-02-03 11:42:37.598290"], ["updated_at", "2023-02-03 11:42:37.598290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Matt Rosenbaum"], ["created_at", "2023-02-03 11:42:37.599345"], ["updated_at", "2023-02-03 11:42:37.599345"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Aldo McCullough"], ["correct", 1], ["created_at", "2023-02-03 11:42:37.599617"], ["updated_at", "2023-02-03 11:42:37.599617"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Josiah Jerde"], ["created_at", "2023-02-03 11:42:37.600674"], ["updated_at", "2023-02-03 11:42:37.600674"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Awilda Graham"], ["correct", 1], ["created_at", "2023-02-03 11:42:37.600967"], ["updated_at", "2023-02-03 11:42:37.600967"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:42:37.616155"], ["updated_at", "2023-02-03 11:42:37.616155"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:42:37.616558"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:42:37.617541"], ["updated_at", "2023-02-03 11:42:37.617541"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:42:37.617849"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:42:37.618624"], ["updated_at", "2023-02-03 11:42:37.618624"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:42:37.618929"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:42:37.619692"], ["updated_at", "2023-02-03 11:42:37.619692"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:42:37.619985"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (1.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.8ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (1.7ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (1.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.8ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:50:19.838615"], ["updated_at", "2023-02-03 11:50:19.838615"], ["name", "Genevie Kling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:50:19.840463"], ["updated_at", "2023-02-03 11:50:19.840463"], ["name", "Lachelle Hagenes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hertha Kunze"], ["description", "Iure sunt delectus. Ut dolorem provident. Aut qui qui."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:50:19.859174"], ["updated_at", "2023-02-03 11:50:19.859174"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Martina Crooks"], ["created_at", "2023-02-03 11:50:19.859799"], ["updated_at", "2023-02-03 11:50:19.859799"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rudy McDermott II"], ["correct", 1], ["created_at", "2023-02-03 11:50:19.860076"], ["updated_at", "2023-02-03 11:50:19.860076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lorinda Volkman"], ["created_at", "2023-02-03 11:50:19.861543"], ["updated_at", "2023-02-03 11:50:19.861543"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Temeka Feest"], ["correct", 1], ["created_at", "2023-02-03 11:50:19.861829"], ["updated_at", "2023-02-03 11:50:19.861829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Jessie Homenick"], ["created_at", "2023-02-03 11:50:19.862969"], ["updated_at", "2023-02-03 11:50:19.862969"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Joe Paucek"], ["correct", 1], ["created_at", "2023-02-03 11:50:19.863278"], ["updated_at", "2023-02-03 11:50:19.863278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Danica Ledner"], ["created_at", "2023-02-03 11:50:19.864368"], ["updated_at", "2023-02-03 11:50:19.864368"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Khalilah Satterfield"], ["correct", 1], ["created_at", "2023-02-03 11:50:19.864708"], ["updated_at", "2023-02-03 11:50:19.864708"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:50:19.879707"], ["updated_at", "2023-02-03 11:50:19.879707"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:50:19.880094"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:50:19.881080"], ["updated_at", "2023-02-03 11:50:19.881080"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:50:19.881371"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:50:19.882115"], ["updated_at", "2023-02-03 11:50:19.882115"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:50:19.882487"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:50:19.883223"], ["updated_at", "2023-02-03 11:50:19.883223"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:50:19.883504"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:50:19.886734"], ["updated_at", "2023-02-03 11:50:19.886734"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:50:19.887030"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:51:49.702854"], ["updated_at", "2023-02-03 11:51:49.702854"], ["name", "Silvana Wintheiser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:51:49.704709"], ["updated_at", "2023-02-03 11:51:49.704709"], ["name", "Benedict Hegmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Fonda Fritsch"], ["description", "Ab magni qui. Sit reiciendis culpa. Nobis illum nesciunt."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:51:49.724084"], ["updated_at", "2023-02-03 11:51:49.724084"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maybell Grant"], ["created_at", "2023-02-03 11:51:49.724740"], ["updated_at", "2023-02-03 11:51:49.724740"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ramona Ankunding"], ["correct", 1], ["created_at", "2023-02-03 11:51:49.725020"], ["updated_at", "2023-02-03 11:51:49.725020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Julieta Torphy"], ["created_at", "2023-02-03 11:51:49.726534"], ["updated_at", "2023-02-03 11:51:49.726534"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Nathanial Boyer"], ["correct", 1], ["created_at", "2023-02-03 11:51:49.726823"], ["updated_at", "2023-02-03 11:51:49.726823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arlen Reinger"], ["created_at", "2023-02-03 11:51:49.727967"], ["updated_at", "2023-02-03 11:51:49.727967"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Winifred Towne"], ["correct", 1], ["created_at", "2023-02-03 11:51:49.728238"], ["updated_at", "2023-02-03 11:51:49.728238"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Abraham McGlynn"], ["created_at", "2023-02-03 11:51:49.729401"], ["updated_at", "2023-02-03 11:51:49.729401"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Sheena Walter VM"], ["correct", 1], ["created_at", "2023-02-03 11:51:49.729679"], ["updated_at", "2023-02-03 11:51:49.729679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:51:49.744937"], ["updated_at", "2023-02-03 11:51:49.744937"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:51:49.745335"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:51:49.746354"], ["updated_at", "2023-02-03 11:51:49.746354"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:51:49.746653"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:51:49.747404"], ["updated_at", "2023-02-03 11:51:49.747404"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:51:49.747692"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:51:49.748529"], ["updated_at", "2023-02-03 11:51:49.748529"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:51:49.748813"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:51:49.752036"], ["updated_at", "2023-02-03 11:51:49.752036"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:51:49.752424"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + TRANSACTION (1.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:53:23.854998"], ["updated_at", "2023-02-03 11:53:23.854998"], ["name", "Kiara Auer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:53:23.856926"], ["updated_at", "2023-02-03 11:53:23.856926"], ["name", "Eladia Keeling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loralee Keeling"], ["description", "Aut quibusdam dolorum. Sit quibusdam est. Temporibus ipsa modi."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:53:23.875721"], ["updated_at", "2023-02-03 11:53:23.875721"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clarence Blick DVM"], ["created_at", "2023-02-03 11:53:23.876334"], ["updated_at", "2023-02-03 11:53:23.876334"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jerome Steuber"], ["correct", 1], ["created_at", "2023-02-03 11:53:23.876625"], ["updated_at", "2023-02-03 11:53:23.876625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elisha Torp"], ["created_at", "2023-02-03 11:53:23.878084"], ["updated_at", "2023-02-03 11:53:23.878084"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Nerissa Jerde V"], ["correct", 1], ["created_at", "2023-02-03 11:53:23.878366"], ["updated_at", "2023-02-03 11:53:23.878366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kip Pagac"], ["created_at", "2023-02-03 11:53:23.879500"], ["updated_at", "2023-02-03 11:53:23.879500"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Amos Schultz"], ["correct", 1], ["created_at", "2023-02-03 11:53:23.879773"], ["updated_at", "2023-02-03 11:53:23.879773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Courtney Bauch"], ["created_at", "2023-02-03 11:53:23.880847"], ["updated_at", "2023-02-03 11:53:23.880847"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Macy Abbott"], ["correct", 1], ["created_at", "2023-02-03 11:53:23.881118"], ["updated_at", "2023-02-03 11:53:23.881118"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:53:23.895983"], ["updated_at", "2023-02-03 11:53:23.895983"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:53:23.896374"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:53:23.897408"], ["updated_at", "2023-02-03 11:53:23.897408"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:53:23.897699"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:53:23.898442"], ["updated_at", "2023-02-03 11:53:23.898442"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:53:23.898749"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:53:23.899604"], ["updated_at", "2023-02-03 11:53:23.899604"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:53:23.899894"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.9ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.7ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", -1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + TRANSACTION (0.7ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:55:10.318451"], ["updated_at", "2023-02-03 11:55:10.318451"], ["name", "Rep. Pete Goldner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 11:55:10.320515"], ["updated_at", "2023-02-03 11:55:10.320515"], ["name", "Cuc Crooks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wes Conroy DO"], ["description", "Enim est quo. Nam natus minus. Quae fugiat cum."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 11:55:10.339575"], ["updated_at", "2023-02-03 11:55:10.339575"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Michelina Kessler"], ["created_at", "2023-02-03 11:55:10.340245"], ["updated_at", "2023-02-03 11:55:10.340245"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jarrett Gleichner"], ["correct", 1], ["created_at", "2023-02-03 11:55:10.340530"], ["updated_at", "2023-02-03 11:55:10.340530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tyisha Prohaska"], ["created_at", "2023-02-03 11:55:10.341944"], ["updated_at", "2023-02-03 11:55:10.341944"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Alberto Quitzon"], ["correct", 1], ["created_at", "2023-02-03 11:55:10.342245"], ["updated_at", "2023-02-03 11:55:10.342245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ned Littel CPA"], ["created_at", "2023-02-03 11:55:10.343438"], ["updated_at", "2023-02-03 11:55:10.343438"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Gonzalo Witting"], ["correct", 1], ["created_at", "2023-02-03 11:55:10.343712"], ["updated_at", "2023-02-03 11:55:10.343712"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nicolasa Rutherford VM"], ["created_at", "2023-02-03 11:55:10.344869"], ["updated_at", "2023-02-03 11:55:10.344869"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Vernon Rosenbaum"], ["correct", 1], ["created_at", "2023-02-03 11:55:10.345232"], ["updated_at", "2023-02-03 11:55:10.345232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 11:55:10.360349"], ["updated_at", "2023-02-03 11:55:10.360349"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:55:10.360757"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 11:55:10.361771"], ["updated_at", "2023-02-03 11:55:10.361771"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:55:10.362067"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 11:55:10.362821"], ["updated_at", "2023-02-03 11:55:10.362821"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:55:10.363105"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 11:55:10.363916"], ["updated_at", "2023-02-03 11:55:10.363916"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 11:55:10.364200"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.7ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + TRANSACTION (1.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:06:58.488145"], ["updated_at", "2023-02-03 12:06:58.488145"], ["name", "Boyd Trantow"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:06:58.489942"], ["updated_at", "2023-02-03 12:06:58.489942"], ["name", "Germaine Blick DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Claude Grady"], ["description", "Tempore incidunt eos. Quisquam voluptas dolores. Iure voluptatibus qui."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:06:58.509079"], ["updated_at", "2023-02-03 12:06:58.509079"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hugo Glover"], ["created_at", "2023-02-03 12:06:58.509698"], ["updated_at", "2023-02-03 12:06:58.509698"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Alexis Kohler"], ["correct", 1], ["created_at", "2023-02-03 12:06:58.509976"], ["updated_at", "2023-02-03 12:06:58.509976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Art Rath"], ["created_at", "2023-02-03 12:06:58.511428"], ["updated_at", "2023-02-03 12:06:58.511428"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Mickey Rohan"], ["correct", 1], ["created_at", "2023-02-03 12:06:58.511724"], ["updated_at", "2023-02-03 12:06:58.511724"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cole Murphy"], ["created_at", "2023-02-03 12:06:58.512848"], ["updated_at", "2023-02-03 12:06:58.512848"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Rachell Bartoletti"], ["correct", 1], ["created_at", "2023-02-03 12:06:58.513135"], ["updated_at", "2023-02-03 12:06:58.513135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chong Hoppe"], ["created_at", "2023-02-03 12:06:58.514207"], ["updated_at", "2023-02-03 12:06:58.514207"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Thomas Auer"], ["correct", 1], ["created_at", "2023-02-03 12:06:58.514572"], ["updated_at", "2023-02-03 12:06:58.514572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:06:58.530998"], ["updated_at", "2023-02-03 12:06:58.530998"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:06:58.531496"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:06:58.532507"], ["updated_at", "2023-02-03 12:06:58.532507"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:06:58.532809"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:06:58.533602"], ["updated_at", "2023-02-03 12:06:58.533602"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:06:58.533982"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:06:58.534707"], ["updated_at", "2023-02-03 12:06:58.534707"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:06:58.534984"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:07:33.882884"], ["updated_at", "2023-02-03 12:07:33.882884"], ["name", "Phillip Casper"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:07:33.885358"], ["updated_at", "2023-02-03 12:07:33.885358"], ["name", "Deanna Medhurst Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tracy Breitenberg"], ["description", "Nemo dolor consequuntur. Placeat et dicta. Et qui nam."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:07:33.906016"], ["updated_at", "2023-02-03 12:07:33.906016"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mike Welch"], ["created_at", "2023-02-03 12:07:33.906698"], ["updated_at", "2023-02-03 12:07:33.906698"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Issac McKenzie"], ["correct", 1], ["created_at", "2023-02-03 12:07:33.907007"], ["updated_at", "2023-02-03 12:07:33.907007"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Floretta Stroman"], ["created_at", "2023-02-03 12:07:33.908706"], ["updated_at", "2023-02-03 12:07:33.908706"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Giovanna Dooley DVM"], ["correct", 1], ["created_at", "2023-02-03 12:07:33.909008"], ["updated_at", "2023-02-03 12:07:33.909008"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roger Nolan"], ["created_at", "2023-02-03 12:07:33.910206"], ["updated_at", "2023-02-03 12:07:33.910206"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Jona Gulgowski"], ["correct", 1], ["created_at", "2023-02-03 12:07:33.910513"], ["updated_at", "2023-02-03 12:07:33.910513"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jon Brown"], ["created_at", "2023-02-03 12:07:33.911866"], ["updated_at", "2023-02-03 12:07:33.911866"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lesa Schaden DO"], ["correct", 1], ["created_at", "2023-02-03 12:07:33.912277"], ["updated_at", "2023-02-03 12:07:33.912277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.3ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:07:33.929191"], ["updated_at", "2023-02-03 12:07:33.929191"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:07:33.929634"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:07:33.930653"], ["updated_at", "2023-02-03 12:07:33.930653"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:07:33.930969"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:07:33.931855"], ["updated_at", "2023-02-03 12:07:33.931855"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:07:33.932142"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:07:33.932892"], ["updated_at", "2023-02-03 12:07:33.932892"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:07:33.933175"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:12:56.006408"], ["updated_at", "2023-02-03 12:12:56.006408"], ["name", "Zofia Weber"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:12:56.009575"], ["updated_at", "2023-02-03 12:12:56.009575"], ["name", "Zelda Johnston"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Breanne Rath"], ["description", "Maiores natus aut. Debitis nisi qui. Sint consequuntur at."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:12:56.029224"], ["updated_at", "2023-02-03 12:12:56.029224"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Herminia VonRueden"], ["created_at", "2023-02-03 12:12:56.029871"], ["updated_at", "2023-02-03 12:12:56.029871"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Wyatt Turner"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.030247"], ["updated_at", "2023-02-03 12:12:56.030247"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Drusilla Kessler"], ["created_at", "2023-02-03 12:12:56.032299"], ["updated_at", "2023-02-03 12:12:56.032299"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Charlsie Mayer"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.032755"], ["updated_at", "2023-02-03 12:12:56.032755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Oscar Heaney"], ["created_at", "2023-02-03 12:12:56.034067"], ["updated_at", "2023-02-03 12:12:56.034067"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Rory Treutel DC"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.034376"], ["updated_at", "2023-02-03 12:12:56.034376"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tiffanie Wuckert"], ["created_at", "2023-02-03 12:12:56.035509"], ["updated_at", "2023-02-03 12:12:56.035509"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rev. Erin Hamill"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.035804"], ["updated_at", "2023-02-03 12:12:56.035804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.3ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:12:56.052591"], ["updated_at", "2023-02-03 12:12:56.052591"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.053011"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:12:56.054042"], ["updated_at", "2023-02-03 12:12:56.054042"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.054430"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:12:56.055197"], ["updated_at", "2023-02-03 12:12:56.055197"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.055487"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:12:56.056323"], ["updated_at", "2023-02-03 12:12:56.056323"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.056616"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:12:56.076193"], ["updated_at", "2023-02-03 12:12:56.076193"], ["name", "Leonia Cormier"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:12:56.077243"], ["updated_at", "2023-02-03 12:12:56.077243"], ["name", "Chung Dicki"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Darron Hansen"], ["description", "Aliquid non est. Magni eligendi molestiae. Architecto velit ipsum."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:12:56.079342"], ["updated_at", "2023-02-03 12:12:56.079342"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carson Rippin"], ["created_at", "2023-02-03 12:12:56.079971"], ["updated_at", "2023-02-03 12:12:56.079971"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rep. Clint Schmeler"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.080277"], ["updated_at", "2023-02-03 12:12:56.080277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chieko Lind"], ["created_at", "2023-02-03 12:12:56.081908"], ["updated_at", "2023-02-03 12:12:56.081908"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Teodoro Kihn"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.082284"], ["updated_at", "2023-02-03 12:12:56.082284"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Wilber Breitenberg"], ["created_at", "2023-02-03 12:12:56.083600"], ["updated_at", "2023-02-03 12:12:56.083600"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Mrs. Adaline Raynor"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.083986"], ["updated_at", "2023-02-03 12:12:56.083986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rashida Becker"], ["created_at", "2023-02-03 12:12:56.085184"], ["updated_at", "2023-02-03 12:12:56.085184"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Brad Heathcote"], ["correct", 1], ["created_at", "2023-02-03 12:12:56.085474"], ["updated_at", "2023-02-03 12:12:56.085474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:12:56.089420"], ["updated_at", "2023-02-03 12:12:56.089420"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.089861"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:12:56.090829"], ["updated_at", "2023-02-03 12:12:56.090829"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.091159"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:12:56.092255"], ["updated_at", "2023-02-03 12:12:56.092255"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.092798"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:12:56.093783"], ["updated_at", "2023-02-03 12:12:56.093783"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.094169"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:12:56.099584"], ["updated_at", "2023-02-03 12:12:56.099584"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.100025"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:12:56.101357"], ["updated_at", "2023-02-03 12:12:56.101357"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.101791"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:12:56.102907"], ["updated_at", "2023-02-03 12:12:56.102907"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.103241"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:12:56.104076"], ["updated_at", "2023-02-03 12:12:56.104076"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:12:56.104388"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (1.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? GROUP BY "survey_attempts"."score" /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? /* loading for inspect */ ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 11]] + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + Survey::Attempt Load (0.8ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.2ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.9ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:09.162251"], ["updated_at", "2023-02-03 12:17:09.162251"], ["name", "Rep. Aileen Lemke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:09.164305"], ["updated_at", "2023-02-03 12:17:09.164305"], ["name", "Delsie Rogahn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dung Ortiz"], ["description", "Qui voluptatum et. Laboriosam quia deserunt. Sunt aut enim."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:17:09.183524"], ["updated_at", "2023-02-03 12:17:09.183524"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lenard Heller"], ["created_at", "2023-02-03 12:17:09.184195"], ["updated_at", "2023-02-03 12:17:09.184195"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Efrain Weissnat"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.184580"], ["updated_at", "2023-02-03 12:17:09.184580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shawn Considine"], ["created_at", "2023-02-03 12:17:09.186078"], ["updated_at", "2023-02-03 12:17:09.186078"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Tyron Lubowitz"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.186377"], ["updated_at", "2023-02-03 12:17:09.186377"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Daren O'Reilly"], ["created_at", "2023-02-03 12:17:09.187504"], ["updated_at", "2023-02-03 12:17:09.187504"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Denver Torp DC"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.187775"], ["updated_at", "2023-02-03 12:17:09.187775"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlos Goodwin Jr."], ["created_at", "2023-02-03 12:17:09.188886"], ["updated_at", "2023-02-03 12:17:09.188886"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Whitney Schumm"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.189154"], ["updated_at", "2023-02-03 12:17:09.189154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:09.204064"], ["updated_at", "2023-02-03 12:17:09.204064"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.204456"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:09.205455"], ["updated_at", "2023-02-03 12:17:09.205455"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.205766"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:09.206509"], ["updated_at", "2023-02-03 12:17:09.206509"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.206806"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:09.207626"], ["updated_at", "2023-02-03 12:17:09.207626"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.207919"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:09.226528"], ["updated_at", "2023-02-03 12:17:09.226528"], ["name", "Yoshie Reynolds"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:09.227844"], ["updated_at", "2023-02-03 12:17:09.227844"], ["name", "Tamesha Langworth"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Broderick Donnelly"], ["description", "Qui officiis labore. Suscipit quam hic. Incidunt quis et."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:17:09.230998"], ["updated_at", "2023-02-03 12:17:09.230998"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brice McKenzie"], ["created_at", "2023-02-03 12:17:09.231902"], ["updated_at", "2023-02-03 12:17:09.231902"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mrs. Taneka Connelly"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.232242"], ["updated_at", "2023-02-03 12:17:09.232242"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Lawrence Kshlerin"], ["created_at", "2023-02-03 12:17:09.233812"], ["updated_at", "2023-02-03 12:17:09.233812"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Mendy Orn"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.234162"], ["updated_at", "2023-02-03 12:17:09.234162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Arnold Blanda"], ["created_at", "2023-02-03 12:17:09.235341"], ["updated_at", "2023-02-03 12:17:09.235341"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ada Kohler"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.235728"], ["updated_at", "2023-02-03 12:17:09.235728"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eliseo Bechtelar"], ["created_at", "2023-02-03 12:17:09.236802"], ["updated_at", "2023-02-03 12:17:09.236802"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Mirna O'Keefe"], ["correct", 1], ["created_at", "2023-02-03 12:17:09.237170"], ["updated_at", "2023-02-03 12:17:09.237170"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:09.241003"], ["updated_at", "2023-02-03 12:17:09.241003"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.241368"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:09.242380"], ["updated_at", "2023-02-03 12:17:09.242380"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.242707"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:09.243527"], ["updated_at", "2023-02-03 12:17:09.243527"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.244055"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:09.245067"], ["updated_at", "2023-02-03 12:17:09.245067"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.245377"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:09.249062"], ["updated_at", "2023-02-03 12:17:09.249062"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.249554"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:09.250544"], ["updated_at", "2023-02-03 12:17:09.250544"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.250871"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:09.251755"], ["updated_at", "2023-02-03 12:17:09.251755"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.252053"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:09.252829"], ["updated_at", "2023-02-03 12:17:09.252829"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:09.253123"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:38.352954"], ["updated_at", "2023-02-03 12:17:38.352954"], ["name", "Tomiko Kautzer PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:38.355348"], ["updated_at", "2023-02-03 12:17:38.355348"], ["name", "Stephan Schroeder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jayson Kohler JD"], ["description", "Ad repudiandae accusantium. Aliquid sunt corrupti. Nisi sunt possimus."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:17:38.367300"], ["updated_at", "2023-02-03 12:17:38.367300"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nickie Cruickshank"], ["created_at", "2023-02-03 12:17:38.367917"], ["updated_at", "2023-02-03 12:17:38.367917"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Suzi Halvorson"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.368234"], ["updated_at", "2023-02-03 12:17:38.368234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jared Dickinson"], ["created_at", "2023-02-03 12:17:38.369732"], ["updated_at", "2023-02-03 12:17:38.369732"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Josephina Grimes"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.370154"], ["updated_at", "2023-02-03 12:17:38.370154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alethea Weber"], ["created_at", "2023-02-03 12:17:38.371332"], ["updated_at", "2023-02-03 12:17:38.371332"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Noelle Muller"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.371643"], ["updated_at", "2023-02-03 12:17:38.371643"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Celine Nitzsche"], ["created_at", "2023-02-03 12:17:38.372771"], ["updated_at", "2023-02-03 12:17:38.372771"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "The Hon. Jamie Schiller"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.373076"], ["updated_at", "2023-02-03 12:17:38.373076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:38.390634"], ["updated_at", "2023-02-03 12:17:38.390634"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.391072"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:38.392233"], ["updated_at", "2023-02-03 12:17:38.392233"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.392577"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:38.393423"], ["updated_at", "2023-02-03 12:17:38.393423"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.393721"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:38.394516"], ["updated_at", "2023-02-03 12:17:38.394516"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.394822"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (3.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:38.417491"], ["updated_at", "2023-02-03 12:17:38.417491"], ["name", "Carrol Quitzon"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:17:38.418604"], ["updated_at", "2023-02-03 12:17:38.418604"], ["name", "Colby Feest"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Greg Fay"], ["description", "Saepe consequuntur quis. Ut accusamus illum. Facere nulla veritatis."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:17:38.420827"], ["updated_at", "2023-02-03 12:17:38.420827"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brigette Kerluke VM"], ["created_at", "2023-02-03 12:17:38.421601"], ["updated_at", "2023-02-03 12:17:38.421601"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Delphia Daugherty"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.421938"], ["updated_at", "2023-02-03 12:17:38.421938"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Luz Runte"], ["created_at", "2023-02-03 12:17:38.423516"], ["updated_at", "2023-02-03 12:17:38.423516"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Alfonso Walker"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.423936"], ["updated_at", "2023-02-03 12:17:38.423936"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Natividad Keebler"], ["created_at", "2023-02-03 12:17:38.425200"], ["updated_at", "2023-02-03 12:17:38.425200"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Jessie Kuhn"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.425622"], ["updated_at", "2023-02-03 12:17:38.425622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Phebe Denesik"], ["created_at", "2023-02-03 12:17:38.426767"], ["updated_at", "2023-02-03 12:17:38.426767"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Stephania Luettgen"], ["correct", 1], ["created_at", "2023-02-03 12:17:38.427065"], ["updated_at", "2023-02-03 12:17:38.427065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:38.431323"], ["updated_at", "2023-02-03 12:17:38.431323"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.431720"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:38.432884"], ["updated_at", "2023-02-03 12:17:38.432884"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.433251"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:38.434156"], ["updated_at", "2023-02-03 12:17:38.434156"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.434632"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:38.435645"], ["updated_at", "2023-02-03 12:17:38.435645"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.435996"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:17:38.439770"], ["updated_at", "2023-02-03 12:17:38.439770"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.440113"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:17:38.440982"], ["updated_at", "2023-02-03 12:17:38.440982"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.441313"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:17:38.442259"], ["updated_at", "2023-02-03 12:17:38.442259"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.442660"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:17:38.443692"], ["updated_at", "2023-02-03 12:17:38.443692"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:17:38.444013"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC [["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:18:49.192122"], ["updated_at", "2023-02-03 12:18:49.192122"], ["name", "Melonie Hoeger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:18:49.194616"], ["updated_at", "2023-02-03 12:18:49.194616"], ["name", "The Hon. Deeann Moen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elmer Franecki"], ["description", "Quis voluptatibus id. Architecto nisi veniam. Quisquam corrupti et."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:18:49.206368"], ["updated_at", "2023-02-03 12:18:49.206368"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Mila Senger"], ["created_at", "2023-02-03 12:18:49.206930"], ["updated_at", "2023-02-03 12:18:49.206930"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Hwa Schultz"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.207228"], ["updated_at", "2023-02-03 12:18:49.207228"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rhona Torphy"], ["created_at", "2023-02-03 12:18:49.208783"], ["updated_at", "2023-02-03 12:18:49.208783"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Wilson Casper"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.209097"], ["updated_at", "2023-02-03 12:18:49.209097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Florinda Lemke"], ["created_at", "2023-02-03 12:18:49.210188"], ["updated_at", "2023-02-03 12:18:49.210188"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Titus Langosh"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.210478"], ["updated_at", "2023-02-03 12:18:49.210478"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deon Moen"], ["created_at", "2023-02-03 12:18:49.211578"], ["updated_at", "2023-02-03 12:18:49.211578"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lamont McDermott Sr."], ["correct", 1], ["created_at", "2023-02-03 12:18:49.211863"], ["updated_at", "2023-02-03 12:18:49.211863"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.3ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (1.6ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:18:49.230130"], ["updated_at", "2023-02-03 12:18:49.230130"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.230559"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:18:49.231685"], ["updated_at", "2023-02-03 12:18:49.231685"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.232023"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:18:49.232837"], ["updated_at", "2023-02-03 12:18:49.232837"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.233143"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:18:49.233925"], ["updated_at", "2023-02-03 12:18:49.233925"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.234243"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:18:49.253197"], ["updated_at", "2023-02-03 12:18:49.253197"], ["name", "Nakita Daugherty"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:18:49.254215"], ["updated_at", "2023-02-03 12:18:49.254215"], ["name", "Thomas Mayert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robin Windler"], ["description", "Impedit voluptas nemo. Et facere aut. Qui magnam natus."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:18:49.256688"], ["updated_at", "2023-02-03 12:18:49.256688"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deedra Beier"], ["created_at", "2023-02-03 12:18:49.257387"], ["updated_at", "2023-02-03 12:18:49.257387"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Johnnie Sipes"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.257721"], ["updated_at", "2023-02-03 12:18:49.257721"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miles Nicolas DVM"], ["created_at", "2023-02-03 12:18:49.259368"], ["updated_at", "2023-02-03 12:18:49.259368"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Cary Nikolaus"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.259901"], ["updated_at", "2023-02-03 12:18:49.259901"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Carla Heidenreich"], ["created_at", "2023-02-03 12:18:49.261354"], ["updated_at", "2023-02-03 12:18:49.261354"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Carletta Davis"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.261772"], ["updated_at", "2023-02-03 12:18:49.261772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sharon Williamson VM"], ["created_at", "2023-02-03 12:18:49.263030"], ["updated_at", "2023-02-03 12:18:49.263030"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lindsey Baumbach"], ["correct", 1], ["created_at", "2023-02-03 12:18:49.263330"], ["updated_at", "2023-02-03 12:18:49.263330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:18:49.267322"], ["updated_at", "2023-02-03 12:18:49.267322"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.267683"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:18:49.268828"], ["updated_at", "2023-02-03 12:18:49.268828"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.269188"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:18:49.270092"], ["updated_at", "2023-02-03 12:18:49.270092"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.270417"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:18:49.271248"], ["updated_at", "2023-02-03 12:18:49.271248"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.271602"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:18:49.275624"], ["updated_at", "2023-02-03 12:18:49.275624"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.276005"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:18:49.276925"], ["updated_at", "2023-02-03 12:18:49.276925"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.277252"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:18:49.278076"], ["updated_at", "2023-02-03 12:18:49.278076"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.278386"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:18:49.279191"], ["updated_at", "2023-02-03 12:18:49.279191"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:18:49.279503"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.8ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:19:37.297624"], ["updated_at", "2023-02-03 12:19:37.297624"], ["name", "Terra Bechtelar DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:19:37.300148"], ["updated_at", "2023-02-03 12:19:37.300148"], ["name", "Winifred Kemmer V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Phil Wilkinson"], ["description", "Eligendi qui ipsam. Aperiam ut eum. Dolores ut sit."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:19:37.312285"], ["updated_at", "2023-02-03 12:19:37.312285"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Crista Thiel"], ["created_at", "2023-02-03 12:19:37.313071"], ["updated_at", "2023-02-03 12:19:37.313071"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dreama Breitenberg"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.313444"], ["updated_at", "2023-02-03 12:19:37.313444"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Claude Ankunding"], ["created_at", "2023-02-03 12:19:37.315012"], ["updated_at", "2023-02-03 12:19:37.315012"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Gloria Becker"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.315328"], ["updated_at", "2023-02-03 12:19:37.315328"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Rhett Howe"], ["created_at", "2023-02-03 12:19:37.316524"], ["updated_at", "2023-02-03 12:19:37.316524"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Rep. Kesha Ziemann"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.316815"], ["updated_at", "2023-02-03 12:19:37.316815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Leighann O'Connell"], ["created_at", "2023-02-03 12:19:37.317980"], ["updated_at", "2023-02-03 12:19:37.317980"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Luna Hintz"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.318296"], ["updated_at", "2023-02-03 12:19:37.318296"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.5ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:19:37.336571"], ["updated_at", "2023-02-03 12:19:37.336571"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.337047"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:19:37.338238"], ["updated_at", "2023-02-03 12:19:37.338238"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.338585"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:19:37.339410"], ["updated_at", "2023-02-03 12:19:37.339410"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.339716"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:19:37.340503"], ["updated_at", "2023-02-03 12:19:37.340503"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.340805"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.7ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:19:37.363366"], ["updated_at", "2023-02-03 12:19:37.363366"], ["name", "Fr. Devon Johnson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:19:37.364958"], ["updated_at", "2023-02-03 12:19:37.364958"], ["name", "Louis Keeling"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Caitlin Hudson"], ["description", "Iste quidem doloremque. Et reiciendis hic. Quo sit modi."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:19:37.367450"], ["updated_at", "2023-02-03 12:19:37.367450"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willis Nitzsche Sr."], ["created_at", "2023-02-03 12:19:37.368138"], ["updated_at", "2023-02-03 12:19:37.368138"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Neal Jast"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.368460"], ["updated_at", "2023-02-03 12:19:37.368460"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Anderson Hessel"], ["created_at", "2023-02-03 12:19:37.369905"], ["updated_at", "2023-02-03 12:19:37.369905"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Shanell Williamson"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.370217"], ["updated_at", "2023-02-03 12:19:37.370217"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jerrold Rowe"], ["created_at", "2023-02-03 12:19:37.371344"], ["updated_at", "2023-02-03 12:19:37.371344"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Roseline Lubowitz"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.371663"], ["updated_at", "2023-02-03 12:19:37.371663"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Sandi Kshlerin"], ["created_at", "2023-02-03 12:19:37.372880"], ["updated_at", "2023-02-03 12:19:37.372880"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Alaine Hessel"], ["correct", 1], ["created_at", "2023-02-03 12:19:37.373312"], ["updated_at", "2023-02-03 12:19:37.373312"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:19:37.378469"], ["updated_at", "2023-02-03 12:19:37.378469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.378892"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:19:37.379860"], ["updated_at", "2023-02-03 12:19:37.379860"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.380195"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:19:37.380984"], ["updated_at", "2023-02-03 12:19:37.380984"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.381289"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:19:37.382160"], ["updated_at", "2023-02-03 12:19:37.382160"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.382597"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:19:37.386395"], ["updated_at", "2023-02-03 12:19:37.386395"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.386731"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:19:37.387589"], ["updated_at", "2023-02-03 12:19:37.387589"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.387914"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:19:37.388701"], ["updated_at", "2023-02-03 12:19:37.388701"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.389034"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:19:37.390052"], ["updated_at", "2023-02-03 12:19:37.390052"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:19:37.390431"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:14.774621"], ["updated_at", "2023-02-03 12:25:14.774621"], ["name", "Faviola Casper II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:14.777130"], ["updated_at", "2023-02-03 12:25:14.777130"], ["name", "Christopher Nader"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marylouise Jast"], ["description", "Quam neque quae. Et et illum. Ex aut labore."], ["attempts_number", 69], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:14.789169"], ["updated_at", "2023-02-03 12:25:14.789169"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rigoberto Schneider DVM"], ["created_at", "2023-02-03 12:25:14.789887"], ["updated_at", "2023-02-03 12:25:14.789887"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Burton Collins"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.790361"], ["updated_at", "2023-02-03 12:25:14.790361"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Annabelle Schulist"], ["created_at", "2023-02-03 12:25:14.792597"], ["updated_at", "2023-02-03 12:25:14.792597"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Demetrius Murray Esq."], ["correct", 1], ["created_at", "2023-02-03 12:25:14.793066"], ["updated_at", "2023-02-03 12:25:14.793066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Buck Gerhold"], ["created_at", "2023-02-03 12:25:14.794220"], ["updated_at", "2023-02-03 12:25:14.794220"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Solange Glover"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.794563"], ["updated_at", "2023-02-03 12:25:14.794563"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sylvester Walter"], ["created_at", "2023-02-03 12:25:14.795706"], ["updated_at", "2023-02-03 12:25:14.795706"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Odell Mann"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.795999"], ["updated_at", "2023-02-03 12:25:14.795999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:14.812784"], ["updated_at", "2023-02-03 12:25:14.812784"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.813226"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:14.814239"], ["updated_at", "2023-02-03 12:25:14.814239"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.814551"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:14.815358"], ["updated_at", "2023-02-03 12:25:14.815358"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.815654"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:14.816419"], ["updated_at", "2023-02-03 12:25:14.816419"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.816710"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:14.838732"], ["updated_at", "2023-02-03 12:25:14.838732"], ["name", "Ismael Roberts"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:14.839811"], ["updated_at", "2023-02-03 12:25:14.839811"], ["name", "Jorge Larson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dillon Bernhard"], ["description", "Aperiam rerum molestiae. Laboriosam perferendis esse. Veritatis ratione exercitationem."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:14.841943"], ["updated_at", "2023-02-03 12:25:14.841943"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alycia Vandervort III"], ["created_at", "2023-02-03 12:25:14.842645"], ["updated_at", "2023-02-03 12:25:14.842645"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Wade McLaughlin"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.842993"], ["updated_at", "2023-02-03 12:25:14.842993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Natashia Schmitt"], ["created_at", "2023-02-03 12:25:14.844633"], ["updated_at", "2023-02-03 12:25:14.844633"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Silas Hauck"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.845066"], ["updated_at", "2023-02-03 12:25:14.845066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Raleigh Smitham PhD"], ["created_at", "2023-02-03 12:25:14.846349"], ["updated_at", "2023-02-03 12:25:14.846349"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ricardo Bogan"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.846684"], ["updated_at", "2023-02-03 12:25:14.846684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Jacquelynn Bechtelar"], ["created_at", "2023-02-03 12:25:14.848030"], ["updated_at", "2023-02-03 12:25:14.848030"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Sammie Auer"], ["correct", 1], ["created_at", "2023-02-03 12:25:14.848382"], ["updated_at", "2023-02-03 12:25:14.848382"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:14.853516"], ["updated_at", "2023-02-03 12:25:14.853516"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.853982"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:14.855232"], ["updated_at", "2023-02-03 12:25:14.855232"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.855601"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:14.857010"], ["updated_at", "2023-02-03 12:25:14.857010"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.857599"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:14.858773"], ["updated_at", "2023-02-03 12:25:14.858773"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.859117"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:14.862856"], ["updated_at", "2023-02-03 12:25:14.862856"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.863207"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:14.864094"], ["updated_at", "2023-02-03 12:25:14.864094"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.864432"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:14.865245"], ["updated_at", "2023-02-03 12:25:14.865245"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.865547"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:14.866347"], ["updated_at", "2023-02-03 12:25:14.866347"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:14.866642"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.3ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.385490"], ["updated_at", "2023-02-03 12:25:30.385490"], ["name", "Pasquale Ortiz II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.387396"], ["updated_at", "2023-02-03 12:25:30.387396"], ["name", "Kay Beatty DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lecia Bradtke"], ["description", "Est quos officia. Libero expedita maxime. Placeat voluptas praesentium."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:30.400718"], ["updated_at", "2023-02-03 12:25:30.400718"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Luis Bradtke"], ["created_at", "2023-02-03 12:25:30.401384"], ["updated_at", "2023-02-03 12:25:30.401384"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Cleopatra Parker JD"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.401679"], ["updated_at", "2023-02-03 12:25:30.401679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Mathilde Steuber"], ["created_at", "2023-02-03 12:25:30.403209"], ["updated_at", "2023-02-03 12:25:30.403209"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Gertude Doyle DVM"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.403537"], ["updated_at", "2023-02-03 12:25:30.403537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ahmad Cole"], ["created_at", "2023-02-03 12:25:30.404667"], ["updated_at", "2023-02-03 12:25:30.404667"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Rolland Lesch II"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.404950"], ["updated_at", "2023-02-03 12:25:30.404950"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Annice Windler DO"], ["created_at", "2023-02-03 12:25:30.406103"], ["updated_at", "2023-02-03 12:25:30.406103"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Suzy Beer"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.406557"], ["updated_at", "2023-02-03 12:25:30.406557"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:30.425009"], ["updated_at", "2023-02-03 12:25:30.425009"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.425476"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:30.426714"], ["updated_at", "2023-02-03 12:25:30.426714"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.427041"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:30.427900"], ["updated_at", "2023-02-03 12:25:30.427900"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.428208"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:30.429029"], ["updated_at", "2023-02-03 12:25:30.429029"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.429334"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.454660"], ["updated_at", "2023-02-03 12:25:30.454660"], ["name", "Shayne Effertz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.455766"], ["updated_at", "2023-02-03 12:25:30.455766"], ["name", "Whitley Rodriguez DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Isaias Hills"], ["description", "Corporis reiciendis perferendis. Doloribus eaque occaecati. Iure ipsa incidunt."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:30.458641"], ["updated_at", "2023-02-03 12:25:30.458641"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Karly Wyman"], ["created_at", "2023-02-03 12:25:30.459519"], ["updated_at", "2023-02-03 12:25:30.459519"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mrs. Amparo Ondricka"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.459942"], ["updated_at", "2023-02-03 12:25:30.459942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tomas Muller DDS"], ["created_at", "2023-02-03 12:25:30.461477"], ["updated_at", "2023-02-03 12:25:30.461477"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Sydney Renner"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.461844"], ["updated_at", "2023-02-03 12:25:30.461844"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edmundo Franecki"], ["created_at", "2023-02-03 12:25:30.463046"], ["updated_at", "2023-02-03 12:25:30.463046"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Maurice Bahringer"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.463372"], ["updated_at", "2023-02-03 12:25:30.463372"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eugena Hodkiewicz"], ["created_at", "2023-02-03 12:25:30.464538"], ["updated_at", "2023-02-03 12:25:30.464538"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Terence Ritchie"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.464858"], ["updated_at", "2023-02-03 12:25:30.464858"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:30.468817"], ["updated_at", "2023-02-03 12:25:30.468817"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.469187"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:30.470080"], ["updated_at", "2023-02-03 12:25:30.470080"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.470415"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:30.471460"], ["updated_at", "2023-02-03 12:25:30.471460"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.471865"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:30.472765"], ["updated_at", "2023-02-03 12:25:30.472765"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.473127"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:30.477295"], ["updated_at", "2023-02-03 12:25:30.477295"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.477723"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:30.479009"], ["updated_at", "2023-02-03 12:25:30.479009"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.479400"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:30.480294"], ["updated_at", "2023-02-03 12:25:30.480294"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.480602"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:30.481398"], ["updated_at", "2023-02-03 12:25:30.481398"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.481690"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.485155"], ["updated_at", "2023-02-03 12:25:30.485155"], ["name", "Aaron Stracke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:30.486180"], ["updated_at", "2023-02-03 12:25:30.486180"], ["name", "Lonny Bosco"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Antonia Crona DVM"], ["description", "Quae consectetur rerum. Amet adipisci labore. Nisi pariatur rerum."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:30.488532"], ["updated_at", "2023-02-03 12:25:30.488532"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chase Watsica"], ["created_at", "2023-02-03 12:25:30.489427"], ["updated_at", "2023-02-03 12:25:30.489427"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mrs. Jerald O'Hara"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.489984"], ["updated_at", "2023-02-03 12:25:30.489984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Scot Hamill"], ["created_at", "2023-02-03 12:25:30.491776"], ["updated_at", "2023-02-03 12:25:30.491776"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Maida Zieme CPA"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.492176"], ["updated_at", "2023-02-03 12:25:30.492176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Andra Yost"], ["created_at", "2023-02-03 12:25:30.493312"], ["updated_at", "2023-02-03 12:25:30.493312"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Angel Schimmel"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.493598"], ["updated_at", "2023-02-03 12:25:30.493598"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cameron McGlynn"], ["created_at", "2023-02-03 12:25:30.494752"], ["updated_at", "2023-02-03 12:25:30.494752"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Mozella Leuschke"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.495067"], ["updated_at", "2023-02-03 12:25:30.495067"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dennise Schulist"], ["description", "Accusantium culpa qui. Soluta blanditiis aut. Dolorum minus qui."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:30.497047"], ["updated_at", "2023-02-03 12:25:30.497047"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Karole Schinner"], ["created_at", "2023-02-03 12:25:30.497419"], ["updated_at", "2023-02-03 12:25:30.497419"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Refugio Zulauf"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.497657"], ["updated_at", "2023-02-03 12:25:30.497657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Quinn Smitham"], ["created_at", "2023-02-03 12:25:30.498767"], ["updated_at", "2023-02-03 12:25:30.498767"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Brandy Bauch"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.499057"], ["updated_at", "2023-02-03 12:25:30.499057"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Rickie Koepp"], ["created_at", "2023-02-03 12:25:30.500160"], ["updated_at", "2023-02-03 12:25:30.500160"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Noemi Kerluke"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.500442"], ["updated_at", "2023-02-03 12:25:30.500442"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Samira Weber LLD"], ["created_at", "2023-02-03 12:25:30.501548"], ["updated_at", "2023-02-03 12:25:30.501548"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Derrick Howell"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.501841"], ["updated_at", "2023-02-03 12:25:30.501841"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hollis Willms"], ["created_at", "2023-02-03 12:25:30.502950"], ["updated_at", "2023-02-03 12:25:30.502950"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Micki Shanahan"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.503248"], ["updated_at", "2023-02-03 12:25:30.503248"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Donnell Wisoky"], ["created_at", "2023-02-03 12:25:30.504460"], ["updated_at", "2023-02-03 12:25:30.504460"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Yvone Sanford"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.504942"], ["updated_at", "2023-02-03 12:25:30.504942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Freeda Franecki Sr."], ["created_at", "2023-02-03 12:25:30.506704"], ["updated_at", "2023-02-03 12:25:30.506704"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Lizzette Ryan"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.507406"], ["updated_at", "2023-02-03 12:25:30.507406"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Silas Schmitt"], ["created_at", "2023-02-03 12:25:30.508986"], ["updated_at", "2023-02-03 12:25:30.508986"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Msgr. Jolene Denesik"], ["correct", 1], ["created_at", "2023-02-03 12:25:30.509348"], ["updated_at", "2023-02-03 12:25:30.509348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:30.513380"], ["updated_at", "2023-02-03 12:25:30.513380"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.513750"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:30.514617"], ["updated_at", "2023-02-03 12:25:30.514617"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.514939"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:30.515708"], ["updated_at", "2023-02-03 12:25:30.515708"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.516051"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:30.517112"], ["updated_at", "2023-02-03 12:25:30.517112"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.517451"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:25:30.523843"], ["updated_at", "2023-02-03 12:25:30.523843"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.524278"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:25:30.525321"], ["updated_at", "2023-02-03 12:25:30.525321"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.525642"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:25:30.526558"], ["updated_at", "2023-02-03 12:25:30.526558"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.526930"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:25:30.527863"], ["updated_at", "2023-02-03 12:25:30.527863"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.528179"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:25:30.528992"], ["updated_at", "2023-02-03 12:25:30.528992"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.529312"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:25:30.530085"], ["updated_at", "2023-02-03 12:25:30.530085"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.530385"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:25:30.531146"], ["updated_at", "2023-02-03 12:25:30.531146"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.531440"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:25:30.532212"], ["updated_at", "2023-02-03 12:25:30.532212"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:30.532525"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.8ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.578344"], ["updated_at", "2023-02-03 12:25:58.578344"], ["name", "Tawny Grady"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.580184"], ["updated_at", "2023-02-03 12:25:58.580184"], ["name", "Miss Wes Johnston"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Allan Hodkiewicz CPA"], ["description", "Error occaecati nam. Quibusdam a ea. Suscipit ipsum aut."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:58.591570"], ["updated_at", "2023-02-03 12:25:58.591570"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darnell Becker"], ["created_at", "2023-02-03 12:25:58.592153"], ["updated_at", "2023-02-03 12:25:58.592153"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Merna Daniel"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.592443"], ["updated_at", "2023-02-03 12:25:58.592443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gerardo Will"], ["created_at", "2023-02-03 12:25:58.593910"], ["updated_at", "2023-02-03 12:25:58.593910"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Virgil Jacobs DO"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.594208"], ["updated_at", "2023-02-03 12:25:58.594208"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Brandy Walsh"], ["created_at", "2023-02-03 12:25:58.595358"], ["updated_at", "2023-02-03 12:25:58.595358"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Emilia Watsica"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.595631"], ["updated_at", "2023-02-03 12:25:58.595631"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kalyn Ratke"], ["created_at", "2023-02-03 12:25:58.596694"], ["updated_at", "2023-02-03 12:25:58.596694"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Gregg Goodwin"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.596974"], ["updated_at", "2023-02-03 12:25:58.596974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:58.614052"], ["updated_at", "2023-02-03 12:25:58.614052"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.614509"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:58.615558"], ["updated_at", "2023-02-03 12:25:58.615558"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.615876"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:58.616707"], ["updated_at", "2023-02-03 12:25:58.616707"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.617012"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:58.617828"], ["updated_at", "2023-02-03 12:25:58.617828"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.618120"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.637639"], ["updated_at", "2023-02-03 12:25:58.637639"], ["name", "Pres. Tamatha Hessel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.638827"], ["updated_at", "2023-02-03 12:25:58.638827"], ["name", "Bailey Zulauf"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kari Metz"], ["description", "Ipsa voluptatibus modi. Illum repudiandae soluta. Velit veritatis velit."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:58.641861"], ["updated_at", "2023-02-03 12:25:58.641861"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Emiko Cummerata"], ["created_at", "2023-02-03 12:25:58.642799"], ["updated_at", "2023-02-03 12:25:58.642799"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Andra Fritsch"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.643157"], ["updated_at", "2023-02-03 12:25:58.643157"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gail Walker"], ["created_at", "2023-02-03 12:25:58.644617"], ["updated_at", "2023-02-03 12:25:58.644617"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Tyrone Sipes"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.644942"], ["updated_at", "2023-02-03 12:25:58.644942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kristi Jacobi JD"], ["created_at", "2023-02-03 12:25:58.646129"], ["updated_at", "2023-02-03 12:25:58.646129"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Josue Gerlach"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.646424"], ["updated_at", "2023-02-03 12:25:58.646424"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eloy Daugherty"], ["created_at", "2023-02-03 12:25:58.647582"], ["updated_at", "2023-02-03 12:25:58.647582"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Oscar Jaskolski"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.647881"], ["updated_at", "2023-02-03 12:25:58.647881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:58.651901"], ["updated_at", "2023-02-03 12:25:58.651901"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.652382"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:58.653570"], ["updated_at", "2023-02-03 12:25:58.653570"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.653921"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:58.654769"], ["updated_at", "2023-02-03 12:25:58.654769"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.655079"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:58.655886"], ["updated_at", "2023-02-03 12:25:58.655886"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.656185"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:58.660002"], ["updated_at", "2023-02-03 12:25:58.660002"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.660367"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:58.661469"], ["updated_at", "2023-02-03 12:25:58.661469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.661989"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:58.663189"], ["updated_at", "2023-02-03 12:25:58.663189"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.663550"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:58.664434"], ["updated_at", "2023-02-03 12:25:58.664434"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.664784"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.668304"], ["updated_at", "2023-02-03 12:25:58.668304"], ["name", "Cordia Ward DO"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:25:58.669550"], ["updated_at", "2023-02-03 12:25:58.669550"], ["name", "Ewa Fahey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Oleta Bashirian"], ["description", "Harum dolorem sunt. Beatae necessitatibus atque. Dignissimos quisquam eum."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:58.671817"], ["updated_at", "2023-02-03 12:25:58.671817"], ["survey_type", 2]] + Survey::Question Create (0.6ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willard Moen"], ["created_at", "2023-02-03 12:25:58.673087"], ["updated_at", "2023-02-03 12:25:58.673087"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rodney Balistreri"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.674725"], ["updated_at", "2023-02-03 12:25:58.674725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hipolito Parker"], ["created_at", "2023-02-03 12:25:58.676485"], ["updated_at", "2023-02-03 12:25:58.676485"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Vincent Feeney"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.676847"], ["updated_at", "2023-02-03 12:25:58.676847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Tisa Veum"], ["created_at", "2023-02-03 12:25:58.678382"], ["updated_at", "2023-02-03 12:25:58.678382"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Edna O'Reilly"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.678961"], ["updated_at", "2023-02-03 12:25:58.678961"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tyree Walter Ret."], ["created_at", "2023-02-03 12:25:58.680392"], ["updated_at", "2023-02-03 12:25:58.680392"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Seth Reichert"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.680716"], ["updated_at", "2023-02-03 12:25:58.680716"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tova Ritchie"], ["description", "Autem quod molestiae. Eos expedita dolorem. Temporibus labore praesentium."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:25:58.682788"], ["updated_at", "2023-02-03 12:25:58.682788"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Bryon Yost"], ["created_at", "2023-02-03 12:25:58.683153"], ["updated_at", "2023-02-03 12:25:58.683153"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Mikel Jacobi"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.683388"], ["updated_at", "2023-02-03 12:25:58.683388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Marlys Denesik"], ["created_at", "2023-02-03 12:25:58.684627"], ["updated_at", "2023-02-03 12:25:58.684627"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Stuart Wisozk DDS"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.684920"], ["updated_at", "2023-02-03 12:25:58.684920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Talisha Langworth"], ["created_at", "2023-02-03 12:25:58.686149"], ["updated_at", "2023-02-03 12:25:58.686149"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Hallie Kilback"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.686503"], ["updated_at", "2023-02-03 12:25:58.686503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Micah Purdy DDS"], ["created_at", "2023-02-03 12:25:58.687640"], ["updated_at", "2023-02-03 12:25:58.687640"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Beverlee Hoeger"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.687913"], ["updated_at", "2023-02-03 12:25:58.687913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alta Windler"], ["created_at", "2023-02-03 12:25:58.688982"], ["updated_at", "2023-02-03 12:25:58.688982"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Janean Johnson"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.689253"], ["updated_at", "2023-02-03 12:25:58.689253"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Keshia Ledner"], ["created_at", "2023-02-03 12:25:58.690323"], ["updated_at", "2023-02-03 12:25:58.690323"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Samara Prohaska"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.690607"], ["updated_at", "2023-02-03 12:25:58.690607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Maren Blanda"], ["created_at", "2023-02-03 12:25:58.691656"], ["updated_at", "2023-02-03 12:25:58.691656"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Tommie Hahn"], ["correct", 1], ["created_at", "2023-02-03 12:25:58.691934"], ["updated_at", "2023-02-03 12:25:58.691934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Temple Johnston Esq."], ["created_at", "2023-02-03 12:25:58.693171"], ["updated_at", "2023-02-03 12:25:58.693171"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Kevin VonRueden Jr."], ["correct", 1], ["created_at", "2023-02-03 12:25:58.693482"], ["updated_at", "2023-02-03 12:25:58.693482"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:25:58.697388"], ["updated_at", "2023-02-03 12:25:58.697388"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.697722"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:25:58.698576"], ["updated_at", "2023-02-03 12:25:58.698576"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.698894"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:25:58.699677"], ["updated_at", "2023-02-03 12:25:58.699677"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.699967"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:25:58.700813"], ["updated_at", "2023-02-03 12:25:58.700813"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.701216"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:25:58.707844"], ["updated_at", "2023-02-03 12:25:58.707844"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.708243"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:25:58.709178"], ["updated_at", "2023-02-03 12:25:58.709178"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.709495"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:25:58.710283"], ["updated_at", "2023-02-03 12:25:58.710283"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.710588"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:25:58.711356"], ["updated_at", "2023-02-03 12:25:58.711356"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.711670"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:25:58.712438"], ["updated_at", "2023-02-03 12:25:58.712438"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.712729"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:25:58.713503"], ["updated_at", "2023-02-03 12:25:58.713503"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.713798"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:25:58.714597"], ["updated_at", "2023-02-03 12:25:58.714597"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.714904"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:25:58.715671"], ["updated_at", "2023-02-03 12:25:58.715671"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:25:58.715978"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.300659"], ["updated_at", "2023-02-03 12:26:56.300659"], ["name", "Gov. Benton Ankunding"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Wm Torp"], ["description", "Maiores quae rerum. Atque impedit nostrum. Ut et est."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.306808"], ["updated_at", "2023-02-03 12:26:56.306808"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shanna Wisozk"], ["created_at", "2023-02-03 12:26:56.319508"], ["updated_at", "2023-02-03 12:26:56.319508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Marian Moen"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.322630"], ["updated_at", "2023-02-03 12:26:56.322630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (1.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.326121"], ["updated_at", "2023-02-03 12:26:56.326121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.343455"], ["updated_at", "2023-02-03 12:26:56.343455"], ["name", "The Hon. Leilani Heathcote"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Basil Hane"], ["description", "Recusandae maxime adipisci. Molestiae ratione nobis. Odio a doloremque."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.345365"], ["updated_at", "2023-02-03 12:26:56.345365"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Euna Lubowitz"], ["created_at", "2023-02-03 12:26:56.348321"], ["updated_at", "2023-02-03 12:26:56.348321"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lacey Ernser Esq."], ["correct", 0], ["created_at", "2023-02-03 12:26:56.349317"], ["updated_at", "2023-02-03 12:26:56.349317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.350461"], ["updated_at", "2023-02-03 12:26:56.350461"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.352653"], ["updated_at", "2023-02-03 12:26:56.352653"], ["name", "Von Anderson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Douglass Runolfsson DC"], ["description", "Quia vitae occaecati. Impedit quia autem. Saepe tenetur suscipit."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.354135"], ["updated_at", "2023-02-03 12:26:56.354135"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marcelo Brakus JD"], ["created_at", "2023-02-03 12:26:56.356671"], ["updated_at", "2023-02-03 12:26:56.356671"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Krystle Bogisich"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.357965"], ["updated_at", "2023-02-03 12:26:56.357965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.359191"], ["updated_at", "2023-02-03 12:26:56.359191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.361324"], ["updated_at", "2023-02-03 12:26:56.361324"], ["name", "Eusebia Bayer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donny Gislason V"], ["description", "Maiores quo est. Aut pariatur voluptatem. Modi voluptas qui."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.362671"], ["updated_at", "2023-02-03 12:26:56.362671"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Lyndon Cummings"], ["created_at", "2023-02-03 12:26:56.364694"], ["updated_at", "2023-02-03 12:26:56.364694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Leta Kshlerin"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.365460"], ["updated_at", "2023-02-03 12:26:56.365460"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.366429"], ["updated_at", "2023-02-03 12:26:56.366429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.8ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.378397"], ["updated_at", "2023-02-03 12:26:56.378397"], ["name", "Mora Gutkowski Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ernesto Barton"], ["description", "Odit excepturi optio. Animi placeat consectetur. Eum ea numquam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.379946"], ["updated_at", "2023-02-03 12:26:56.379946"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.394220"], ["updated_at", "2023-02-03 12:26:56.394220"], ["name", "Mrs. Loyd McKenzie"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Catina Homenick"], ["description", "Quis esse dolores. Qui quisquam in. Natus omnis aliquam."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.396157"], ["updated_at", "2023-02-03 12:26:56.396157"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.8ms) DELETE FROM "survey_options" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "German Daugherty PhD"], ["description", "Similique numquam nihil. Ut tempora qui. Nam consectetur est."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.415296"], ["updated_at", "2023-02-03 12:26:56.415296"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cassondra Ward Jr."], ["created_at", "2023-02-03 12:26:56.416515"], ["updated_at", "2023-02-03 12:26:56.416515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Logan Koepp"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.417330"], ["updated_at", "2023-02-03 12:26:56.417330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "John Donnelly"], ["description", "Necessitatibus fuga quis. Impedit vitae debitis. Aperiam esse consequatur."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.419266"], ["updated_at", "2023-02-03 12:26:56.419266"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Susanna Leannon"], ["created_at", "2023-02-03 12:26:56.421502"], ["updated_at", "2023-02-03 12:26:56.421502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Gene Connelly"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.423097"], ["updated_at", "2023-02-03 12:26:56.423097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ta Bergstrom"], ["description", "Nobis ut totam. Est quia cum. Voluptate aut vero."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.427585"], ["updated_at", "2023-02-03 12:26:56.427585"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jene Zboncak CPA"], ["created_at", "2023-02-03 12:26:56.428790"], ["updated_at", "2023-02-03 12:26:56.428790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Anabel Kuphal"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.429572"], ["updated_at", "2023-02-03 12:26:56.429572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tiny Roob"], ["description", "Aut labore ratione. Voluptatem voluptas ad. Omnis odio eius."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.433038"], ["updated_at", "2023-02-03 12:26:56.433038"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rene Mosciski"], ["created_at", "2023-02-03 12:26:56.434944"], ["updated_at", "2023-02-03 12:26:56.434944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ambrose Schmitt"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.435930"], ["updated_at", "2023-02-03 12:26:56.435930"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carmen Ferry"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.436918"], ["updated_at", "2023-02-03 12:26:56.436918"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kenton Koss"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.437755"], ["updated_at", "2023-02-03 12:26:56.437755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Stuart Kuhlman LLD"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.438697"], ["updated_at", "2023-02-03 12:26:56.438697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ena Conroy"], ["description", "Atque error omnis. Odio quo et. Eum asperiores corporis."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.446447"], ["updated_at", "2023-02-03 12:26:56.446447"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marvin Ritchie DDS"], ["created_at", "2023-02-03 12:26:56.448022"], ["updated_at", "2023-02-03 12:26:56.448022"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shawnta Brown"], ["description", "Suscipit fugiat quod. Numquam iure sunt. Saepe enim soluta."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.450395"], ["updated_at", "2023-02-03 12:26:56.450395"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dusti Stracke"], ["created_at", "2023-02-03 12:26:56.451638"], ["updated_at", "2023-02-03 12:26:56.451638"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lane Howell CPA"], ["description", "Perferendis provident placeat. Quisquam voluptatem rem. Distinctio ipsum sit."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.455775"], ["updated_at", "2023-02-03 12:26:56.455775"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlyn Grant"], ["created_at", "2023-02-03 12:26:56.457352"], ["updated_at", "2023-02-03 12:26:56.457352"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Cletus Volkman"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.458906"], ["updated_at", "2023-02-03 12:26:56.458906"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Lettie Mohr"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.460298"], ["updated_at", "2023-02-03 12:26:56.460298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mariano Rath"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.462613"], ["updated_at", "2023-02-03 12:26:56.462613"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dario Ward Ret."], ["correct", 0], ["created_at", "2023-02-03 12:26:56.464002"], ["updated_at", "2023-02-03 12:26:56.464002"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Son Heathcote"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.464815"], ["updated_at", "2023-02-03 12:26:56.464815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Franklin Batz"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.465716"], ["updated_at", "2023-02-03 12:26:56.465716"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Nathaniel Homenick"], ["correct", 0], ["created_at", "2023-02-03 12:26:56.466587"], ["updated_at", "2023-02-03 12:26:56.466587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.5ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denis Hettinger"], ["description", "Sint voluptate quasi. Dolor omnis perspiciatis. Ipsa numquam sed."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.481480"], ["updated_at", "2023-02-03 12:26:56.481480"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shelia Kunde"], ["description", "Est nobis sint. Doloremque vel dolores. Neque voluptas ducimus."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.484809"], ["updated_at", "2023-02-03 12:26:56.484809"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Lyle Bayer"], ["description", "Dolor est occaecati. Debitis consequatur quia. Nesciunt assumenda quae."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.487777"], ["updated_at", "2023-02-03 12:26:56.487777"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ned Berge"], ["created_at", "2023-02-03 12:26:56.488564"], ["updated_at", "2023-02-03 12:26:56.488564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Blair Stark Ret."], ["created_at", "2023-02-03 12:26:56.490204"], ["updated_at", "2023-02-03 12:26:56.490204"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rusty Hills"], ["created_at", "2023-02-03 12:26:56.491497"], ["updated_at", "2023-02-03 12:26:56.491497"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Boyce Abbott"], ["created_at", "2023-02-03 12:26:56.492319"], ["updated_at", "2023-02-03 12:26:56.492319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Anne Schuppe"], ["created_at", "2023-02-03 12:26:56.493822"], ["updated_at", "2023-02-03 12:26:56.493822"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:26:56.496625"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jayson Borer"], ["description", "Sint doloremque officiis. Placeat voluptatibus quia. Et velit ut."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.501053"], ["updated_at", "2023-02-03 12:26:56.501053"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jose Gleichner LLD"], ["description", "Nam voluptatem veniam. Consectetur consequatur maiores. Repellendus tenetur rerum."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.503893"], ["updated_at", "2023-02-03 12:26:56.503893"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rina Crist"], ["created_at", "2023-02-03 12:26:56.504615"], ["updated_at", "2023-02-03 12:26:56.504615"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Neoma Emard"], ["created_at", "2023-02-03 12:26:56.505630"], ["updated_at", "2023-02-03 12:26:56.505630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Olympia Koelpin"], ["created_at", "2023-02-03 12:26:56.507292"], ["updated_at", "2023-02-03 12:26:56.507292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sharell DuBuque"], ["created_at", "2023-02-03 12:26:56.510339"], ["updated_at", "2023-02-03 12:26:56.510339"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marcell Zboncak IV"], ["created_at", "2023-02-03 12:26:56.512945"], ["updated_at", "2023-02-03 12:26:56.512945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Antonette Schuppe"], ["created_at", "2023-02-03 12:26:56.514346"], ["updated_at", "2023-02-03 12:26:56.514346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charlene Barton II"], ["description", "Dolore aut quasi. Quo voluptatem harum. Dolorum enim in."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.517722"], ["updated_at", "2023-02-03 12:26:56.517722"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Junko Stoltenberg"], ["description", "Quo qui culpa. Qui deleniti quo. Sed minus est."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.522378"], ["updated_at", "2023-02-03 12:26:56.522378"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.533874"], ["updated_at", "2023-02-03 12:26:56.533874"], ["name", "Nickole Sanford"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.535186"], ["updated_at", "2023-02-03 12:26:56.535186"], ["name", "Ginger Murphy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tyrone Hyatt"], ["description", "Eligendi at eaque. Rerum debitis saepe. Ab ratione quo."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.537589"], ["updated_at", "2023-02-03 12:26:56.537589"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Alanna Rosenbaum"], ["created_at", "2023-02-03 12:26:56.538255"], ["updated_at", "2023-02-03 12:26:56.538255"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Un Haley"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.538579"], ["updated_at", "2023-02-03 12:26:56.538579"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Sebrina Schamberger"], ["created_at", "2023-02-03 12:26:56.540433"], ["updated_at", "2023-02-03 12:26:56.540433"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jerry Homenick DDS"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.540959"], ["updated_at", "2023-02-03 12:26:56.540959"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gene Jaskolski"], ["created_at", "2023-02-03 12:26:56.542279"], ["updated_at", "2023-02-03 12:26:56.542279"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Mickey Oberbrunner"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.542661"], ["updated_at", "2023-02-03 12:26:56.542661"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Foster Satterfield"], ["created_at", "2023-02-03 12:26:56.543981"], ["updated_at", "2023-02-03 12:26:56.543981"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Andrew McGlynn"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.544362"], ["updated_at", "2023-02-03 12:26:56.544362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.550386"], ["updated_at", "2023-02-03 12:26:56.550386"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.550816"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:26:56.552123"], ["updated_at", "2023-02-03 12:26:56.552123"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.552857"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:26:56.554467"], ["updated_at", "2023-02-03 12:26:56.554467"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.555023"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:26:56.556422"], ["updated_at", "2023-02-03 12:26:56.556422"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.557019"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.563222"], ["updated_at", "2023-02-03 12:26:56.563222"], ["name", "Malia Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.564902"], ["updated_at", "2023-02-03 12:26:56.564902"], ["name", "Buford Torp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kirby Mills"], ["description", "Quod ad porro. Sit ea et. Voluptates nostrum enim."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.566953"], ["updated_at", "2023-02-03 12:26:56.566953"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bao Stracke"], ["created_at", "2023-02-03 12:26:56.567397"], ["updated_at", "2023-02-03 12:26:56.567397"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Darcey Lebsack"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.567678"], ["updated_at", "2023-02-03 12:26:56.567678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joey Little"], ["created_at", "2023-02-03 12:26:56.569078"], ["updated_at", "2023-02-03 12:26:56.569078"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Wendell Keebler"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.569578"], ["updated_at", "2023-02-03 12:26:56.569578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garth Gutmann"], ["created_at", "2023-02-03 12:26:56.570947"], ["updated_at", "2023-02-03 12:26:56.570947"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Milagro Wisozk PhD"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.571441"], ["updated_at", "2023-02-03 12:26:56.571441"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bo Mraz"], ["created_at", "2023-02-03 12:26:56.580802"], ["updated_at", "2023-02-03 12:26:56.580802"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rhonda Reilly"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.581459"], ["updated_at", "2023-02-03 12:26:56.581459"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.585795"], ["updated_at", "2023-02-03 12:26:56.585795"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.586240"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:26:56.587390"], ["updated_at", "2023-02-03 12:26:56.587390"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.587729"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:26:56.589018"], ["updated_at", "2023-02-03 12:26:56.589018"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.589578"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:26:56.590838"], ["updated_at", "2023-02-03 12:26:56.590838"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.591183"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.594628"], ["updated_at", "2023-02-03 12:26:56.594628"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.594987"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:26:56.595799"], ["updated_at", "2023-02-03 12:26:56.595799"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.596095"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:26:56.596893"], ["updated_at", "2023-02-03 12:26:56.596893"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.597192"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:26:56.597968"], ["updated_at", "2023-02-03 12:26:56.597968"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.598260"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.601625"], ["updated_at", "2023-02-03 12:26:56.601625"], ["name", "Madelaine Lindgren"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:26:56.604305"], ["updated_at", "2023-02-03 12:26:56.604305"], ["name", "Masako Pagac"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Jarrod Hirthe"], ["description", "Blanditiis laborum itaque. Quod et odio. Suscipit eligendi mollitia."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.607877"], ["updated_at", "2023-02-03 12:26:56.607877"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Deangelo Koch"], ["created_at", "2023-02-03 12:26:56.608523"], ["updated_at", "2023-02-03 12:26:56.608523"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Shirleen Johnson"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.608801"], ["updated_at", "2023-02-03 12:26:56.608801"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Benjamin Schaefer"], ["created_at", "2023-02-03 12:26:56.610112"], ["updated_at", "2023-02-03 12:26:56.610112"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Denisse Douglas"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.610432"], ["updated_at", "2023-02-03 12:26:56.610432"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marco Schultz"], ["created_at", "2023-02-03 12:26:56.611565"], ["updated_at", "2023-02-03 12:26:56.611565"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Devora Leffler"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.611873"], ["updated_at", "2023-02-03 12:26:56.611873"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Estelle Ullrich"], ["created_at", "2023-02-03 12:26:56.612975"], ["updated_at", "2023-02-03 12:26:56.612975"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Billy Reichert"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.613252"], ["updated_at", "2023-02-03 12:26:56.613252"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chu Dickinson"], ["description", "Neque doloribus aperiam. Rem enim illum. Ea dolor laudantium."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:26:56.615063"], ["updated_at", "2023-02-03 12:26:56.615063"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bryant Johnston"], ["created_at", "2023-02-03 12:26:56.615422"], ["updated_at", "2023-02-03 12:26:56.615422"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Nadia Goyette"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.615655"], ["updated_at", "2023-02-03 12:26:56.615655"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shanti Schaefer"], ["created_at", "2023-02-03 12:26:56.616733"], ["updated_at", "2023-02-03 12:26:56.616733"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Ashley Rosenbaum"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.617010"], ["updated_at", "2023-02-03 12:26:56.617010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Darrel O'Conner III"], ["created_at", "2023-02-03 12:26:56.618148"], ["updated_at", "2023-02-03 12:26:56.618148"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Prof. Ira Watsica"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.618428"], ["updated_at", "2023-02-03 12:26:56.618428"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Wyatt Strosin"], ["created_at", "2023-02-03 12:26:56.619649"], ["updated_at", "2023-02-03 12:26:56.619649"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Santiago Bayer LLD"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.620026"], ["updated_at", "2023-02-03 12:26:56.620026"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Damion Kassulke"], ["created_at", "2023-02-03 12:26:56.621110"], ["updated_at", "2023-02-03 12:26:56.621110"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Keli Lueilwitz"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.621393"], ["updated_at", "2023-02-03 12:26:56.621393"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Janell Wintheiser"], ["created_at", "2023-02-03 12:26:56.622513"], ["updated_at", "2023-02-03 12:26:56.622513"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Laraine Block"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.622818"], ["updated_at", "2023-02-03 12:26:56.622818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reggie Considine"], ["created_at", "2023-02-03 12:26:56.623902"], ["updated_at", "2023-02-03 12:26:56.623902"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Cora Kilback"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.624189"], ["updated_at", "2023-02-03 12:26:56.624189"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Graham Roberts"], ["created_at", "2023-02-03 12:26:56.625271"], ["updated_at", "2023-02-03 12:26:56.625271"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Mario Schoen"], ["correct", 1], ["created_at", "2023-02-03 12:26:56.625551"], ["updated_at", "2023-02-03 12:26:56.625551"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:26:56.630152"], ["updated_at", "2023-02-03 12:26:56.630152"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.630617"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:26:56.631725"], ["updated_at", "2023-02-03 12:26:56.631725"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.632086"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:26:56.632940"], ["updated_at", "2023-02-03 12:26:56.632940"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.633268"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:26:56.634093"], ["updated_at", "2023-02-03 12:26:56.634093"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.634393"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:26:56.641243"], ["updated_at", "2023-02-03 12:26:56.641243"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.641662"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:26:56.642904"], ["updated_at", "2023-02-03 12:26:56.642904"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.643325"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:26:56.644228"], ["updated_at", "2023-02-03 12:26:56.644228"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.644583"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:26:56.645369"], ["updated_at", "2023-02-03 12:26:56.645369"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.645670"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:26:56.646451"], ["updated_at", "2023-02-03 12:26:56.646451"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.646778"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:26:56.647562"], ["updated_at", "2023-02-03 12:26:56.647562"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.647864"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:26:56.648635"], ["updated_at", "2023-02-03 12:26:56.648635"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.648925"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:26:56.649723"], ["updated_at", "2023-02-03 12:26:56.649723"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:26:56.650036"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.105744"], ["updated_at", "2023-02-03 12:31:46.105744"], ["name", "Cesar Russel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brooks Kerluke IV"], ["description", "Praesentium occaecati quia. Voluptatem sit occaecati. Molestiae consequuntur atque."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.111425"], ["updated_at", "2023-02-03 12:31:46.111425"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Socorro Daugherty CPA"], ["created_at", "2023-02-03 12:31:46.124706"], ["updated_at", "2023-02-03 12:31:46.124706"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Josephine Hills"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.128279"], ["updated_at", "2023-02-03 12:31:46.128279"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.131557"], ["updated_at", "2023-02-03 12:31:46.131557"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.146673"], ["updated_at", "2023-02-03 12:31:46.146673"], ["name", "Ms. Johnie Corkery"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rodger Mann CPA"], ["description", "Cum voluptates distinctio. Veniam exercitationem voluptatibus. Eveniet dolorem fuga."], ["attempts_number", 20], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.148303"], ["updated_at", "2023-02-03 12:31:46.148303"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Johnathan Okuneva"], ["created_at", "2023-02-03 12:31:46.151472"], ["updated_at", "2023-02-03 12:31:46.151472"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Giovanna Klocko"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.152414"], ["updated_at", "2023-02-03 12:31:46.152414"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.153564"], ["updated_at", "2023-02-03 12:31:46.153564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.155669"], ["updated_at", "2023-02-03 12:31:46.155669"], ["name", "Rocky Buckridge"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bette Vandervort"], ["description", "Voluptate vero ipsam. Ipsa quidem harum. Rerum repellendus id."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.157053"], ["updated_at", "2023-02-03 12:31:46.157053"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jose Kiehn"], ["created_at", "2023-02-03 12:31:46.159086"], ["updated_at", "2023-02-03 12:31:46.159086"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "German Padberg"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.159837"], ["updated_at", "2023-02-03 12:31:46.159837"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.160835"], ["updated_at", "2023-02-03 12:31:46.160835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.162732"], ["updated_at", "2023-02-03 12:31:46.162732"], ["name", "Belia O'Reilly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miyoko Collier"], ["description", "Omnis dolor non. Quia corporis maxime. Eos et aut."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.164040"], ["updated_at", "2023-02-03 12:31:46.164040"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wilbert Stoltenberg PhD"], ["created_at", "2023-02-03 12:31:46.166071"], ["updated_at", "2023-02-03 12:31:46.166071"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jewel Hahn PhD"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.167102"], ["updated_at", "2023-02-03 12:31:46.167102"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.168509"], ["updated_at", "2023-02-03 12:31:46.168509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.178068"], ["updated_at", "2023-02-03 12:31:46.178068"], ["name", "Pres. Sammy Ziemann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Denis Paucek"], ["description", "Dolore quis tempore. Accusantium aliquid voluptatem. Ipsam similique tenetur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.179508"], ["updated_at", "2023-02-03 12:31:46.179508"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.192726"], ["updated_at", "2023-02-03 12:31:46.192726"], ["name", "Moshe Thiel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Julius Walsh"], ["description", "Et non similique. Saepe laudantium non. Aut autem quis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.194359"], ["updated_at", "2023-02-03 12:31:46.194359"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pierre Wilderman"], ["description", "Qui voluptate voluptatibus. Quae officia aut. Sed dicta voluptatem."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.211726"], ["updated_at", "2023-02-03 12:31:46.211726"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Lorriane Tromp"], ["created_at", "2023-02-03 12:31:46.213263"], ["updated_at", "2023-02-03 12:31:46.213263"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Suzi Sawayn"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.214274"], ["updated_at", "2023-02-03 12:31:46.214274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Greta Legros"], ["description", "Accusamus iste minima. Nam ut ad. Ut aperiam et."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.217284"], ["updated_at", "2023-02-03 12:31:46.217284"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Reid Jakubowski"], ["created_at", "2023-02-03 12:31:46.219213"], ["updated_at", "2023-02-03 12:31:46.219213"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lonnie Cummings"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.220797"], ["updated_at", "2023-02-03 12:31:46.220797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Angelita Hammes"], ["description", "Ut amet voluptatem. Dolores ducimus distinctio. Quis in reprehenderit."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.226755"], ["updated_at", "2023-02-03 12:31:46.226755"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Irish Steuber"], ["created_at", "2023-02-03 12:31:46.228612"], ["updated_at", "2023-02-03 12:31:46.228612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Mac Kuphal"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.229826"], ["updated_at", "2023-02-03 12:31:46.229826"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Michael Kertzmann"], ["description", "Accusamus a aliquid. Ratione ullam delectus. Praesentium doloremque labore."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.236041"], ["updated_at", "2023-02-03 12:31:46.236041"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Victorina Cremin"], ["created_at", "2023-02-03 12:31:46.239056"], ["updated_at", "2023-02-03 12:31:46.239056"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joanie Gottlieb"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.240738"], ["updated_at", "2023-02-03 12:31:46.240738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Wendolyn Schmidt"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.241805"], ["updated_at", "2023-02-03 12:31:46.241805"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Benito Lebsack"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.242667"], ["updated_at", "2023-02-03 12:31:46.242667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mara Welch"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.243773"], ["updated_at", "2023-02-03 12:31:46.243773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jami Lockman Sr."], ["description", "Voluptatem dolores minus. Quos sed odio. Odio aut eligendi."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.251802"], ["updated_at", "2023-02-03 12:31:46.251802"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vi Fritsch"], ["created_at", "2023-02-03 12:31:46.253714"], ["updated_at", "2023-02-03 12:31:46.253714"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.3ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cornelius Veum"], ["description", "Minus aut officia. Quia minima aliquid. Sit delectus magnam."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.257288"], ["updated_at", "2023-02-03 12:31:46.257288"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edmundo Mann"], ["created_at", "2023-02-03 12:31:46.259245"], ["updated_at", "2023-02-03 12:31:46.259245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Walton Hilll"], ["description", "Sit molestiae reiciendis. Officia non ea. Molestiae animi et."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.264230"], ["updated_at", "2023-02-03 12:31:46.264230"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sam Funk"], ["created_at", "2023-02-03 12:31:46.266426"], ["updated_at", "2023-02-03 12:31:46.266426"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Brent Doyle JD"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.271274"], ["updated_at", "2023-02-03 12:31:46.271274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Macie Kohler"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.272895"], ["updated_at", "2023-02-03 12:31:46.272895"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Suzanna Von"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.273875"], ["updated_at", "2023-02-03 12:31:46.273875"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kim Mayer"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.274755"], ["updated_at", "2023-02-03 12:31:46.274755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kemberly Jacobs PhD"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.275645"], ["updated_at", "2023-02-03 12:31:46.275645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Solange Greenholt"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.276471"], ["updated_at", "2023-02-03 12:31:46.276471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kisha Rohan"], ["correct", 0], ["created_at", "2023-02-03 12:31:46.277392"], ["updated_at", "2023-02-03 12:31:46.277392"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dominque Padberg"], ["description", "Nihil quia culpa. Ex repudiandae dicta. Totam accusantium sit."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.293657"], ["updated_at", "2023-02-03 12:31:46.293657"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jessie Pouros"], ["description", "Architecto soluta natus. Voluptatum quam et. Magni qui non."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.296843"], ["updated_at", "2023-02-03 12:31:46.296843"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bill Graham"], ["description", "Ut fuga omnis. Non quibusdam velit. Laboriosam et dolorem."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.300086"], ["updated_at", "2023-02-03 12:31:46.300086"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Natalia Pacocha"], ["created_at", "2023-02-03 12:31:46.300885"], ["updated_at", "2023-02-03 12:31:46.300885"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Cristopher Brekke"], ["created_at", "2023-02-03 12:31:46.302165"], ["updated_at", "2023-02-03 12:31:46.302165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Marlon Lynch"], ["created_at", "2023-02-03 12:31:46.303435"], ["updated_at", "2023-02-03 12:31:46.303435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Theola Glover"], ["created_at", "2023-02-03 12:31:46.304652"], ["updated_at", "2023-02-03 12:31:46.304652"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dannie Thiel"], ["created_at", "2023-02-03 12:31:46.306411"], ["updated_at", "2023-02-03 12:31:46.306411"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:31:46.308731"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Akiko Simonis II"], ["description", "Commodi aspernatur est. Veniam et voluptas. Ea reiciendis ab."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.314150"], ["updated_at", "2023-02-03 12:31:46.314150"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Abdul Hammes Esq."], ["description", "At vero maiores. Omnis autem omnis. Sequi quibusdam porro."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.318593"], ["updated_at", "2023-02-03 12:31:46.318593"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kasi Kreiger I"], ["created_at", "2023-02-03 12:31:46.319590"], ["updated_at", "2023-02-03 12:31:46.319590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rudolf Ferry"], ["created_at", "2023-02-03 12:31:46.321074"], ["updated_at", "2023-02-03 12:31:46.321074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sheldon Kshlerin DVM"], ["created_at", "2023-02-03 12:31:46.322407"], ["updated_at", "2023-02-03 12:31:46.322407"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Henry Lesch"], ["created_at", "2023-02-03 12:31:46.324183"], ["updated_at", "2023-02-03 12:31:46.324183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kristel Douglas Sr."], ["created_at", "2023-02-03 12:31:46.325638"], ["updated_at", "2023-02-03 12:31:46.325638"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Johnny Morissette"], ["created_at", "2023-02-03 12:31:46.327709"], ["updated_at", "2023-02-03 12:31:46.327709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Enoch Sawayn"], ["description", "Harum amet dolor. Sint quam est. Quia corporis pariatur."], ["attempts_number", 29], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.331188"], ["updated_at", "2023-02-03 12:31:46.331188"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Trent Kub"], ["description", "Voluptas ipsam voluptas. Dolores laboriosam vel. Corporis iusto rerum."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.336843"], ["updated_at", "2023-02-03 12:31:46.336843"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.347277"], ["updated_at", "2023-02-03 12:31:46.347277"], ["name", "Anthony Blick V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.348628"], ["updated_at", "2023-02-03 12:31:46.348628"], ["name", "Wilbert Armstrong"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cory Raynor"], ["description", "Aut totam minima. Eius officia nam. Provident perferendis dolore."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.350828"], ["updated_at", "2023-02-03 12:31:46.350828"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Francisco Champlin"], ["created_at", "2023-02-03 12:31:46.351524"], ["updated_at", "2023-02-03 12:31:46.351524"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Naida Hudson"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.351870"], ["updated_at", "2023-02-03 12:31:46.351870"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chrissy Glover"], ["created_at", "2023-02-03 12:31:46.353557"], ["updated_at", "2023-02-03 12:31:46.353557"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jalisa Kshlerin DC"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.353960"], ["updated_at", "2023-02-03 12:31:46.353960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Deneen Tremblay"], ["created_at", "2023-02-03 12:31:46.355192"], ["updated_at", "2023-02-03 12:31:46.355192"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Justa O'Kon"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.355523"], ["updated_at", "2023-02-03 12:31:46.355523"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Sol Torphy"], ["created_at", "2023-02-03 12:31:46.357168"], ["updated_at", "2023-02-03 12:31:46.357168"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Carlee Halvorson Jr."], ["correct", 1], ["created_at", "2023-02-03 12:31:46.357948"], ["updated_at", "2023-02-03 12:31:46.357948"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.364027"], ["updated_at", "2023-02-03 12:31:46.364027"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.364578"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:31:46.366379"], ["updated_at", "2023-02-03 12:31:46.366379"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.366980"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:31:46.368198"], ["updated_at", "2023-02-03 12:31:46.368198"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.368591"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:31:46.370057"], ["updated_at", "2023-02-03 12:31:46.370057"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.370759"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.377544"], ["updated_at", "2023-02-03 12:31:46.377544"], ["name", "Gov. Yadira Ruecker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.379280"], ["updated_at", "2023-02-03 12:31:46.379280"], ["name", "Miss Rodrick Donnelly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Makeda Hills"], ["description", "Praesentium vitae amet. Aut accusamus cum. Quis itaque deserunt."], ["attempts_number", 89], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.382222"], ["updated_at", "2023-02-03 12:31:46.382222"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willis Kautzer"], ["created_at", "2023-02-03 12:31:46.383131"], ["updated_at", "2023-02-03 12:31:46.383131"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rev. Crysta Koch"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.383512"], ["updated_at", "2023-02-03 12:31:46.383512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ben Hettinger MD"], ["created_at", "2023-02-03 12:31:46.385511"], ["updated_at", "2023-02-03 12:31:46.385511"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Trenton Abernathy"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.386188"], ["updated_at", "2023-02-03 12:31:46.386188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rolf Russel"], ["created_at", "2023-02-03 12:31:46.387609"], ["updated_at", "2023-02-03 12:31:46.387609"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Spring Ziemann"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.388024"], ["updated_at", "2023-02-03 12:31:46.388024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ira Balistreri"], ["created_at", "2023-02-03 12:31:46.389630"], ["updated_at", "2023-02-03 12:31:46.389630"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Pres. Nickolas Aufderhar"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.390418"], ["updated_at", "2023-02-03 12:31:46.390418"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.395526"], ["updated_at", "2023-02-03 12:31:46.395526"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.405871"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:31:46.407953"], ["updated_at", "2023-02-03 12:31:46.407953"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.408416"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:31:46.409596"], ["updated_at", "2023-02-03 12:31:46.409596"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.409977"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:31:46.410844"], ["updated_at", "2023-02-03 12:31:46.410844"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.411147"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.414660"], ["updated_at", "2023-02-03 12:31:46.414660"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.414969"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:31:46.415798"], ["updated_at", "2023-02-03 12:31:46.415798"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.416100"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:31:46.416924"], ["updated_at", "2023-02-03 12:31:46.416924"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.417214"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:31:46.417970"], ["updated_at", "2023-02-03 12:31:46.417970"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.418265"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.421633"], ["updated_at", "2023-02-03 12:31:46.421633"], ["name", "Irvin Bernhard"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:31:46.422974"], ["updated_at", "2023-02-03 12:31:46.422974"], ["name", "Elouise Daugherty"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kellie Moen"], ["description", "Blanditiis corrupti voluptates. Fugiat non aliquid. Et nihil iste."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.426470"], ["updated_at", "2023-02-03 12:31:46.426470"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Drew Hoppe"], ["created_at", "2023-02-03 12:31:46.427155"], ["updated_at", "2023-02-03 12:31:46.427155"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Veta Barrows II"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.427434"], ["updated_at", "2023-02-03 12:31:46.427434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Galen Hettinger"], ["created_at", "2023-02-03 12:31:46.428789"], ["updated_at", "2023-02-03 12:31:46.428789"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Mee Ortiz"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.429147"], ["updated_at", "2023-02-03 12:31:46.429147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mack Strosin"], ["created_at", "2023-02-03 12:31:46.430309"], ["updated_at", "2023-02-03 12:31:46.430309"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Lottie Heller"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.430623"], ["updated_at", "2023-02-03 12:31:46.430623"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marcelo Kuvalis Esq."], ["created_at", "2023-02-03 12:31:46.431866"], ["updated_at", "2023-02-03 12:31:46.431866"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Mrs. Wes Emmerich"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.432286"], ["updated_at", "2023-02-03 12:31:46.432286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lindy Okuneva III"], ["description", "Quo tenetur expedita. Nostrum dolorum vitae. Voluptatibus autem natus."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:31:46.434355"], ["updated_at", "2023-02-03 12:31:46.434355"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jami Sauer"], ["created_at", "2023-02-03 12:31:46.434714"], ["updated_at", "2023-02-03 12:31:46.434714"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Kirby Stoltenberg"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.434937"], ["updated_at", "2023-02-03 12:31:46.434937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hal Hodkiewicz"], ["created_at", "2023-02-03 12:31:46.436058"], ["updated_at", "2023-02-03 12:31:46.436058"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Rev. Refugio Little"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.436329"], ["updated_at", "2023-02-03 12:31:46.436329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Daniella Toy"], ["created_at", "2023-02-03 12:31:46.437409"], ["updated_at", "2023-02-03 12:31:46.437409"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Rev. Mac Dibbert"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.437675"], ["updated_at", "2023-02-03 12:31:46.437675"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anton Lindgren"], ["created_at", "2023-02-03 12:31:46.438730"], ["updated_at", "2023-02-03 12:31:46.438730"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Carley Kassulke"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.438999"], ["updated_at", "2023-02-03 12:31:46.438999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Coy Hauck"], ["created_at", "2023-02-03 12:31:46.440036"], ["updated_at", "2023-02-03 12:31:46.440036"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Derrick Lynch"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.440306"], ["updated_at", "2023-02-03 12:31:46.440306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kristin Ritchie"], ["created_at", "2023-02-03 12:31:46.441340"], ["updated_at", "2023-02-03 12:31:46.441340"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Fredericka Smith"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.441609"], ["updated_at", "2023-02-03 12:31:46.441609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Genoveva Stiedemann"], ["created_at", "2023-02-03 12:31:46.442667"], ["updated_at", "2023-02-03 12:31:46.442667"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Rosendo Schmidt"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.442931"], ["updated_at", "2023-02-03 12:31:46.442931"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Trent King II"], ["created_at", "2023-02-03 12:31:46.443994"], ["updated_at", "2023-02-03 12:31:46.443994"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Consuelo Gottlieb"], ["correct", 1], ["created_at", "2023-02-03 12:31:46.444270"], ["updated_at", "2023-02-03 12:31:46.444270"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:31:46.447966"], ["updated_at", "2023-02-03 12:31:46.447966"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.448293"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:31:46.449144"], ["updated_at", "2023-02-03 12:31:46.449144"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.449441"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:31:46.450226"], ["updated_at", "2023-02-03 12:31:46.450226"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.450518"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:31:46.451269"], ["updated_at", "2023-02-03 12:31:46.451269"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.451562"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:31:46.457119"], ["updated_at", "2023-02-03 12:31:46.457119"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.457427"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:31:46.458215"], ["updated_at", "2023-02-03 12:31:46.458215"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.458533"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:31:46.459274"], ["updated_at", "2023-02-03 12:31:46.459274"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.459564"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:31:46.460316"], ["updated_at", "2023-02-03 12:31:46.460316"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.460625"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:31:46.461361"], ["updated_at", "2023-02-03 12:31:46.461361"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.461653"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:31:46.462408"], ["updated_at", "2023-02-03 12:31:46.462408"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.462718"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:31:46.463460"], ["updated_at", "2023-02-03 12:31:46.463460"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.463744"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:31:46.464475"], ["updated_at", "2023-02-03 12:31:46.464475"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:31:46.464759"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:39.995955"], ["updated_at", "2023-02-03 12:40:39.995955"], ["name", "Brent Lueilwitz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rodrick Brown"], ["description", "Porro laborum quos. Iusto molestiae nam. Dolor eveniet suscipit."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.001929"], ["updated_at", "2023-02-03 12:40:40.001929"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garfield Ratke"], ["created_at", "2023-02-03 12:40:40.019313"], ["updated_at", "2023-02-03 12:40:40.019313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shane Mayer"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.022148"], ["updated_at", "2023-02-03 12:40:40.022148"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.025203"], ["updated_at", "2023-02-03 12:40:40.025203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.040529"], ["updated_at", "2023-02-03 12:40:40.040529"], ["name", "Rev. Micheal Crooks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cody Brakus"], ["description", "Voluptatem cumque nemo. Doloribus labore minima. Eum numquam doloribus."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.041992"], ["updated_at", "2023-02-03 12:40:40.041992"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ena Fisher"], ["created_at", "2023-02-03 12:40:40.044633"], ["updated_at", "2023-02-03 12:40:40.044633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Prof. Donn Mayer"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.045516"], ["updated_at", "2023-02-03 12:40:40.045516"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.046616"], ["updated_at", "2023-02-03 12:40:40.046616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.048673"], ["updated_at", "2023-02-03 12:40:40.048673"], ["name", "Bobbye Feil"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Benton O'Reilly"], ["description", "Quaerat ex quibusdam. Expedita rerum quibusdam. Quae perspiciatis consequatur."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.050067"], ["updated_at", "2023-02-03 12:40:40.050067"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alton Kunze"], ["created_at", "2023-02-03 12:40:40.052264"], ["updated_at", "2023-02-03 12:40:40.052264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lewis Fadel JD"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.053064"], ["updated_at", "2023-02-03 12:40:40.053064"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.054240"], ["updated_at", "2023-02-03 12:40:40.054240"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.056654"], ["updated_at", "2023-02-03 12:40:40.056654"], ["name", "Ernestina Bruen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lorie Kihn VM"], ["description", "Qui explicabo illum. Aliquid sit sunt. Deleniti molestiae dolorem."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.058099"], ["updated_at", "2023-02-03 12:40:40.058099"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Andy Okuneva"], ["created_at", "2023-02-03 12:40:40.060283"], ["updated_at", "2023-02-03 12:40:40.060283"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alvin Langworth"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.061054"], ["updated_at", "2023-02-03 12:40:40.061054"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.062040"], ["updated_at", "2023-02-03 12:40:40.062040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (1.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.070256"], ["updated_at", "2023-02-03 12:40:40.070256"], ["name", "Jeannine Quitzon"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Aretha Hyatt"], ["description", "Inventore vitae sed. A magni veritatis. Debitis architecto nihil."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.073323"], ["updated_at", "2023-02-03 12:40:40.073323"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.3ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.088080"], ["updated_at", "2023-02-03 12:40:40.088080"], ["name", "Msgr. Ty Heathcote"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Kermit Kuhlman"], ["description", "Quia sed cumque. Animi odio placeat. Necessitatibus odio repellendus."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.089779"], ["updated_at", "2023-02-03 12:40:40.089779"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.6ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Vernita Abbott"], ["description", "Sed doloremque veniam. Dolor molestias aut. Quia est est."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.107315"], ["updated_at", "2023-02-03 12:40:40.107315"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hilde Rodriguez"], ["created_at", "2023-02-03 12:40:40.109352"], ["updated_at", "2023-02-03 12:40:40.109352"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Missy Walsh"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.110418"], ["updated_at", "2023-02-03 12:40:40.110418"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Preston D'Amore"], ["description", "Occaecati consectetur vitae. Aut provident commodi. Consequatur ea facilis."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.113098"], ["updated_at", "2023-02-03 12:40:40.113098"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Antoine Heaney"], ["created_at", "2023-02-03 12:40:40.114701"], ["updated_at", "2023-02-03 12:40:40.114701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tyler Bosco"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.115535"], ["updated_at", "2023-02-03 12:40:40.115535"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Adolph Quigley"], ["description", "Neque totam rerum. Et reprehenderit assumenda. Consequatur voluptatem culpa."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.119070"], ["updated_at", "2023-02-03 12:40:40.119070"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Faustino Heidenreich"], ["created_at", "2023-02-03 12:40:40.120474"], ["updated_at", "2023-02-03 12:40:40.120474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Rhoda Langworth"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.122317"], ["updated_at", "2023-02-03 12:40:40.122317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bradford Ortiz"], ["description", "Quia voluptate minima. Necessitatibus culpa voluptatem. Et eos facilis."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.125866"], ["updated_at", "2023-02-03 12:40:40.125866"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brendan Bruen"], ["created_at", "2023-02-03 12:40:40.127069"], ["updated_at", "2023-02-03 12:40:40.127069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Era Kovacek"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.127859"], ["updated_at", "2023-02-03 12:40:40.127859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rochel Cummings"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.128873"], ["updated_at", "2023-02-03 12:40:40.128873"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "The Hon. Jack Fay"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.130091"], ["updated_at", "2023-02-03 12:40:40.130091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mervin Huels"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.131015"], ["updated_at", "2023-02-03 12:40:40.131015"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Collen Cassin"], ["description", "Aliquid voluptas sed. Tempore est laboriosam. Aut voluptatem sed."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.138278"], ["updated_at", "2023-02-03 12:40:40.138278"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Luanne Kozey"], ["created_at", "2023-02-03 12:40:40.139970"], ["updated_at", "2023-02-03 12:40:40.139970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Moses Block"], ["description", "Tempore accusamus commodi. Possimus corporis iste. Et repellendus voluptatem."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.142697"], ["updated_at", "2023-02-03 12:40:40.142697"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Whitney White"], ["created_at", "2023-02-03 12:40:40.143841"], ["updated_at", "2023-02-03 12:40:40.143841"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Sean Farrell"], ["description", "Error blanditiis et. Numquam quisquam dolorum. Rem vel necessitatibus."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.149199"], ["updated_at", "2023-02-03 12:40:40.149199"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Denyse Ratke DDS"], ["created_at", "2023-02-03 12:40:40.151370"], ["updated_at", "2023-02-03 12:40:40.151370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ike Mayer"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.152429"], ["updated_at", "2023-02-03 12:40:40.152429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kory Schultz"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.153245"], ["updated_at", "2023-02-03 12:40:40.153245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Warren Heidenreich"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.154033"], ["updated_at", "2023-02-03 12:40:40.154033"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Hugo Buckridge Jr."], ["correct", 0], ["created_at", "2023-02-03 12:40:40.156000"], ["updated_at", "2023-02-03 12:40:40.156000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elissa Lind"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.157368"], ["updated_at", "2023-02-03 12:40:40.157368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Corene Hudson"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.158378"], ["updated_at", "2023-02-03 12:40:40.158378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Remedios Romaguera"], ["correct", 0], ["created_at", "2023-02-03 12:40:40.159123"], ["updated_at", "2023-02-03 12:40:40.159123"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.1ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stephan Jones"], ["description", "Sed consequatur dolorem. Repellendus eos et. Nobis consequatur cumque."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.170154"], ["updated_at", "2023-02-03 12:40:40.170154"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bernice Prosacco"], ["description", "Adipisci rerum blanditiis. Atque qui similique. Sit sapiente non."], ["attempts_number", 55], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.172597"], ["updated_at", "2023-02-03 12:40:40.172597"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bill Tromp IV"], ["description", "Dolorem numquam architecto. Et omnis quidem. Quaerat repellat omnis."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.175523"], ["updated_at", "2023-02-03 12:40:40.175523"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dudley Stroman"], ["created_at", "2023-02-03 12:40:40.176185"], ["updated_at", "2023-02-03 12:40:40.176185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Malorie Hauck"], ["created_at", "2023-02-03 12:40:40.177642"], ["updated_at", "2023-02-03 12:40:40.177642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lynne Roberts"], ["created_at", "2023-02-03 12:40:40.178628"], ["updated_at", "2023-02-03 12:40:40.178628"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Denny Jacobs"], ["created_at", "2023-02-03 12:40:40.179378"], ["updated_at", "2023-02-03 12:40:40.179378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Yi Buckridge DDS"], ["created_at", "2023-02-03 12:40:40.180124"], ["updated_at", "2023-02-03 12:40:40.180124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:40:40.181586"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Franklyn Barton"], ["description", "Corrupti eius sit. Deleniti suscipit minus. Nihil eaque voluptatem."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.186514"], ["updated_at", "2023-02-03 12:40:40.186514"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosie Osinski IV"], ["description", "Fugit qui corporis. Praesentium commodi ut. Sequi quisquam dignissimos."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.188736"], ["updated_at", "2023-02-03 12:40:40.188736"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Clement Effertz"], ["created_at", "2023-02-03 12:40:40.189377"], ["updated_at", "2023-02-03 12:40:40.189377"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Barrie Nolan"], ["created_at", "2023-02-03 12:40:40.190377"], ["updated_at", "2023-02-03 12:40:40.190377"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Enrique Stark"], ["created_at", "2023-02-03 12:40:40.191170"], ["updated_at", "2023-02-03 12:40:40.191170"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alesia Kshlerin"], ["created_at", "2023-02-03 12:40:40.191890"], ["updated_at", "2023-02-03 12:40:40.191890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Alonzo Haley"], ["created_at", "2023-02-03 12:40:40.192699"], ["updated_at", "2023-02-03 12:40:40.192699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jimmy Labadie"], ["created_at", "2023-02-03 12:40:40.193577"], ["updated_at", "2023-02-03 12:40:40.193577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nichole Balistreri"], ["description", "Et ea suscipit. Commodi occaecati accusantium. Sint et rerum."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.196742"], ["updated_at", "2023-02-03 12:40:40.196742"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harland Senger"], ["description", "Dolore est cupiditate. Animi vero impedit. Aut inventore quam."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.200163"], ["updated_at", "2023-02-03 12:40:40.200163"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.210123"], ["updated_at", "2023-02-03 12:40:40.210123"], ["name", "Phillip Corkery"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.211203"], ["updated_at", "2023-02-03 12:40:40.211203"], ["name", "Amb. Earnest Cremin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Marlon Schroeder"], ["description", "Cupiditate nisi dolores. Aut atque facilis. Aut voluptas delectus."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.213523"], ["updated_at", "2023-02-03 12:40:40.213523"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dion Crist"], ["created_at", "2023-02-03 12:40:40.214056"], ["updated_at", "2023-02-03 12:40:40.214056"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kip Leffler"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.214346"], ["updated_at", "2023-02-03 12:40:40.214346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Latanya Abbott"], ["created_at", "2023-02-03 12:40:40.215641"], ["updated_at", "2023-02-03 12:40:40.215641"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Joana Volkman III"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.215959"], ["updated_at", "2023-02-03 12:40:40.215959"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ricky Reichel"], ["created_at", "2023-02-03 12:40:40.217138"], ["updated_at", "2023-02-03 12:40:40.217138"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Gov. Imelda Rowe"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.217438"], ["updated_at", "2023-02-03 12:40:40.217438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lashanda McDermott V"], ["created_at", "2023-02-03 12:40:40.218646"], ["updated_at", "2023-02-03 12:40:40.218646"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Sammie Murazik III"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.218988"], ["updated_at", "2023-02-03 12:40:40.218988"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.226017"], ["updated_at", "2023-02-03 12:40:40.226017"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.226448"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:40.227421"], ["updated_at", "2023-02-03 12:40:40.227421"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.227754"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:40.228591"], ["updated_at", "2023-02-03 12:40:40.228591"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.228893"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:40.229673"], ["updated_at", "2023-02-03 12:40:40.229673"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.229973"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.235335"], ["updated_at", "2023-02-03 12:40:40.235335"], ["name", "Rivka Steuber III"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.236643"], ["updated_at", "2023-02-03 12:40:40.236643"], ["name", "Damon Gleichner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Vincenzo Lakin"], ["description", "Magnam consectetur et. Cum deserunt in. Quas expedita nemo."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.239027"], ["updated_at", "2023-02-03 12:40:40.239027"], ["survey_type", 2]] + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Siobhan Gleason"], ["created_at", "2023-02-03 12:40:40.239984"], ["updated_at", "2023-02-03 12:40:40.239984"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Goldie Ankunding"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.240658"], ["updated_at", "2023-02-03 12:40:40.240658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rodrigo Monahan"], ["created_at", "2023-02-03 12:40:40.242474"], ["updated_at", "2023-02-03 12:40:40.242474"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Rep. Apolonia Schulist"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.242877"], ["updated_at", "2023-02-03 12:40:40.242877"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Myron Dare"], ["created_at", "2023-02-03 12:40:40.244045"], ["updated_at", "2023-02-03 12:40:40.244045"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Kimberly Greenfelder"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.244341"], ["updated_at", "2023-02-03 12:40:40.244341"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Linwood Pagac"], ["created_at", "2023-02-03 12:40:40.245467"], ["updated_at", "2023-02-03 12:40:40.245467"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Bailey VonRueden"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.245781"], ["updated_at", "2023-02-03 12:40:40.245781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.249633"], ["updated_at", "2023-02-03 12:40:40.249633"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.249982"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:40.259695"], ["updated_at", "2023-02-03 12:40:40.259695"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.260143"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:40.260967"], ["updated_at", "2023-02-03 12:40:40.260967"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.261357"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:40.262132"], ["updated_at", "2023-02-03 12:40:40.262132"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.262429"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.265812"], ["updated_at", "2023-02-03 12:40:40.265812"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.266106"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:40.266878"], ["updated_at", "2023-02-03 12:40:40.266878"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.267166"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:40.267966"], ["updated_at", "2023-02-03 12:40:40.267966"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.268252"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:40.269018"], ["updated_at", "2023-02-03 12:40:40.269018"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.269301"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.272631"], ["updated_at", "2023-02-03 12:40:40.272631"], ["name", "Shawn Buckridge"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:40.274169"], ["updated_at", "2023-02-03 12:40:40.274169"], ["name", "Theron Gleichner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dottie Kshlerin"], ["description", "Illum hic aut. Et eos doloremque. Ea excepturi consequuntur."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.276713"], ["updated_at", "2023-02-03 12:40:40.276713"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Malissa Mueller"], ["created_at", "2023-02-03 12:40:40.277486"], ["updated_at", "2023-02-03 12:40:40.277486"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Carol Carroll"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.277786"], ["updated_at", "2023-02-03 12:40:40.277786"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Genaro Green"], ["created_at", "2023-02-03 12:40:40.279241"], ["updated_at", "2023-02-03 12:40:40.279241"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Hal Strosin"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.279588"], ["updated_at", "2023-02-03 12:40:40.279588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Booker Koss"], ["created_at", "2023-02-03 12:40:40.280755"], ["updated_at", "2023-02-03 12:40:40.280755"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Odis Rempel"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.281062"], ["updated_at", "2023-02-03 12:40:40.281062"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Antonia Franecki"], ["created_at", "2023-02-03 12:40:40.282217"], ["updated_at", "2023-02-03 12:40:40.282217"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rep. Ronni Harber"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.282548"], ["updated_at", "2023-02-03 12:40:40.282548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lino Blanda"], ["description", "Beatae autem delectus. Unde similique corrupti. Doloribus a quia."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:40.284529"], ["updated_at", "2023-02-03 12:40:40.284529"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Wilma Mraz"], ["created_at", "2023-02-03 12:40:40.284860"], ["updated_at", "2023-02-03 12:40:40.284860"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Leida McLaughlin"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.285082"], ["updated_at", "2023-02-03 12:40:40.285082"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Milford Morar"], ["created_at", "2023-02-03 12:40:40.286158"], ["updated_at", "2023-02-03 12:40:40.286158"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Duane Cummings"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.286436"], ["updated_at", "2023-02-03 12:40:40.286436"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hollie Abshire Esq."], ["created_at", "2023-02-03 12:40:40.287629"], ["updated_at", "2023-02-03 12:40:40.287629"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Robbyn Bradtke"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.288001"], ["updated_at", "2023-02-03 12:40:40.288001"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Raul Ebert"], ["created_at", "2023-02-03 12:40:40.289091"], ["updated_at", "2023-02-03 12:40:40.289091"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Joseph Block"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.289373"], ["updated_at", "2023-02-03 12:40:40.289373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Renaldo Terry"], ["created_at", "2023-02-03 12:40:40.290409"], ["updated_at", "2023-02-03 12:40:40.290409"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Augustine Johnston"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.290676"], ["updated_at", "2023-02-03 12:40:40.290676"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Verdie Ratke"], ["created_at", "2023-02-03 12:40:40.291698"], ["updated_at", "2023-02-03 12:40:40.291698"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Madie Kozey"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.291968"], ["updated_at", "2023-02-03 12:40:40.291968"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anitra Abshire"], ["created_at", "2023-02-03 12:40:40.293015"], ["updated_at", "2023-02-03 12:40:40.293015"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Tracee Davis"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.293283"], ["updated_at", "2023-02-03 12:40:40.293283"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brunilda Lind"], ["created_at", "2023-02-03 12:40:40.294365"], ["updated_at", "2023-02-03 12:40:40.294365"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Ms. Melodee Schowalter"], ["correct", 1], ["created_at", "2023-02-03 12:40:40.294630"], ["updated_at", "2023-02-03 12:40:40.294630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:40.298364"], ["updated_at", "2023-02-03 12:40:40.298364"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.298710"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:40.299558"], ["updated_at", "2023-02-03 12:40:40.299558"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.299853"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:40.300631"], ["updated_at", "2023-02-03 12:40:40.300631"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.300956"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:40.301743"], ["updated_at", "2023-02-03 12:40:40.301743"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.302026"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:40:40.307564"], ["updated_at", "2023-02-03 12:40:40.307564"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.307882"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:40:40.308674"], ["updated_at", "2023-02-03 12:40:40.308674"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.308967"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:40:40.309731"], ["updated_at", "2023-02-03 12:40:40.309731"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.310013"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:40:40.310739"], ["updated_at", "2023-02-03 12:40:40.310739"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.311021"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:40:40.311766"], ["updated_at", "2023-02-03 12:40:40.311766"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.312047"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:40:40.312770"], ["updated_at", "2023-02-03 12:40:40.312770"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.313057"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:40:40.313795"], ["updated_at", "2023-02-03 12:40:40.313795"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.314075"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:40:40.314798"], ["updated_at", "2023-02-03 12:40:40.314798"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:40.315081"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.806430"], ["updated_at", "2023-02-03 12:40:42.806430"], ["name", "Sen. Maxwell Hayes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Moira Weissnat"], ["description", "Ipsa vero necessitatibus. Ut fugiat dolores. Vel ratione atque."], ["attempts_number", 32], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.811609"], ["updated_at", "2023-02-03 12:40:42.811609"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Moriah Koch"], ["created_at", "2023-02-03 12:40:42.823375"], ["updated_at", "2023-02-03 12:40:42.823375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alva Casper"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.826110"], ["updated_at", "2023-02-03 12:40:42.826110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:42.829044"], ["updated_at", "2023-02-03 12:40:42.829044"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.842688"], ["updated_at", "2023-02-03 12:40:42.842688"], ["name", "Gov. Allen Ernser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Claudie Lowe"], ["description", "Dolor quia a. Et et sint. Voluptatem mollitia voluptas."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.844162"], ["updated_at", "2023-02-03 12:40:42.844162"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Lesia Buckridge"], ["created_at", "2023-02-03 12:40:42.846744"], ["updated_at", "2023-02-03 12:40:42.846744"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Natacha Bechtelar"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.847565"], ["updated_at", "2023-02-03 12:40:42.847565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:42.848610"], ["updated_at", "2023-02-03 12:40:42.848610"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.850661"], ["updated_at", "2023-02-03 12:40:42.850661"], ["name", "Pedro Doyle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Oma Gislason"], ["description", "Nostrum voluptatem voluptas. A veniam quia. Vel amet vel."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.851928"], ["updated_at", "2023-02-03 12:40:42.851928"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dawne Bergstrom"], ["created_at", "2023-02-03 12:40:42.853945"], ["updated_at", "2023-02-03 12:40:42.853945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tony Lynch"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.854849"], ["updated_at", "2023-02-03 12:40:42.854849"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (1.5ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:42.856262"], ["updated_at", "2023-02-03 12:40:42.856262"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.860659"], ["updated_at", "2023-02-03 12:40:42.860659"], ["name", "The Hon. Delbert Strosin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Allie Block"], ["description", "Sed in ut. Ut numquam eveniet. Porro error ad."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.861981"], ["updated_at", "2023-02-03 12:40:42.861981"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clara Kutch"], ["created_at", "2023-02-03 12:40:42.863963"], ["updated_at", "2023-02-03 12:40:42.863963"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nick Collins Sr."], ["correct", 0], ["created_at", "2023-02-03 12:40:42.864735"], ["updated_at", "2023-02-03 12:40:42.864735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:42.865699"], ["updated_at", "2023-02-03 12:40:42.865699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.874800"], ["updated_at", "2023-02-03 12:40:42.874800"], ["name", "Dann Abbott"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ricki Walker"], ["description", "Cupiditate harum omnis. Nisi rerum repellat. Aut nihil recusandae."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.876548"], ["updated_at", "2023-02-03 12:40:42.876548"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:42.886411"], ["updated_at", "2023-02-03 12:40:42.886411"], ["name", "Librada Yost"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Melida Mohr"], ["description", "Magnam ipsam exercitationem. Cum cupiditate unde. Reprehenderit rerum quos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.887851"], ["updated_at", "2023-02-03 12:40:42.887851"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Orlando Cremin"], ["description", "Id omnis labore. Asperiores omnis nihil. Dolores id aperiam."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.903311"], ["updated_at", "2023-02-03 12:40:42.903311"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Delfina Bins"], ["created_at", "2023-02-03 12:40:42.904724"], ["updated_at", "2023-02-03 12:40:42.904724"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Roland Olson"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.905666"], ["updated_at", "2023-02-03 12:40:42.905666"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elvin Collier"], ["description", "Ipsum et id. Voluptatibus et atque. Exercitationem ratione consequuntur."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.908082"], ["updated_at", "2023-02-03 12:40:42.908082"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Alfredo Mante"], ["created_at", "2023-02-03 12:40:42.909318"], ["updated_at", "2023-02-03 12:40:42.909318"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rhett Parker"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.910159"], ["updated_at", "2023-02-03 12:40:42.910159"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kit Kshlerin"], ["description", "Maxime quo quaerat. Numquam in ea. Odio voluptatem tempore."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.915201"], ["updated_at", "2023-02-03 12:40:42.915201"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Toshiko Casper II"], ["created_at", "2023-02-03 12:40:42.916401"], ["updated_at", "2023-02-03 12:40:42.916401"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Eileen Ryan"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.917179"], ["updated_at", "2023-02-03 12:40:42.917179"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marvin Kilback Esq."], ["description", "Dolor vero voluptas. Vel dolores quisquam. Ut voluptas molestiae."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.919540"], ["updated_at", "2023-02-03 12:40:42.919540"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Issac Cronin"], ["created_at", "2023-02-03 12:40:42.921215"], ["updated_at", "2023-02-03 12:40:42.921215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Trevor McGlynn"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.922686"], ["updated_at", "2023-02-03 12:40:42.922686"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gregory Boehm"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.923682"], ["updated_at", "2023-02-03 12:40:42.923682"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Merle Mueller"], ["correct", 1], ["created_at", "2023-02-03 12:40:42.924744"], ["updated_at", "2023-02-03 12:40:42.924744"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Phillip Sauer DVM"], ["correct", 1], ["created_at", "2023-02-03 12:40:42.925559"], ["updated_at", "2023-02-03 12:40:42.925559"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mohammad Runolfsson"], ["description", "Inventore illo beatae. Nihil aperiam dolores. Magnam repellendus aut."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.932462"], ["updated_at", "2023-02-03 12:40:42.932462"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Earle Feeney IV"], ["created_at", "2023-02-03 12:40:42.933639"], ["updated_at", "2023-02-03 12:40:42.933639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Terrance Rau"], ["description", "Similique magni quaerat. Accusantium sint voluptas. Porro recusandae repellat."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.935494"], ["updated_at", "2023-02-03 12:40:42.935494"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Barry Funk"], ["created_at", "2023-02-03 12:40:42.936537"], ["updated_at", "2023-02-03 12:40:42.936537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shanel Rau"], ["description", "Nesciunt quisquam sit. Vitae ex dolorum. Fuga officia nostrum."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.941322"], ["updated_at", "2023-02-03 12:40:42.941322"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Javier Klein"], ["created_at", "2023-02-03 12:40:42.942787"], ["updated_at", "2023-02-03 12:40:42.942787"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Nadene Murray"], ["correct", 1], ["created_at", "2023-02-03 12:40:42.943600"], ["updated_at", "2023-02-03 12:40:42.943600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amb. Jonah Jenkins"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.944385"], ["updated_at", "2023-02-03 12:40:42.944385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Zulema Mann"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.945106"], ["updated_at", "2023-02-03 12:40:42.945106"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dessie Schulist"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.945820"], ["updated_at", "2023-02-03 12:40:42.945820"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Adan Klocko"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.946543"], ["updated_at", "2023-02-03 12:40:42.946543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pura Kris"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.947324"], ["updated_at", "2023-02-03 12:40:42.947324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jerrell Will"], ["correct", 0], ["created_at", "2023-02-03 12:40:42.948128"], ["updated_at", "2023-02-03 12:40:42.948128"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alfonzo Collins Esq."], ["description", "Neque quaerat et. Atque commodi delectus. Voluptates maxime quod."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.961699"], ["updated_at", "2023-02-03 12:40:42.961699"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Krystal Raynor"], ["description", "Vitae voluptate dolorum. Aut quo ex. Accusamus veniam nulla."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.963811"], ["updated_at", "2023-02-03 12:40:42.963811"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donte Christiansen"], ["description", "Ducimus excepturi dignissimos. Pariatur itaque architecto. Quibusdam dicta ipsum."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.966075"], ["updated_at", "2023-02-03 12:40:42.966075"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Thanh Boyer"], ["created_at", "2023-02-03 12:40:42.966467"], ["updated_at", "2023-02-03 12:40:42.966467"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lavone Schumm"], ["created_at", "2023-02-03 12:40:42.967394"], ["updated_at", "2023-02-03 12:40:42.967394"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Katheleen Rath Sr."], ["created_at", "2023-02-03 12:40:42.968388"], ["updated_at", "2023-02-03 12:40:42.968388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Porsche Nikolaus"], ["created_at", "2023-02-03 12:40:42.969241"], ["updated_at", "2023-02-03 12:40:42.969241"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Meg Terry"], ["created_at", "2023-02-03 12:40:42.970031"], ["updated_at", "2023-02-03 12:40:42.970031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:40:42.971545"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Houston Kozey"], ["description", "Non velit eos. Saepe id aut. Soluta amet quod."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.976439"], ["updated_at", "2023-02-03 12:40:42.976439"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Louetta Lesch"], ["description", "Accusamus suscipit qui. Impedit reprehenderit dolores. Eius animi alias."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.978780"], ["updated_at", "2023-02-03 12:40:42.978780"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Lori Crist"], ["created_at", "2023-02-03 12:40:42.979231"], ["updated_at", "2023-02-03 12:40:42.979231"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tillie Nicolas"], ["created_at", "2023-02-03 12:40:42.979955"], ["updated_at", "2023-02-03 12:40:42.979955"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Mamie Wunsch"], ["created_at", "2023-02-03 12:40:42.980689"], ["updated_at", "2023-02-03 12:40:42.980689"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Blair Labadie JD"], ["created_at", "2023-02-03 12:40:42.981656"], ["updated_at", "2023-02-03 12:40:42.981656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jody Dooley"], ["created_at", "2023-02-03 12:40:42.982354"], ["updated_at", "2023-02-03 12:40:42.982354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cherelle Mraz DO"], ["created_at", "2023-02-03 12:40:42.983067"], ["updated_at", "2023-02-03 12:40:42.983067"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dalton Nitzsche"], ["description", "Aut vitae maiores. Sed et est. Eveniet veniam animi."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.986138"], ["updated_at", "2023-02-03 12:40:42.986138"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mckinley McCullough"], ["description", "Fuga quo adipisci. Sapiente est iste. Est animi quibusdam."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:42.990328"], ["updated_at", "2023-02-03 12:40:42.990328"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.000453"], ["updated_at", "2023-02-03 12:40:43.000453"], ["name", "Miss Callie Heathcote"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.001666"], ["updated_at", "2023-02-03 12:40:43.001666"], ["name", "Candis Dare"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Sandi Zieme"], ["description", "Eum quia omnis. Vero et ut. Ipsam sunt quam."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:43.003998"], ["updated_at", "2023-02-03 12:40:43.003998"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kaitlin Jerde"], ["created_at", "2023-02-03 12:40:43.004534"], ["updated_at", "2023-02-03 12:40:43.004534"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Digna Daugherty VM"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.004823"], ["updated_at", "2023-02-03 12:40:43.004823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Evon Mante"], ["created_at", "2023-02-03 12:40:43.006276"], ["updated_at", "2023-02-03 12:40:43.006276"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Agnes Cormier"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.006766"], ["updated_at", "2023-02-03 12:40:43.006766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marnie Johnson"], ["created_at", "2023-02-03 12:40:43.008255"], ["updated_at", "2023-02-03 12:40:43.008255"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Eleanore Breitenberg"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.008644"], ["updated_at", "2023-02-03 12:40:43.008644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Charity Hane III"], ["created_at", "2023-02-03 12:40:43.009970"], ["updated_at", "2023-02-03 12:40:43.009970"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Sherryl Luettgen"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.010622"], ["updated_at", "2023-02-03 12:40:43.010622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:43.015662"], ["updated_at", "2023-02-03 12:40:43.015662"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.016053"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:43.017033"], ["updated_at", "2023-02-03 12:40:43.017033"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.017356"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:43.018215"], ["updated_at", "2023-02-03 12:40:43.018215"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.018578"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:43.020447"], ["updated_at", "2023-02-03 12:40:43.020447"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.021059"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.027050"], ["updated_at", "2023-02-03 12:40:43.027050"], ["name", "Vilma Hamill"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.028036"], ["updated_at", "2023-02-03 12:40:43.028036"], ["name", "Sen. Joseph Bergstrom"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Christina O'Reilly"], ["description", "Explicabo voluptatem similique. Assumenda consequatur temporibus. Sint nihil deleniti."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:43.030683"], ["updated_at", "2023-02-03 12:40:43.030683"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lynwood Dare"], ["created_at", "2023-02-03 12:40:43.031326"], ["updated_at", "2023-02-03 12:40:43.031326"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jessie Gorczany"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.031622"], ["updated_at", "2023-02-03 12:40:43.031622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Karen Hayes"], ["created_at", "2023-02-03 12:40:43.033071"], ["updated_at", "2023-02-03 12:40:43.033071"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Yong Kilback Ret."], ["correct", 1], ["created_at", "2023-02-03 12:40:43.033416"], ["updated_at", "2023-02-03 12:40:43.033416"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dillon Corwin"], ["created_at", "2023-02-03 12:40:43.034588"], ["updated_at", "2023-02-03 12:40:43.034588"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Lawrence Batz"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.034890"], ["updated_at", "2023-02-03 12:40:43.034890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Vanda Wiza"], ["created_at", "2023-02-03 12:40:43.036040"], ["updated_at", "2023-02-03 12:40:43.036040"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Katelyn Bogan"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.036337"], ["updated_at", "2023-02-03 12:40:43.036337"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:43.040768"], ["updated_at", "2023-02-03 12:40:43.040768"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.041189"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:43.042225"], ["updated_at", "2023-02-03 12:40:43.042225"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.042533"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:43.043300"], ["updated_at", "2023-02-03 12:40:43.043300"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.043599"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:43.044355"], ["updated_at", "2023-02-03 12:40:43.044355"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.044649"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:43.055929"], ["updated_at", "2023-02-03 12:40:43.055929"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.056334"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:43.057461"], ["updated_at", "2023-02-03 12:40:43.057461"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.057769"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:43.058647"], ["updated_at", "2023-02-03 12:40:43.058647"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.058940"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:43.059693"], ["updated_at", "2023-02-03 12:40:43.059693"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.059983"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.063440"], ["updated_at", "2023-02-03 12:40:43.063440"], ["name", "Farah Torp I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:40:43.064610"], ["updated_at", "2023-02-03 12:40:43.064610"], ["name", "Jarvis Hintz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Reynalda Purdy"], ["description", "Sed voluptatem officia. Qui magnam dolor. Eum quas dolorum."], ["attempts_number", 30], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:43.066768"], ["updated_at", "2023-02-03 12:40:43.066768"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Reid Flatley JD"], ["created_at", "2023-02-03 12:40:43.067194"], ["updated_at", "2023-02-03 12:40:43.067194"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Cinderella O'Connell"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.067473"], ["updated_at", "2023-02-03 12:40:43.067473"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tam Schmitt"], ["created_at", "2023-02-03 12:40:43.068716"], ["updated_at", "2023-02-03 12:40:43.068716"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Numbers Stiedemann"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.069037"], ["updated_at", "2023-02-03 12:40:43.069037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Colby Nienow"], ["created_at", "2023-02-03 12:40:43.070166"], ["updated_at", "2023-02-03 12:40:43.070166"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Oswaldo Hagenes"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.070486"], ["updated_at", "2023-02-03 12:40:43.070486"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Mauricio Bergstrom"], ["created_at", "2023-02-03 12:40:43.071600"], ["updated_at", "2023-02-03 12:40:43.071600"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Jamee Moore"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.071995"], ["updated_at", "2023-02-03 12:40:43.071995"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Franklyn Christiansen"], ["description", "Consequatur minus pariatur. Quod maiores magni. Animi vero qui."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:40:43.074175"], ["updated_at", "2023-02-03 12:40:43.074175"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ferdinand Adams"], ["created_at", "2023-02-03 12:40:43.074741"], ["updated_at", "2023-02-03 12:40:43.074741"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Iliana Abshire"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.074971"], ["updated_at", "2023-02-03 12:40:43.074971"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Terrie Zulauf"], ["created_at", "2023-02-03 12:40:43.076113"], ["updated_at", "2023-02-03 12:40:43.076113"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Carla Ebert MD"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.076379"], ["updated_at", "2023-02-03 12:40:43.076379"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chia Rosenbaum"], ["created_at", "2023-02-03 12:40:43.077437"], ["updated_at", "2023-02-03 12:40:43.077437"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Haywood Huels Jr."], ["correct", 1], ["created_at", "2023-02-03 12:40:43.077702"], ["updated_at", "2023-02-03 12:40:43.077702"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Malik Hane"], ["created_at", "2023-02-03 12:40:43.078733"], ["updated_at", "2023-02-03 12:40:43.078733"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Clark Robel"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.078996"], ["updated_at", "2023-02-03 12:40:43.078996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sonny Mitchell"], ["created_at", "2023-02-03 12:40:43.080077"], ["updated_at", "2023-02-03 12:40:43.080077"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Cordell Flatley"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.080339"], ["updated_at", "2023-02-03 12:40:43.080339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Foster Barrows"], ["created_at", "2023-02-03 12:40:43.081360"], ["updated_at", "2023-02-03 12:40:43.081360"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Elvis Johnston"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.081639"], ["updated_at", "2023-02-03 12:40:43.081639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wm Becker"], ["created_at", "2023-02-03 12:40:43.082666"], ["updated_at", "2023-02-03 12:40:43.082666"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Adena Klocko"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.082929"], ["updated_at", "2023-02-03 12:40:43.082929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Edward Ernser"], ["created_at", "2023-02-03 12:40:43.083969"], ["updated_at", "2023-02-03 12:40:43.083969"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Venessa Barrows"], ["correct", 1], ["created_at", "2023-02-03 12:40:43.084236"], ["updated_at", "2023-02-03 12:40:43.084236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:40:43.087967"], ["updated_at", "2023-02-03 12:40:43.087967"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.088336"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:40:43.089265"], ["updated_at", "2023-02-03 12:40:43.089265"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.089597"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:40:43.090368"], ["updated_at", "2023-02-03 12:40:43.090368"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.090663"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:40:43.091397"], ["updated_at", "2023-02-03 12:40:43.091397"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.091678"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:40:43.097267"], ["updated_at", "2023-02-03 12:40:43.097267"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.097558"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:40:43.098356"], ["updated_at", "2023-02-03 12:40:43.098356"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.098643"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:40:43.099383"], ["updated_at", "2023-02-03 12:40:43.099383"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.099666"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:40:43.100438"], ["updated_at", "2023-02-03 12:40:43.100438"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.100724"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:40:43.101455"], ["updated_at", "2023-02-03 12:40:43.101455"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.101733"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:40:43.102484"], ["updated_at", "2023-02-03 12:40:43.102484"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.102771"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:40:43.103490"], ["updated_at", "2023-02-03 12:40:43.103490"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.103773"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:40:43.104651"], ["updated_at", "2023-02-03 12:40:43.104651"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:40:43.104970"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.1ms) SELECT sqlite_version(*) +  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (1.0ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.3ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.296974"], ["updated_at", "2023-02-03 12:44:33.296974"], ["name", "George Lindgren"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Granville Kemmer"], ["description", "Debitis nesciunt autem. Molestiae a quo. Voluptatem excepturi et."], ["attempts_number", 92], ["created_at", "2023-02-03 12:44:33.303763"], ["updated_at", "2023-02-03 12:44:33.303763"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Adrian Abbott"], ["created_at", "2023-02-03 12:44:33.318812"], ["updated_at", "2023-02-03 12:44:33.318812"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Clemencia Sporer"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.322506"], ["updated_at", "2023-02-03 12:44:33.322506"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.326745"], ["updated_at", "2023-02-03 12:44:33.326745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.343323"], ["updated_at", "2023-02-03 12:44:33.343323"], ["name", "The Hon. Samira Lynch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Fr. Gigi Daniel"], ["description", "Dolor voluptatibus inventore. Mollitia rerum a. Quibusdam voluptas corrupti."], ["attempts_number", 48], ["created_at", "2023-02-03 12:44:33.344891"], ["updated_at", "2023-02-03 12:44:33.344891"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Britt Bergstrom MD"], ["created_at", "2023-02-03 12:44:33.347797"], ["updated_at", "2023-02-03 12:44:33.347797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Nathaniel Bins"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.348783"], ["updated_at", "2023-02-03 12:44:33.348783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.350039"], ["updated_at", "2023-02-03 12:44:33.350039"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.352439"], ["updated_at", "2023-02-03 12:44:33.352439"], ["name", "Robert Tillman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Porsha Runte"], ["description", "Ducimus aperiam qui. Eos hic eos. Ratione magni voluptate."], ["attempts_number", 33], ["created_at", "2023-02-03 12:44:33.354080"], ["updated_at", "2023-02-03 12:44:33.354080"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Laurence Klein"], ["created_at", "2023-02-03 12:44:33.356221"], ["updated_at", "2023-02-03 12:44:33.356221"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Luther Howell"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.357020"], ["updated_at", "2023-02-03 12:44:33.357020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.358092"], ["updated_at", "2023-02-03 12:44:33.358092"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.360062"], ["updated_at", "2023-02-03 12:44:33.360062"], ["name", "Edgar Kuphal"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Prof. Mitchell Macejkovic"], ["description", "Possimus et doloribus. Eius ut modi. Est distinctio error."], ["attempts_number", 14], ["created_at", "2023-02-03 12:44:33.361356"], ["updated_at", "2023-02-03 12:44:33.361356"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Micha O'Hara"], ["created_at", "2023-02-03 12:44:33.363351"], ["updated_at", "2023-02-03 12:44:33.363351"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Elroy Kirlin"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.364108"], ["updated_at", "2023-02-03 12:44:33.364108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.365106"], ["updated_at", "2023-02-03 12:44:33.365106"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.7ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.377115"], ["updated_at", "2023-02-03 12:44:33.377115"], ["name", "Tamera Beatty"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Sammy Pfeffer"], ["description", "Excepturi aut et. Quis odit eveniet. Molestiae ex recusandae."], ["attempts_number", 5], ["created_at", "2023-02-03 12:44:33.378562"], ["updated_at", "2023-02-03 12:44:33.378562"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.391509"], ["updated_at", "2023-02-03 12:44:33.391509"], ["name", "Clair Volkman II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kiersten Kilback"], ["description", "Totam in unde. Ad sit quo. Esse fuga consequatur."], ["attempts_number", 5], ["created_at", "2023-02-03 12:44:33.393789"], ["updated_at", "2023-02-03 12:44:33.393789"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (1.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Chadwick Skiles III"], ["description", "Omnis qui rerum. Dicta et voluptatem. Quisquam officia id."], ["attempts_number", 51], ["created_at", "2023-02-03 12:44:33.410564"], ["updated_at", "2023-02-03 12:44:33.410564"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Shirleen Beer"], ["created_at", "2023-02-03 12:44:33.412121"], ["updated_at", "2023-02-03 12:44:33.412121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Shona Torphy"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.413185"], ["updated_at", "2023-02-03 12:44:33.413185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Roger Wunsch"], ["description", "Cumque error repellendus. Deserunt consequatur et. Vel sint ad."], ["attempts_number", 71], ["created_at", "2023-02-03 12:44:33.415831"], ["updated_at", "2023-02-03 12:44:33.415831"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Lita Skiles"], ["created_at", "2023-02-03 12:44:33.417283"], ["updated_at", "2023-02-03 12:44:33.417283"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Giovanni Schneider"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.418171"], ["updated_at", "2023-02-03 12:44:33.418171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Debera Daugherty Jr."], ["description", "Commodi sit et. Provident totam mollitia. Quis voluptates aut."], ["attempts_number", 29], ["created_at", "2023-02-03 12:44:33.423877"], ["updated_at", "2023-02-03 12:44:33.423877"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Krystle Mertz"], ["created_at", "2023-02-03 12:44:33.425329"], ["updated_at", "2023-02-03 12:44:33.425329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jerold Parisian VM"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.426259"], ["updated_at", "2023-02-03 12:44:33.426259"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Eryn Schmitt"], ["description", "Totam veritatis ut. Eligendi id voluptatem. Dolore illum quia."], ["attempts_number", 32], ["created_at", "2023-02-03 12:44:33.428968"], ["updated_at", "2023-02-03 12:44:33.428968"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brock Volkman"], ["created_at", "2023-02-03 12:44:33.430782"], ["updated_at", "2023-02-03 12:44:33.430782"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Pandora Douglas II"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.432145"], ["updated_at", "2023-02-03 12:44:33.432145"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Aron Gulgowski"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.433050"], ["updated_at", "2023-02-03 12:44:33.433050"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jed Lebsack"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.433822"], ["updated_at", "2023-02-03 12:44:33.433822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Tyron Herman"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.434615"], ["updated_at", "2023-02-03 12:44:33.434615"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Allison Bartoletti V"], ["description", "Atque qui impedit. Repellat itaque repudiandae. Ea accusamus explicabo."], ["attempts_number", 41], ["created_at", "2023-02-03 12:44:33.442377"], ["updated_at", "2023-02-03 12:44:33.442377"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elvis Sporer"], ["created_at", "2023-02-03 12:44:33.444389"], ["updated_at", "2023-02-03 12:44:33.444389"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gilbert Kris"], ["description", "Harum natus culpa. Placeat quia voluptas. Voluptatibus vel delectus."], ["attempts_number", 32], ["created_at", "2023-02-03 12:44:33.446560"], ["updated_at", "2023-02-03 12:44:33.446560"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joel Schneider"], ["created_at", "2023-02-03 12:44:33.447745"], ["updated_at", "2023-02-03 12:44:33.447745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rev. Donald Kulas"], ["description", "Molestiae sunt qui. Recusandae exercitationem velit. Laudantium maiores minima."], ["attempts_number", 20], ["created_at", "2023-02-03 12:44:33.452520"], ["updated_at", "2023-02-03 12:44:33.452520"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Parthenia Mitchell"], ["created_at", "2023-02-03 12:44:33.454146"], ["updated_at", "2023-02-03 12:44:33.454146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dawna Armstrong"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.455389"], ["updated_at", "2023-02-03 12:44:33.455389"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Prof. Manie Lynch"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.456291"], ["updated_at", "2023-02-03 12:44:33.456291"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jerold Johns"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.457065"], ["updated_at", "2023-02-03 12:44:33.457065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Kymberly Connelly"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.457805"], ["updated_at", "2023-02-03 12:44:33.457805"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gus Kuhlman"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.458539"], ["updated_at", "2023-02-03 12:44:33.458539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gail Waelchi"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.459273"], ["updated_at", "2023-02-03 12:44:33.459273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Charley Jenkins"], ["correct", 0], ["created_at", "2023-02-03 12:44:33.460224"], ["updated_at", "2023-02-03 12:44:33.460224"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.3ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.7ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marshall Leannon Jr."], ["description", "Ipsum non necessitatibus. Vel a reprehenderit. Aut molestiae nihil."], ["attempts_number", 48], ["created_at", "2023-02-03 12:44:33.473787"], ["updated_at", "2023-02-03 12:44:33.473787"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lowell Ritchie"], ["description", "Natus a velit. Enim atque magni. Quod eos nihil."], ["attempts_number", 24], ["created_at", "2023-02-03 12:44:33.476840"], ["updated_at", "2023-02-03 12:44:33.476840"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Luciano Runolfsson"], ["description", "Id quisquam aut. Suscipit aut error. Maxime doloribus quae."], ["attempts_number", 33], ["created_at", "2023-02-03 12:44:33.479319"], ["updated_at", "2023-02-03 12:44:33.479319"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Irene Larson"], ["created_at", "2023-02-03 12:44:33.479778"], ["updated_at", "2023-02-03 12:44:33.479778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Clinton Keeling"], ["created_at", "2023-02-03 12:44:33.480658"], ["updated_at", "2023-02-03 12:44:33.480658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ima Carroll"], ["created_at", "2023-02-03 12:44:33.481562"], ["updated_at", "2023-02-03 12:44:33.481562"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Branda Satterfield"], ["created_at", "2023-02-03 12:44:33.482437"], ["updated_at", "2023-02-03 12:44:33.482437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Wade Feest"], ["created_at", "2023-02-03 12:44:33.483468"], ["updated_at", "2023-02-03 12:44:33.483468"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:44:33.484880"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Arnulfo Dicki"], ["description", "Eaque vitae ea. Voluptatem ipsum quia. Ut et est."], ["attempts_number", 77], ["created_at", "2023-02-03 12:44:33.490403"], ["updated_at", "2023-02-03 12:44:33.490403"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Delbert Kuhlman"], ["description", "Alias dolorem consectetur. Voluptatem repellat dolores. Commodi iusto est."], ["attempts_number", 86], ["created_at", "2023-02-03 12:44:33.492809"], ["updated_at", "2023-02-03 12:44:33.492809"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Valentine Parisian"], ["created_at", "2023-02-03 12:44:33.493522"], ["updated_at", "2023-02-03 12:44:33.493522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Junior Yost"], ["created_at", "2023-02-03 12:44:33.495011"], ["updated_at", "2023-02-03 12:44:33.495011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Candie Ankunding"], ["created_at", "2023-02-03 12:44:33.496241"], ["updated_at", "2023-02-03 12:44:33.496241"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Raven Terry"], ["created_at", "2023-02-03 12:44:33.498398"], ["updated_at", "2023-02-03 12:44:33.498398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eloy Collins"], ["created_at", "2023-02-03 12:44:33.499409"], ["updated_at", "2023-02-03 12:44:33.499409"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Margarito Donnelly"], ["created_at", "2023-02-03 12:44:33.500195"], ["updated_at", "2023-02-03 12:44:33.500195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Prof. Lacie Goodwin"], ["description", "Sapiente hic itaque. Dignissimos suscipit qui. Eveniet in reprehenderit."], ["attempts_number", 97], ["created_at", "2023-02-03 12:44:33.514585"], ["updated_at", "2023-02-03 12:44:33.514585"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Tamie Vandervort"], ["description", "Dignissimos minus quasi. Voluptatibus aut sunt. Nulla nobis minima."], ["attempts_number", 47], ["created_at", "2023-02-03 12:44:33.518327"], ["updated_at", "2023-02-03 12:44:33.518327"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.529152"], ["updated_at", "2023-02-03 12:44:33.529152"], ["name", "Lesley Fay VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.530550"], ["updated_at", "2023-02-03 12:44:33.530550"], ["name", "David King"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jennifer Quigley"], ["description", "Modi ut fugit. Minus impedit optio. Ut velit quis."], ["attempts_number", 46], ["created_at", "2023-02-03 12:44:33.532855"], ["updated_at", "2023-02-03 12:44:33.532855"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kristin Cremin"], ["created_at", "2023-02-03 12:44:33.533333"], ["updated_at", "2023-02-03 12:44:33.533333"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sen. Dewayne Cruickshank"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.533630"], ["updated_at", "2023-02-03 12:44:33.533630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miquel Muller"], ["created_at", "2023-02-03 12:44:33.534905"], ["updated_at", "2023-02-03 12:44:33.534905"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Georgeann Kemmer"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.535284"], ["updated_at", "2023-02-03 12:44:33.535284"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Roselyn Nader"], ["created_at", "2023-02-03 12:44:33.536633"], ["updated_at", "2023-02-03 12:44:33.536633"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Roland Will"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.537077"], ["updated_at", "2023-02-03 12:44:33.537077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ken Nicolas"], ["created_at", "2023-02-03 12:44:33.538527"], ["updated_at", "2023-02-03 12:44:33.538527"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Werner Wintheiser"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.539026"], ["updated_at", "2023-02-03 12:44:33.539026"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.545438"], ["updated_at", "2023-02-03 12:44:33.545438"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.545875"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:33.546846"], ["updated_at", "2023-02-03 12:44:33.546846"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.547195"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:33.548046"], ["updated_at", "2023-02-03 12:44:33.548046"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.548387"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:33.549228"], ["updated_at", "2023-02-03 12:44:33.549228"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.549586"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.5ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.6ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.556074"], ["updated_at", "2023-02-03 12:44:33.556074"], ["name", "Aiko Casper"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.558260"], ["updated_at", "2023-02-03 12:44:33.558260"], ["name", "Cherie Sanford DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mitchel Nader"], ["description", "Quia est nemo. Minus dolorem voluptatem. Sunt est error."], ["attempts_number", 37], ["created_at", "2023-02-03 12:44:33.560395"], ["updated_at", "2023-02-03 12:44:33.560395"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ryan Mraz"], ["created_at", "2023-02-03 12:44:33.560827"], ["updated_at", "2023-02-03 12:44:33.560827"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mr. Libby Nicolas"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.561121"], ["updated_at", "2023-02-03 12:44:33.561121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Gwenda Koepp"], ["created_at", "2023-02-03 12:44:33.562380"], ["updated_at", "2023-02-03 12:44:33.562380"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jude Collier"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.562790"], ["updated_at", "2023-02-03 12:44:33.562790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marceline Klocko"], ["created_at", "2023-02-03 12:44:33.563950"], ["updated_at", "2023-02-03 12:44:33.563950"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Bryan Mante"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.564293"], ["updated_at", "2023-02-03 12:44:33.564293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Norris Mante"], ["created_at", "2023-02-03 12:44:33.565467"], ["updated_at", "2023-02-03 12:44:33.565467"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Valda Carter"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.565791"], ["updated_at", "2023-02-03 12:44:33.565791"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.569572"], ["updated_at", "2023-02-03 12:44:33.569572"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.569978"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:33.571095"], ["updated_at", "2023-02-03 12:44:33.571095"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.571509"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:33.572728"], ["updated_at", "2023-02-03 12:44:33.572728"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.573151"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:33.574097"], ["updated_at", "2023-02-03 12:44:33.574097"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.574426"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.577877"], ["updated_at", "2023-02-03 12:44:33.577877"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.578207"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:33.578997"], ["updated_at", "2023-02-03 12:44:33.578997"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.579310"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:33.580092"], ["updated_at", "2023-02-03 12:44:33.580092"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.580402"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:33.581207"], ["updated_at", "2023-02-03 12:44:33.581207"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.581513"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.584909"], ["updated_at", "2023-02-03 12:44:33.584909"], ["name", "Stanford Heaney IV"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:33.586614"], ["updated_at", "2023-02-03 12:44:33.586614"], ["name", "Versie Krajcik"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Randee Schiller"], ["description", "Et quia fugiat. Voluptate velit in. Molestiae maiores libero."], ["attempts_number", 57], ["created_at", "2023-02-03 12:44:33.589087"], ["updated_at", "2023-02-03 12:44:33.589087"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sherley Huel"], ["created_at", "2023-02-03 12:44:33.589618"], ["updated_at", "2023-02-03 12:44:33.589618"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dominique Balistreri"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.589913"], ["updated_at", "2023-02-03 12:44:33.589913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Letisha Fahey"], ["created_at", "2023-02-03 12:44:33.591319"], ["updated_at", "2023-02-03 12:44:33.591319"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Brock Fahey Esq."], ["correct", 1], ["created_at", "2023-02-03 12:44:33.591732"], ["updated_at", "2023-02-03 12:44:33.591732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Benton Kovacek"], ["created_at", "2023-02-03 12:44:33.593004"], ["updated_at", "2023-02-03 12:44:33.593004"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Aurelio Lockman"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.593351"], ["updated_at", "2023-02-03 12:44:33.593351"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wally Franecki VM"], ["created_at", "2023-02-03 12:44:33.594567"], ["updated_at", "2023-02-03 12:44:33.594567"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Alec Parisian Sr."], ["correct", 1], ["created_at", "2023-02-03 12:44:33.594916"], ["updated_at", "2023-02-03 12:44:33.594916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Deanne Sanford"], ["description", "Impedit dolor maxime. Consequatur eaque quod. Dignissimos dolorum temporibus."], ["attempts_number", 63], ["created_at", "2023-02-03 12:44:33.596854"], ["updated_at", "2023-02-03 12:44:33.596854"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Golda Farrell"], ["created_at", "2023-02-03 12:44:33.597230"], ["updated_at", "2023-02-03 12:44:33.597230"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Josue Labadie"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.597483"], ["updated_at", "2023-02-03 12:44:33.597483"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Arden Nikolaus"], ["created_at", "2023-02-03 12:44:33.598624"], ["updated_at", "2023-02-03 12:44:33.598624"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Tomi McClure"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.598935"], ["updated_at", "2023-02-03 12:44:33.598935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Lourie Denesik"], ["created_at", "2023-02-03 12:44:33.600020"], ["updated_at", "2023-02-03 12:44:33.600020"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Carlos Ebert"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.600316"], ["updated_at", "2023-02-03 12:44:33.600316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Brad Willms"], ["created_at", "2023-02-03 12:44:33.601423"], ["updated_at", "2023-02-03 12:44:33.601423"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Charlsie Hirthe"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.601718"], ["updated_at", "2023-02-03 12:44:33.601718"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Harvey Zieme"], ["created_at", "2023-02-03 12:44:33.602892"], ["updated_at", "2023-02-03 12:44:33.602892"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Barrett Ernser"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.603293"], ["updated_at", "2023-02-03 12:44:33.603293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lynna Reinger"], ["created_at", "2023-02-03 12:44:33.604566"], ["updated_at", "2023-02-03 12:44:33.604566"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Lisha Wiza"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.605045"], ["updated_at", "2023-02-03 12:44:33.605045"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Trinidad Pfannerstill"], ["created_at", "2023-02-03 12:44:33.606385"], ["updated_at", "2023-02-03 12:44:33.606385"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Mona Gerhold"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.606700"], ["updated_at", "2023-02-03 12:44:33.606700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kym Kuhic"], ["created_at", "2023-02-03 12:44:33.607809"], ["updated_at", "2023-02-03 12:44:33.607809"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Jennette Tillman"], ["correct", 1], ["created_at", "2023-02-03 12:44:33.608105"], ["updated_at", "2023-02-03 12:44:33.608105"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:33.611854"], ["updated_at", "2023-02-03 12:44:33.611854"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.612218"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:33.613087"], ["updated_at", "2023-02-03 12:44:33.613087"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.613402"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:33.614283"], ["updated_at", "2023-02-03 12:44:33.614283"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.614632"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:33.615450"], ["updated_at", "2023-02-03 12:44:33.615450"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.615769"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:44:33.621845"], ["updated_at", "2023-02-03 12:44:33.621845"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.622219"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:44:33.623062"], ["updated_at", "2023-02-03 12:44:33.623062"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.623389"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:44:33.624223"], ["updated_at", "2023-02-03 12:44:33.624223"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.624532"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:44:33.625277"], ["updated_at", "2023-02-03 12:44:33.625277"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.625594"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:44:33.626416"], ["updated_at", "2023-02-03 12:44:33.626416"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.626738"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:44:33.627506"], ["updated_at", "2023-02-03 12:44:33.627506"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.627816"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:44:33.628606"], ["updated_at", "2023-02-03 12:44:33.628606"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.628915"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:44:33.629678"], ["updated_at", "2023-02-03 12:44:33.629678"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:33.630086"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.168297"], ["updated_at", "2023-02-03 12:44:36.168297"], ["name", "Randall Upton"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rudy Watsica I"], ["description", "Eum laboriosam officia. Quasi itaque libero. Voluptatem reiciendis labore."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.173606"], ["updated_at", "2023-02-03 12:44:36.173606"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kraig Schamberger"], ["created_at", "2023-02-03 12:44:36.186585"], ["updated_at", "2023-02-03 12:44:36.186585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Melynda Daugherty JD"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.189448"], ["updated_at", "2023-02-03 12:44:36.189448"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.192693"], ["updated_at", "2023-02-03 12:44:36.192693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.207507"], ["updated_at", "2023-02-03 12:44:36.207507"], ["name", "Gemma Morissette"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mariann Denesik"], ["description", "Iusto enim perferendis. Corrupti voluptas ut. Quia soluta rem."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.209007"], ["updated_at", "2023-02-03 12:44:36.209007"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Taneka Hand"], ["created_at", "2023-02-03 12:44:36.211648"], ["updated_at", "2023-02-03 12:44:36.211648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Truman Swaniawski"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.212546"], ["updated_at", "2023-02-03 12:44:36.212546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.213607"], ["updated_at", "2023-02-03 12:44:36.213607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.215688"], ["updated_at", "2023-02-03 12:44:36.215688"], ["name", "Elba Harvey"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marhta Hartmann"], ["description", "In rerum dolorem. Consectetur eos eaque. Temporibus rerum in."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.216970"], ["updated_at", "2023-02-03 12:44:36.216970"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ellsworth Funk VM"], ["created_at", "2023-02-03 12:44:36.219023"], ["updated_at", "2023-02-03 12:44:36.219023"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Darrick Dibbert"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.219858"], ["updated_at", "2023-02-03 12:44:36.219858"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.221037"], ["updated_at", "2023-02-03 12:44:36.221037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.223582"], ["updated_at", "2023-02-03 12:44:36.223582"], ["name", "Thomasine Kihn I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Giuseppe Satterfield Sr."], ["description", "At nisi non. Ipsa est eum. Impedit quam voluptatum."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.225022"], ["updated_at", "2023-02-03 12:44:36.225022"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jackelyn Abshire Ret."], ["created_at", "2023-02-03 12:44:36.227071"], ["updated_at", "2023-02-03 12:44:36.227071"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jackie Grant"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.227877"], ["updated_at", "2023-02-03 12:44:36.227877"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.2ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.229055"], ["updated_at", "2023-02-03 12:44:36.229055"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.4ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.242262"], ["updated_at", "2023-02-03 12:44:36.242262"], ["name", "Roger Spencer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ji Beier III"], ["description", "Adipisci aliquam dicta. Qui et qui. Illo quod quasi."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.244274"], ["updated_at", "2023-02-03 12:44:36.244274"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.256552"], ["updated_at", "2023-02-03 12:44:36.256552"], ["name", "Adan Howell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Norman Johnston"], ["description", "Labore et minima. Provident corrupti tempora. Ut eveniet animi."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.259017"], ["updated_at", "2023-02-03 12:44:36.259017"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Willie Grant"], ["description", "Eum non nihil. Et officiis accusamus. Perferendis vitae autem."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.274787"], ["updated_at", "2023-02-03 12:44:36.274787"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ernesto Witting"], ["created_at", "2023-02-03 12:44:36.275940"], ["updated_at", "2023-02-03 12:44:36.275940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gregoria Zieme DO"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.276822"], ["updated_at", "2023-02-03 12:44:36.276822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Luther Swift"], ["description", "Consequatur dolores veniam. Nihil aliquid adipisci. Architecto omnis sunt."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.281198"], ["updated_at", "2023-02-03 12:44:36.281198"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Damion Douglas"], ["created_at", "2023-02-03 12:44:36.282606"], ["updated_at", "2023-02-03 12:44:36.282606"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Latrina Huels DO"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.283422"], ["updated_at", "2023-02-03 12:44:36.283422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ms. Zack Lehner"], ["description", "Rerum sint eos. Est similique sequi. Delectus pariatur sed."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.288157"], ["updated_at", "2023-02-03 12:44:36.288157"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marita Gleichner"], ["created_at", "2023-02-03 12:44:36.290329"], ["updated_at", "2023-02-03 12:44:36.290329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mandie Osinski"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.291531"], ["updated_at", "2023-02-03 12:44:36.291531"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Horacio Toy"], ["description", "Rem perferendis veniam. Amet qui omnis. Vero quae facere."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.294089"], ["updated_at", "2023-02-03 12:44:36.294089"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Theressa Powlowski"], ["created_at", "2023-02-03 12:44:36.295176"], ["updated_at", "2023-02-03 12:44:36.295176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Carin O'Reilly"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.296117"], ["updated_at", "2023-02-03 12:44:36.296117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Elia Pollich"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.297442"], ["updated_at", "2023-02-03 12:44:36.297442"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kaleigh Thompson"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.298743"], ["updated_at", "2023-02-03 12:44:36.298743"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Hyo Feest"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.299648"], ["updated_at", "2023-02-03 12:44:36.299648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gonzalo Lockman"], ["description", "Quas reprehenderit numquam. Omnis sapiente voluptatem. Eos perspiciatis quo."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.306752"], ["updated_at", "2023-02-03 12:44:36.306752"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Betty Grant MD"], ["created_at", "2023-02-03 12:44:36.308165"], ["updated_at", "2023-02-03 12:44:36.308165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Teresita Rath"], ["description", "Et aut quas. Illum corporis ut. Iusto voluptates sunt."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.311480"], ["updated_at", "2023-02-03 12:44:36.311480"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Olga Hoeger V"], ["created_at", "2023-02-03 12:44:36.313006"], ["updated_at", "2023-02-03 12:44:36.313006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Van Roberts"], ["description", "Voluptatem aliquam nemo. Enim dicta quia. Est aliquam quo."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.316661"], ["updated_at", "2023-02-03 12:44:36.316661"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Sal Wiza"], ["created_at", "2023-02-03 12:44:36.318016"], ["updated_at", "2023-02-03 12:44:36.318016"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ms. Virgil Lubowitz"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.320140"], ["updated_at", "2023-02-03 12:44:36.320140"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Spring Collins"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.321657"], ["updated_at", "2023-02-03 12:44:36.321657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Gina Koss"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.322800"], ["updated_at", "2023-02-03 12:44:36.322800"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Garland Mosciski Jr."], ["correct", 0], ["created_at", "2023-02-03 12:44:36.323678"], ["updated_at", "2023-02-03 12:44:36.323678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Troy Bartoletti"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.324403"], ["updated_at", "2023-02-03 12:44:36.324403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mrs. Jamie Metz"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.325154"], ["updated_at", "2023-02-03 12:44:36.325154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shena Fay"], ["correct", 0], ["created_at", "2023-02-03 12:44:36.325865"], ["updated_at", "2023-02-03 12:44:36.325865"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.1ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Charley Balistreri"], ["description", "Suscipit aut natus. Distinctio rerum similique. Quidem vitae impedit."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.338572"], ["updated_at", "2023-02-03 12:44:36.338572"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gay Beier"], ["description", "Placeat dolorum sunt. Et quis autem. Autem et rerum."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.342011"], ["updated_at", "2023-02-03 12:44:36.342011"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darnell Watsica"], ["description", "Magni ut fuga. Sed praesentium qui. Sint reprehenderit reiciendis."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.344550"], ["updated_at", "2023-02-03 12:44:36.344550"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Johnnie Hegmann"], ["created_at", "2023-02-03 12:44:36.344937"], ["updated_at", "2023-02-03 12:44:36.344937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Candy Boehm"], ["created_at", "2023-02-03 12:44:36.345675"], ["updated_at", "2023-02-03 12:44:36.345675"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sidney Champlin"], ["created_at", "2023-02-03 12:44:36.346565"], ["updated_at", "2023-02-03 12:44:36.346565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Andres Kessler"], ["created_at", "2023-02-03 12:44:36.348046"], ["updated_at", "2023-02-03 12:44:36.348046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jae Erdman CPA"], ["created_at", "2023-02-03 12:44:36.349084"], ["updated_at", "2023-02-03 12:44:36.349084"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:44:36.350584"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "German Greenfelder"], ["description", "Aperiam eius nihil. Repudiandae sed voluptate. Est architecto perspiciatis."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.355260"], ["updated_at", "2023-02-03 12:44:36.355260"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ashlie Bogan VM"], ["description", "Assumenda tempora magnam. Est doloribus maiores. Occaecati qui consectetur."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.357297"], ["updated_at", "2023-02-03 12:44:36.357297"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Philip Kautzer"], ["created_at", "2023-02-03 12:44:36.357759"], ["updated_at", "2023-02-03 12:44:36.357759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Phoebe Deckow"], ["created_at", "2023-02-03 12:44:36.358663"], ["updated_at", "2023-02-03 12:44:36.358663"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melany Kuhn"], ["created_at", "2023-02-03 12:44:36.359776"], ["updated_at", "2023-02-03 12:44:36.359776"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Benton Howell"], ["created_at", "2023-02-03 12:44:36.360655"], ["updated_at", "2023-02-03 12:44:36.360655"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lavonda Kuhic"], ["created_at", "2023-02-03 12:44:36.361384"], ["updated_at", "2023-02-03 12:44:36.361384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Emil Senger"], ["created_at", "2023-02-03 12:44:36.362093"], ["updated_at", "2023-02-03 12:44:36.362093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ghislaine Hermiston"], ["description", "Quibusdam qui itaque. Non sint eius. Numquam ab voluptatum."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.364721"], ["updated_at", "2023-02-03 12:44:36.364721"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Howard Barrows"], ["description", "Atque laboriosam voluptate. Porro ipsa eum. Molestiae est suscipit."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.369010"], ["updated_at", "2023-02-03 12:44:36.369010"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.379689"], ["updated_at", "2023-02-03 12:44:36.379689"], ["name", "Luciano Fadel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.380693"], ["updated_at", "2023-02-03 12:44:36.380693"], ["name", "Noella Kirlin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Katelynn Crona PhD"], ["description", "Omnis mollitia sunt. Qui nobis minima. Ut quo unde."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.382695"], ["updated_at", "2023-02-03 12:44:36.382695"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Garry Beier Jr."], ["created_at", "2023-02-03 12:44:36.383102"], ["updated_at", "2023-02-03 12:44:36.383102"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Jose Greenfelder II"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.383366"], ["updated_at", "2023-02-03 12:44:36.383366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chaya Hoppe"], ["created_at", "2023-02-03 12:44:36.384655"], ["updated_at", "2023-02-03 12:44:36.384655"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Milford Oberbrunner"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.385195"], ["updated_at", "2023-02-03 12:44:36.385195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donnie Mann"], ["created_at", "2023-02-03 12:44:36.387143"], ["updated_at", "2023-02-03 12:44:36.387143"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Reuben Jaskolski"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.387729"], ["updated_at", "2023-02-03 12:44:36.387729"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Porfirio Volkman"], ["created_at", "2023-02-03 12:44:36.389283"], ["updated_at", "2023-02-03 12:44:36.389283"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Prof. Jewel Kassulke"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.389748"], ["updated_at", "2023-02-03 12:44:36.389748"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.395469"], ["updated_at", "2023-02-03 12:44:36.395469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.395988"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:36.397186"], ["updated_at", "2023-02-03 12:44:36.397186"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.397525"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:36.398366"], ["updated_at", "2023-02-03 12:44:36.398366"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.398684"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:36.399498"], ["updated_at", "2023-02-03 12:44:36.399498"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.399813"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.405471"], ["updated_at", "2023-02-03 12:44:36.405471"], ["name", "Margarett Haag"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.406675"], ["updated_at", "2023-02-03 12:44:36.406675"], ["name", "Daryl Volkman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Elbert Prohaska"], ["description", "Maiores quia rem. Aut magni qui. Aut et laudantium."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.408970"], ["updated_at", "2023-02-03 12:44:36.408970"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alphonse Crona"], ["created_at", "2023-02-03 12:44:36.409478"], ["updated_at", "2023-02-03 12:44:36.409478"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Chantelle Purdy"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.409754"], ["updated_at", "2023-02-03 12:44:36.409754"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Wyatt Schamberger CPA"], ["created_at", "2023-02-03 12:44:36.411015"], ["updated_at", "2023-02-03 12:44:36.411015"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Stephan Zulauf"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.411329"], ["updated_at", "2023-02-03 12:44:36.411329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Blossom Effertz"], ["created_at", "2023-02-03 12:44:36.412467"], ["updated_at", "2023-02-03 12:44:36.412467"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Elsy Quigley"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.412773"], ["updated_at", "2023-02-03 12:44:36.412773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Delta Ullrich"], ["created_at", "2023-02-03 12:44:36.424467"], ["updated_at", "2023-02-03 12:44:36.424467"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Hannelore Emard"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.425111"], ["updated_at", "2023-02-03 12:44:36.425111"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.429094"], ["updated_at", "2023-02-03 12:44:36.429094"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.429482"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:36.430331"], ["updated_at", "2023-02-03 12:44:36.430331"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.430626"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:36.431438"], ["updated_at", "2023-02-03 12:44:36.431438"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.431737"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:36.432495"], ["updated_at", "2023-02-03 12:44:36.432495"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.432781"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.1ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.436112"], ["updated_at", "2023-02-03 12:44:36.436112"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.436493"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:36.437420"], ["updated_at", "2023-02-03 12:44:36.437420"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.437714"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:36.438551"], ["updated_at", "2023-02-03 12:44:36.438551"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.438852"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:36.439610"], ["updated_at", "2023-02-03 12:44:36.439610"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.439931"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.443314"], ["updated_at", "2023-02-03 12:44:36.443314"], ["name", "Gary Hyatt I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:44:36.444660"], ["updated_at", "2023-02-03 12:44:36.444660"], ["name", "Lucila Schumm"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Nelia Haag"], ["description", "Facilis voluptatem soluta. Voluptas laudantium sunt. Corporis praesentium laborum."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.446844"], ["updated_at", "2023-02-03 12:44:36.446844"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Sheldon White"], ["created_at", "2023-02-03 12:44:36.447276"], ["updated_at", "2023-02-03 12:44:36.447276"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dr. Kyle Stiedemann"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.447538"], ["updated_at", "2023-02-03 12:44:36.447538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dusty Bode"], ["created_at", "2023-02-03 12:44:36.448754"], ["updated_at", "2023-02-03 12:44:36.448754"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Ingrid Barrows"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.449049"], ["updated_at", "2023-02-03 12:44:36.449049"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maple Morissette PhD"], ["created_at", "2023-02-03 12:44:36.450231"], ["updated_at", "2023-02-03 12:44:36.450231"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Pres. Inge Gottlieb"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.450522"], ["updated_at", "2023-02-03 12:44:36.450522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dinah Abbott"], ["created_at", "2023-02-03 12:44:36.451642"], ["updated_at", "2023-02-03 12:44:36.451642"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Carlo Hoppe Sr."], ["correct", 1], ["created_at", "2023-02-03 12:44:36.451972"], ["updated_at", "2023-02-03 12:44:36.451972"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Buddy Gutkowski"], ["description", "Libero dicta consequatur. Incidunt necessitatibus ipsum. Quaerat officia illo."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:44:36.454418"], ["updated_at", "2023-02-03 12:44:36.454418"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Meda Daugherty"], ["created_at", "2023-02-03 12:44:36.455228"], ["updated_at", "2023-02-03 12:44:36.455228"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Shannan Hyatt"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.455493"], ["updated_at", "2023-02-03 12:44:36.455493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Bernard Hessel"], ["created_at", "2023-02-03 12:44:36.456790"], ["updated_at", "2023-02-03 12:44:36.456790"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Mirta Satterfield"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.457076"], ["updated_at", "2023-02-03 12:44:36.457076"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lucienne Kemmer"], ["created_at", "2023-02-03 12:44:36.458149"], ["updated_at", "2023-02-03 12:44:36.458149"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Ms. Whitney Morar"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.458427"], ["updated_at", "2023-02-03 12:44:36.458427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Anthony Hilll"], ["created_at", "2023-02-03 12:44:36.459454"], ["updated_at", "2023-02-03 12:44:36.459454"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Juliane Armstrong"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.459725"], ["updated_at", "2023-02-03 12:44:36.459725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elroy Stroman"], ["created_at", "2023-02-03 12:44:36.460764"], ["updated_at", "2023-02-03 12:44:36.460764"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Major Padberg"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.461028"], ["updated_at", "2023-02-03 12:44:36.461028"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bradly Considine"], ["created_at", "2023-02-03 12:44:36.462064"], ["updated_at", "2023-02-03 12:44:36.462064"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "The Hon. Emery Powlowski"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.462329"], ["updated_at", "2023-02-03 12:44:36.462329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carlton Hodkiewicz Jr."], ["created_at", "2023-02-03 12:44:36.463385"], ["updated_at", "2023-02-03 12:44:36.463385"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Joey Steuber"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.463652"], ["updated_at", "2023-02-03 12:44:36.463652"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jonathan Keebler"], ["created_at", "2023-02-03 12:44:36.464670"], ["updated_at", "2023-02-03 12:44:36.464670"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Warren Schimmel"], ["correct", 1], ["created_at", "2023-02-03 12:44:36.464935"], ["updated_at", "2023-02-03 12:44:36.464935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:44:36.468586"], ["updated_at", "2023-02-03 12:44:36.468586"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.468950"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:44:36.470153"], ["updated_at", "2023-02-03 12:44:36.470153"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.470514"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:44:36.471360"], ["updated_at", "2023-02-03 12:44:36.471360"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.471655"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:44:36.472424"], ["updated_at", "2023-02-03 12:44:36.472424"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.472723"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:44:36.478441"], ["updated_at", "2023-02-03 12:44:36.478441"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.478764"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:44:36.479568"], ["updated_at", "2023-02-03 12:44:36.479568"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.479855"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:44:36.480583"], ["updated_at", "2023-02-03 12:44:36.480583"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.480863"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:44:36.481627"], ["updated_at", "2023-02-03 12:44:36.481627"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.481907"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:44:36.482636"], ["updated_at", "2023-02-03 12:44:36.482636"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.483021"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:44:36.483987"], ["updated_at", "2023-02-03 12:44:36.483987"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.484383"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:44:36.485257"], ["updated_at", "2023-02-03 12:44:36.485257"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.485584"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:44:36.486368"], ["updated_at", "2023-02-03 12:44:36.486368"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:44:36.486708"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction +  (1.1ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.450882"], ["updated_at", "2023-02-03 12:53:13.450882"], ["name", "Malcom Flatley"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Antonio Bartoletti"], ["description", "Vero rerum mollitia. Quisquam voluptas et. Eaque distinctio est."], ["attempts_number", 69], ["created_at", "2023-02-03 12:53:13.458408"], ["updated_at", "2023-02-03 12:53:13.458408"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Wai Marvin"], ["created_at", "2023-02-03 12:53:13.474178"], ["updated_at", "2023-02-03 12:53:13.474178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Antwan Lesch"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.477934"], ["updated_at", "2023-02-03 12:53:13.477934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.481860"], ["updated_at", "2023-02-03 12:53:13.481860"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.498350"], ["updated_at", "2023-02-03 12:53:13.498350"], ["name", "Mervin Farrell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Christine Johnson DVM"], ["description", "Similique veniam facere. Quo tenetur commodi. Corporis et molestias."], ["attempts_number", 50], ["created_at", "2023-02-03 12:53:13.499960"], ["updated_at", "2023-02-03 12:53:13.499960"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eduardo Swift"], ["created_at", "2023-02-03 12:53:13.502732"], ["updated_at", "2023-02-03 12:53:13.502732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Russell Schimmel"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.504199"], ["updated_at", "2023-02-03 12:53:13.504199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.505976"], ["updated_at", "2023-02-03 12:53:13.505976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.508234"], ["updated_at", "2023-02-03 12:53:13.508234"], ["name", "Mercedez Marquardt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Francine Simonis"], ["description", "Expedita omnis numquam. Ut accusamus voluptas. Veritatis non deserunt."], ["attempts_number", 69], ["created_at", "2023-02-03 12:53:13.509649"], ["updated_at", "2023-02-03 12:53:13.509649"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Britt Hyatt"], ["created_at", "2023-02-03 12:53:13.511749"], ["updated_at", "2023-02-03 12:53:13.511749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Augustina Swaniawski LLD"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.512537"], ["updated_at", "2023-02-03 12:53:13.512537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.513564"], ["updated_at", "2023-02-03 12:53:13.513564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.515885"], ["updated_at", "2023-02-03 12:53:13.515885"], ["name", "Gerardo McGlynn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Sherita Swaniawski"], ["description", "Corporis repellat asperiores. Quidem atque quia. Eum omnis qui."], ["attempts_number", 97], ["created_at", "2023-02-03 12:53:13.517780"], ["updated_at", "2023-02-03 12:53:13.517780"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Toya Kshlerin"], ["created_at", "2023-02-03 12:53:13.520501"], ["updated_at", "2023-02-03 12:53:13.520501"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Carlton Barrows"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.521313"], ["updated_at", "2023-02-03 12:53:13.521313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.522392"], ["updated_at", "2023-02-03 12:53:13.522392"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.535438"], ["updated_at", "2023-02-03 12:53:13.535438"], ["name", "Fr. Nell Leuschke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Johnathan Kozey"], ["description", "Fuga quia eaque. Quam est magni. Fugit ut omnis."], ["attempts_number", 5], ["created_at", "2023-02-03 12:53:13.537135"], ["updated_at", "2023-02-03 12:53:13.537135"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.4ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.550596"], ["updated_at", "2023-02-03 12:53:13.550596"], ["name", "Rochelle Kessler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Amb. Curt Predovic"], ["description", "Provident dicta molestiae. Omnis quaerat neque. Dolores corporis optio."], ["attempts_number", 5], ["created_at", "2023-02-03 12:53:13.552197"], ["updated_at", "2023-02-03 12:53:13.552197"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Enid Greenholt"], ["description", "Est id cupiditate. Officia aut voluptates. Asperiores deserunt sed."], ["attempts_number", 42], ["created_at", "2023-02-03 12:53:13.578282"], ["updated_at", "2023-02-03 12:53:13.578282"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clifton Gerlach I"], ["created_at", "2023-02-03 12:53:13.579717"], ["updated_at", "2023-02-03 12:53:13.579717"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rev. Brad Emmerich"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.580565"], ["updated_at", "2023-02-03 12:53:13.580565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Williams Weissnat"], ["description", "Sit quidem et. Autem doloremque quo. Iste consequatur fugiat."], ["attempts_number", 62], ["created_at", "2023-02-03 12:53:13.582894"], ["updated_at", "2023-02-03 12:53:13.582894"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Fredric Wolff"], ["created_at", "2023-02-03 12:53:13.584777"], ["updated_at", "2023-02-03 12:53:13.584777"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Damon Roberts"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.585676"], ["updated_at", "2023-02-03 12:53:13.585676"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Suzie Hahn CPA"], ["description", "Laborum et nemo. Tempore optio sed. Voluptatem recusandae voluptas."], ["attempts_number", 72], ["created_at", "2023-02-03 12:53:13.589429"], ["updated_at", "2023-02-03 12:53:13.589429"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mark Armstrong"], ["created_at", "2023-02-03 12:53:13.590673"], ["updated_at", "2023-02-03 12:53:13.590673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Alix Jacobi"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.591515"], ["updated_at", "2023-02-03 12:53:13.591515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marcel Howe"], ["description", "Consectetur quaerat nihil. Quae nobis asperiores. Iure corrupti necessitatibus."], ["attempts_number", 92], ["created_at", "2023-02-03 12:53:13.594886"], ["updated_at", "2023-02-03 12:53:13.594886"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Yan Kovacek I"], ["created_at", "2023-02-03 12:53:13.596178"], ["updated_at", "2023-02-03 12:53:13.596178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Cary Leffler"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.596969"], ["updated_at", "2023-02-03 12:53:13.596969"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Sidney Blick CPA"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.597788"], ["updated_at", "2023-02-03 12:53:13.597788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mrs. Gwyneth Schmitt"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.598561"], ["updated_at", "2023-02-03 12:53:13.598561"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Stephan Goodwin"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.599476"], ["updated_at", "2023-02-03 12:53:13.599476"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.6ms) DELETE FROM "survey_surveys" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dallas Hoppe"], ["description", "Dolor rem sapiente. Alias occaecati culpa. Repudiandae incidunt dolorum."], ["attempts_number", 71], ["created_at", "2023-02-03 12:53:13.608026"], ["updated_at", "2023-02-03 12:53:13.608026"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eddy Kuvalis PhD"], ["created_at", "2023-02-03 12:53:13.609199"], ["updated_at", "2023-02-03 12:53:13.609199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Teofila Rath DVM"], ["description", "Voluptatem nihil non. Libero commodi debitis. Voluptate earum illum."], ["attempts_number", 72], ["created_at", "2023-02-03 12:53:13.610979"], ["updated_at", "2023-02-03 12:53:13.610979"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Fritz Willms"], ["created_at", "2023-02-03 12:53:13.612065"], ["updated_at", "2023-02-03 12:53:13.612065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jenae Harber"], ["description", "Blanditiis inventore suscipit. Provident fuga et. Est vero vitae."], ["attempts_number", 32], ["created_at", "2023-02-03 12:53:13.616580"], ["updated_at", "2023-02-03 12:53:13.616580"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Lilia Satterfield"], ["created_at", "2023-02-03 12:53:13.618165"], ["updated_at", "2023-02-03 12:53:13.618165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Muriel Zulauf"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.619480"], ["updated_at", "2023-02-03 12:53:13.619480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Isela McKenzie"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.620400"], ["updated_at", "2023-02-03 12:53:13.620400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Ms. Coy Tremblay"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.621195"], ["updated_at", "2023-02-03 12:53:13.621195"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jeffrey Willms"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.622136"], ["updated_at", "2023-02-03 12:53:13.622136"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Bradly Kling DDS"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.623366"], ["updated_at", "2023-02-03 12:53:13.623366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Tressa Hessel"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.624198"], ["updated_at", "2023-02-03 12:53:13.624198"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Reginia MacGyver"], ["correct", 0], ["created_at", "2023-02-03 12:53:13.624986"], ["updated_at", "2023-02-03 12:53:13.624986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (1.1ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ernest Monahan"], ["description", "Vero in soluta. Id est quod. Eligendi reiciendis non."], ["attempts_number", 87], ["created_at", "2023-02-03 12:53:13.637749"], ["updated_at", "2023-02-03 12:53:13.637749"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Chasity Frami"], ["description", "Provident est velit. Quas mollitia molestiae. Soluta molestiae aut."], ["attempts_number", 83], ["created_at", "2023-02-03 12:53:13.640859"], ["updated_at", "2023-02-03 12:53:13.640859"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Wiley Hettinger CPA"], ["description", "Rerum laudantium facilis. Dolorem cum impedit. Iste nam magni."], ["attempts_number", 89], ["created_at", "2023-02-03 12:53:13.643918"], ["updated_at", "2023-02-03 12:53:13.643918"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ian Shanahan"], ["created_at", "2023-02-03 12:53:13.644434"], ["updated_at", "2023-02-03 12:53:13.644434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Patricia Schroeder DO"], ["created_at", "2023-02-03 12:53:13.645233"], ["updated_at", "2023-02-03 12:53:13.645233"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gertie Denesik"], ["created_at", "2023-02-03 12:53:13.645972"], ["updated_at", "2023-02-03 12:53:13.645972"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carley Gibson"], ["created_at", "2023-02-03 12:53:13.646750"], ["updated_at", "2023-02-03 12:53:13.646750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Del Bosco"], ["created_at", "2023-02-03 12:53:13.647472"], ["updated_at", "2023-02-03 12:53:13.647472"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:53:13.649651"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ian Reinger"], ["description", "Est doloribus laborum. Et nihil dolores. Voluptatibus vel molestiae."], ["attempts_number", 89], ["created_at", "2023-02-03 12:53:13.655513"], ["updated_at", "2023-02-03 12:53:13.655513"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Thresa Beatty"], ["description", "Quia odio ipsam. Nihil vel et. At natus nihil."], ["attempts_number", 73], ["created_at", "2023-02-03 12:53:13.657392"], ["updated_at", "2023-02-03 12:53:13.657392"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gwendolyn Crist"], ["created_at", "2023-02-03 12:53:13.657836"], ["updated_at", "2023-02-03 12:53:13.657836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chong Schaefer"], ["created_at", "2023-02-03 12:53:13.658615"], ["updated_at", "2023-02-03 12:53:13.658615"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jamar Farrell Sr."], ["created_at", "2023-02-03 12:53:13.659829"], ["updated_at", "2023-02-03 12:53:13.659829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Preston Morar"], ["created_at", "2023-02-03 12:53:13.661338"], ["updated_at", "2023-02-03 12:53:13.661338"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hung Murray"], ["created_at", "2023-02-03 12:53:13.662305"], ["updated_at", "2023-02-03 12:53:13.662305"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Ashley Kulas"], ["created_at", "2023-02-03 12:53:13.663165"], ["updated_at", "2023-02-03 12:53:13.663165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Luigi Effertz PhD"], ["description", "Id velit autem. Iusto et consequuntur. Amet ratione rerum."], ["attempts_number", 78], ["created_at", "2023-02-03 12:53:13.666581"], ["updated_at", "2023-02-03 12:53:13.666581"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Reyes Grant"], ["description", "Saepe ut qui. Doloremque optio magnam. Perspiciatis ipsa natus."], ["attempts_number", 45], ["created_at", "2023-02-03 12:53:13.675295"], ["updated_at", "2023-02-03 12:53:13.675295"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (3.4ms) DELETE FROM "survey_attempts" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.690084"], ["updated_at", "2023-02-03 12:53:13.690084"], ["name", "Mercedez Bogisich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.691966"], ["updated_at", "2023-02-03 12:53:13.691966"], ["name", "Nickolas Hartmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Onita Hessel"], ["description", "Voluptatem sunt in. Sit incidunt vero. Distinctio enim consequuntur."], ["attempts_number", 73], ["created_at", "2023-02-03 12:53:13.695572"], ["updated_at", "2023-02-03 12:53:13.695572"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Man Willms"], ["created_at", "2023-02-03 12:53:13.696938"], ["updated_at", "2023-02-03 12:53:13.696938"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rolf Glover"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.697319"], ["updated_at", "2023-02-03 12:53:13.697319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Isaiah Parisian"], ["created_at", "2023-02-03 12:53:13.698895"], ["updated_at", "2023-02-03 12:53:13.698895"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Karl Kautzer"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.699747"], ["updated_at", "2023-02-03 12:53:13.699747"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darell Rowe"], ["created_at", "2023-02-03 12:53:13.701814"], ["updated_at", "2023-02-03 12:53:13.701814"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Anjanette Marks"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.702485"], ["updated_at", "2023-02-03 12:53:13.702485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Robby Denesik"], ["created_at", "2023-02-03 12:53:13.704386"], ["updated_at", "2023-02-03 12:53:13.704386"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Gregorio Robel"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.704927"], ["updated_at", "2023-02-03 12:53:13.704927"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.711802"], ["updated_at", "2023-02-03 12:53:13.711802"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.712321"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:13.713399"], ["updated_at", "2023-02-03 12:53:13.713399"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.713806"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:13.714981"], ["updated_at", "2023-02-03 12:53:13.714981"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.715461"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:13.716418"], ["updated_at", "2023-02-03 12:53:13.716418"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.716828"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.723713"], ["updated_at", "2023-02-03 12:53:13.723713"], ["name", "Gus Grant"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.727008"], ["updated_at", "2023-02-03 12:53:13.727008"], ["name", "Manuel Davis Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Prof. Dorthea Upton"], ["description", "Voluptatem dolorem veniam. Quae sit facere. Tenetur et animi."], ["attempts_number", 99], ["created_at", "2023-02-03 12:53:13.729171"], ["updated_at", "2023-02-03 12:53:13.729171"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tashia O'Keefe"], ["created_at", "2023-02-03 12:53:13.729612"], ["updated_at", "2023-02-03 12:53:13.729612"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Margorie West"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.729909"], ["updated_at", "2023-02-03 12:53:13.729909"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marcie Beatty"], ["created_at", "2023-02-03 12:53:13.731400"], ["updated_at", "2023-02-03 12:53:13.731400"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Benton Haag LLD"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.731958"], ["updated_at", "2023-02-03 12:53:13.731958"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Michael Pfannerstill"], ["created_at", "2023-02-03 12:53:13.733653"], ["updated_at", "2023-02-03 12:53:13.733653"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Sergio Krajcik"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.734300"], ["updated_at", "2023-02-03 12:53:13.734300"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Virgil Abbott DDS"], ["created_at", "2023-02-03 12:53:13.735612"], ["updated_at", "2023-02-03 12:53:13.735612"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Noble Bernier CPA"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.735943"], ["updated_at", "2023-02-03 12:53:13.735943"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.740080"], ["updated_at", "2023-02-03 12:53:13.740080"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.740446"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:13.741439"], ["updated_at", "2023-02-03 12:53:13.741439"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.741777"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:13.742555"], ["updated_at", "2023-02-03 12:53:13.742555"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.742882"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:13.743752"], ["updated_at", "2023-02-03 12:53:13.743752"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.744075"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.747559"], ["updated_at", "2023-02-03 12:53:13.747559"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.748062"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:13.749057"], ["updated_at", "2023-02-03 12:53:13.749057"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.749468"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:13.750451"], ["updated_at", "2023-02-03 12:53:13.750451"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.750771"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:13.751563"], ["updated_at", "2023-02-03 12:53:13.751563"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.751883"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.755518"], ["updated_at", "2023-02-03 12:53:13.755518"], ["name", "The Hon. Giuseppe Hansen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:13.757032"], ["updated_at", "2023-02-03 12:53:13.757032"], ["name", "Lavera Reinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Miss Joseph Nienow"], ["description", "Provident autem hic. Sit dolores sapiente. Nostrum tenetur deleniti."], ["attempts_number", 17], ["created_at", "2023-02-03 12:53:13.759404"], ["updated_at", "2023-02-03 12:53:13.759404"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clayton Rempel"], ["created_at", "2023-02-03 12:53:13.759856"], ["updated_at", "2023-02-03 12:53:13.759856"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Tristan Legros"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.760155"], ["updated_at", "2023-02-03 12:53:13.760155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Roni Kessler"], ["created_at", "2023-02-03 12:53:13.761507"], ["updated_at", "2023-02-03 12:53:13.761507"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Hayden Gleichner PhD"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.761847"], ["updated_at", "2023-02-03 12:53:13.761847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Misty O'Kon"], ["created_at", "2023-02-03 12:53:13.763166"], ["updated_at", "2023-02-03 12:53:13.763166"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Dr. Mira Romaguera"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.763499"], ["updated_at", "2023-02-03 12:53:13.763499"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lindy Ritchie"], ["created_at", "2023-02-03 12:53:13.764767"], ["updated_at", "2023-02-03 12:53:13.764767"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Clayton Ernser I"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.765240"], ["updated_at", "2023-02-03 12:53:13.765240"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Renato Barton"], ["description", "Modi quidem hic. Quae et iusto. Reiciendis aut eum."], ["attempts_number", 66], ["created_at", "2023-02-03 12:53:13.767629"], ["updated_at", "2023-02-03 12:53:13.767629"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Huey Deckow"], ["created_at", "2023-02-03 12:53:13.768499"], ["updated_at", "2023-02-03 12:53:13.768499"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Veronica Beier"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.768888"], ["updated_at", "2023-02-03 12:53:13.768888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Tari Wehner"], ["created_at", "2023-02-03 12:53:13.770753"], ["updated_at", "2023-02-03 12:53:13.770753"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Grant Franecki"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.771278"], ["updated_at", "2023-02-03 12:53:13.771278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sean Renner"], ["created_at", "2023-02-03 12:53:13.772464"], ["updated_at", "2023-02-03 12:53:13.772464"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Renae Jakubowski"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.772907"], ["updated_at", "2023-02-03 12:53:13.772907"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Deandre Schinner"], ["created_at", "2023-02-03 12:53:13.774035"], ["updated_at", "2023-02-03 12:53:13.774035"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Catrice Bayer"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.774479"], ["updated_at", "2023-02-03 12:53:13.774479"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Percy Shields"], ["created_at", "2023-02-03 12:53:13.775576"], ["updated_at", "2023-02-03 12:53:13.775576"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Reda Monahan"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.775998"], ["updated_at", "2023-02-03 12:53:13.775998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mike Jacobson"], ["created_at", "2023-02-03 12:53:13.777084"], ["updated_at", "2023-02-03 12:53:13.777084"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Garrett Flatley"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.777506"], ["updated_at", "2023-02-03 12:53:13.777506"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Erich Kertzmann"], ["created_at", "2023-02-03 12:53:13.778591"], ["updated_at", "2023-02-03 12:53:13.778591"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Donnette Mosciski"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.779046"], ["updated_at", "2023-02-03 12:53:13.779046"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Matthew Lakin"], ["created_at", "2023-02-03 12:53:13.780282"], ["updated_at", "2023-02-03 12:53:13.780282"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Cyril Shanahan"], ["correct", 1], ["created_at", "2023-02-03 12:53:13.780593"], ["updated_at", "2023-02-03 12:53:13.780593"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:13.784898"], ["updated_at", "2023-02-03 12:53:13.784898"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.785496"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:13.786413"], ["updated_at", "2023-02-03 12:53:13.786413"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.786752"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:13.787552"], ["updated_at", "2023-02-03 12:53:13.787552"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.788073"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:13.788853"], ["updated_at", "2023-02-03 12:53:13.788853"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.789182"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:53:13.795221"], ["updated_at", "2023-02-03 12:53:13.795221"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.795550"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:53:13.796525"], ["updated_at", "2023-02-03 12:53:13.796525"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.796852"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:53:13.797611"], ["updated_at", "2023-02-03 12:53:13.797611"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.797937"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:53:13.798913"], ["updated_at", "2023-02-03 12:53:13.798913"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.799297"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:53:13.800102"], ["updated_at", "2023-02-03 12:53:13.800102"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.800419"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:53:13.801499"], ["updated_at", "2023-02-03 12:53:13.801499"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.801907"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:53:13.802897"], ["updated_at", "2023-02-03 12:53:13.802897"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.803251"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:53:13.804122"], ["updated_at", "2023-02-03 12:53:13.804122"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:13.804450"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.418240"], ["updated_at", "2023-02-03 12:53:16.418240"], ["name", "Lucrecia Reilly V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Don Satterfield"], ["description", "Voluptatibus ex debitis. Minus illum modi. Repellat aut aut."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.423673"], ["updated_at", "2023-02-03 12:53:16.423673"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nakia Conn"], ["created_at", "2023-02-03 12:53:16.437790"], ["updated_at", "2023-02-03 12:53:16.437790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tommy Mayer"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.440745"], ["updated_at", "2023-02-03 12:53:16.440745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.443854"], ["updated_at", "2023-02-03 12:53:16.443854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.458853"], ["updated_at", "2023-02-03 12:53:16.458853"], ["name", "Arthur Dibbert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rina Hoeger V"], ["description", "Dolores ipsum aut. Consectetur expedita deserunt. At et impedit."], ["attempts_number", 84], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.460353"], ["updated_at", "2023-02-03 12:53:16.460353"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Noble Luettgen"], ["created_at", "2023-02-03 12:53:16.463552"], ["updated_at", "2023-02-03 12:53:16.463552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jame Roberts"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.464607"], ["updated_at", "2023-02-03 12:53:16.464607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.466191"], ["updated_at", "2023-02-03 12:53:16.466191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.469147"], ["updated_at", "2023-02-03 12:53:16.469147"], ["name", "Gordon Oberbrunner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joel Schuster"], ["description", "Velit placeat et. Porro rerum quaerat. A voluptas officiis."], ["attempts_number", 10], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.471181"], ["updated_at", "2023-02-03 12:53:16.471181"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bryce Sipes"], ["created_at", "2023-02-03 12:53:16.474550"], ["updated_at", "2023-02-03 12:53:16.474550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dick Stiedemann"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.475414"], ["updated_at", "2023-02-03 12:53:16.475414"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.476469"], ["updated_at", "2023-02-03 12:53:16.476469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.478860"], ["updated_at", "2023-02-03 12:53:16.478860"], ["name", "Mr. Sammie Wehner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Cammie Feil"], ["description", "Iste dolor quia. Vero aspernatur libero. Rerum in reiciendis."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.480362"], ["updated_at", "2023-02-03 12:53:16.480362"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Parker Aufderhar"], ["created_at", "2023-02-03 12:53:16.483189"], ["updated_at", "2023-02-03 12:53:16.483189"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ceola Lindgren"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.484562"], ["updated_at", "2023-02-03 12:53:16.484562"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.485810"], ["updated_at", "2023-02-03 12:53:16.485810"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.496665"], ["updated_at", "2023-02-03 12:53:16.496665"], ["name", "Clint Goldner PhD"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Clarissa Langworth"], ["description", "Molestiae ut voluptas. Minus illo a. Dignissimos dolore harum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.499883"], ["updated_at", "2023-02-03 12:53:16.499883"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.512569"], ["updated_at", "2023-02-03 12:53:16.512569"], ["name", "Louann Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Adalberto Luettgen"], ["description", "Iusto quia quia. Fugit rem enim. Ullam rerum iure."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.514024"], ["updated_at", "2023-02-03 12:53:16.514024"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Glenna Dickens"], ["description", "Quia sint nobis. Quia rerum qui. Et aliquam nemo."], ["attempts_number", 54], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.529604"], ["updated_at", "2023-02-03 12:53:16.529604"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Virginia Kassulke Ret."], ["created_at", "2023-02-03 12:53:16.531019"], ["updated_at", "2023-02-03 12:53:16.531019"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jackie Streich"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.532489"], ["updated_at", "2023-02-03 12:53:16.532489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Antone Koch"], ["description", "Id harum quo. Repellat ullam ut. Vero similique et."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.535028"], ["updated_at", "2023-02-03 12:53:16.535028"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Frank Heathcote"], ["created_at", "2023-02-03 12:53:16.536566"], ["updated_at", "2023-02-03 12:53:16.536566"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Wendie Hauck"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.537384"], ["updated_at", "2023-02-03 12:53:16.537384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Delena Vandervort"], ["description", "Ullam architecto illo. Sit et ipsa. Ut cumque dolores."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.541717"], ["updated_at", "2023-02-03 12:53:16.541717"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Laverne Kohler"], ["created_at", "2023-02-03 12:53:16.542952"], ["updated_at", "2023-02-03 12:53:16.542952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Parker Huels"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.543737"], ["updated_at", "2023-02-03 12:53:16.543737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Kiera Schultz"], ["description", "Praesentium rerum illum. Velit ab error. Omnis vitae quo."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.546156"], ["updated_at", "2023-02-03 12:53:16.546156"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Azzie Moore"], ["created_at", "2023-02-03 12:53:16.547233"], ["updated_at", "2023-02-03 12:53:16.547233"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.9ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Grover Pollich"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.548335"], ["updated_at", "2023-02-03 12:53:16.548335"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miriam Ritchie"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.550587"], ["updated_at", "2023-02-03 12:53:16.550587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Chang Kuhn"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.552335"], ["updated_at", "2023-02-03 12:53:16.552335"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Rosalind Stokes"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.553434"], ["updated_at", "2023-02-03 12:53:16.553434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sean Lebsack"], ["description", "Et dolores repudiandae. Ut et maxime. Cum aut qui."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.561946"], ["updated_at", "2023-02-03 12:53:16.561946"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jackie Cormier"], ["created_at", "2023-02-03 12:53:16.563186"], ["updated_at", "2023-02-03 12:53:16.563186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Shila Stamm"], ["description", "Ea dolorem fugit. Provident officia ea. Doloribus consequatur aliquam."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.565145"], ["updated_at", "2023-02-03 12:53:16.565145"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bessie Hickle"], ["created_at", "2023-02-03 12:53:16.568033"], ["updated_at", "2023-02-03 12:53:16.568033"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ester Jerde MD"], ["description", "Neque ad quo. Beatae quia aut. Voluptatibus autem aliquid."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.573419"], ["updated_at", "2023-02-03 12:53:16.573419"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Judi Kautzer"], ["created_at", "2023-02-03 12:53:16.575178"], ["updated_at", "2023-02-03 12:53:16.575178"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Vonnie Kovacek IV"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.576753"], ["updated_at", "2023-02-03 12:53:16.576753"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jeffrey Hyatt"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.578047"], ["updated_at", "2023-02-03 12:53:16.578047"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Max VonRueden"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.578856"], ["updated_at", "2023-02-03 12:53:16.578856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ora Thompson"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.579602"], ["updated_at", "2023-02-03 12:53:16.579602"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Isaac Rosenbaum CPA"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.580356"], ["updated_at", "2023-02-03 12:53:16.580356"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kieth Rice Jr."], ["correct", 0], ["created_at", "2023-02-03 12:53:16.581167"], ["updated_at", "2023-02-03 12:53:16.581167"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kassie Brown"], ["correct", 0], ["created_at", "2023-02-03 12:53:16.581953"], ["updated_at", "2023-02-03 12:53:16.581953"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Douglas Streich"], ["description", "Eaque voluptate fugit. Ipsam dolores quasi. Architecto voluptatem ea."], ["attempts_number", 24], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.593537"], ["updated_at", "2023-02-03 12:53:16.593537"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Violette Schmeler"], ["description", "Consectetur ut sint. Cupiditate reprehenderit deleniti. Magnam explicabo ut."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.595722"], ["updated_at", "2023-02-03 12:53:16.595722"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lavern Carter"], ["description", "Mollitia sit dignissimos. In cupiditate sed. Ex consequuntur maiores."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.599197"], ["updated_at", "2023-02-03 12:53:16.599197"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tracey Gutmann"], ["created_at", "2023-02-03 12:53:16.599868"], ["updated_at", "2023-02-03 12:53:16.599868"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Franklin Abshire"], ["created_at", "2023-02-03 12:53:16.601127"], ["updated_at", "2023-02-03 12:53:16.601127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jeromy Runolfsson Ret."], ["created_at", "2023-02-03 12:53:16.602539"], ["updated_at", "2023-02-03 12:53:16.602539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kari Dach"], ["created_at", "2023-02-03 12:53:16.603486"], ["updated_at", "2023-02-03 12:53:16.603486"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sang Haley"], ["created_at", "2023-02-03 12:53:16.604293"], ["updated_at", "2023-02-03 12:53:16.604293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 12:53:16.605775"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Orville Mohr"], ["description", "Consequatur assumenda fugiat. Tenetur iste itaque. Necessitatibus doloremque possimus."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.610619"], ["updated_at", "2023-02-03 12:53:16.610619"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fredric Okuneva CPA"], ["description", "Quod natus accusamus. Dolor et at. Voluptas vero atque."], ["attempts_number", 65], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.612530"], ["updated_at", "2023-02-03 12:53:16.612530"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Karol Hilll"], ["created_at", "2023-02-03 12:53:16.612914"], ["updated_at", "2023-02-03 12:53:16.612914"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elyse Quigley"], ["created_at", "2023-02-03 12:53:16.613630"], ["updated_at", "2023-02-03 12:53:16.613630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melia Spencer VM"], ["created_at", "2023-02-03 12:53:16.614470"], ["updated_at", "2023-02-03 12:53:16.614470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bethanie Langosh"], ["created_at", "2023-02-03 12:53:16.615687"], ["updated_at", "2023-02-03 12:53:16.615687"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bert Renner"], ["created_at", "2023-02-03 12:53:16.616859"], ["updated_at", "2023-02-03 12:53:16.616859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laureen Nitzsche"], ["created_at", "2023-02-03 12:53:16.617996"], ["updated_at", "2023-02-03 12:53:16.617996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Armand Fay"], ["description", "Quidem iste nulla. Ut deserunt minus. Similique ipsa praesentium."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.621003"], ["updated_at", "2023-02-03 12:53:16.621003"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deana Reilly"], ["description", "Et dignissimos voluptas. Quidem est aut. Suscipit dolore ad."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.624647"], ["updated_at", "2023-02-03 12:53:16.624647"], ["survey_type", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.633791"], ["updated_at", "2023-02-03 12:53:16.633791"], ["name", "Minnie Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.634971"], ["updated_at", "2023-02-03 12:53:16.634971"], ["name", "Dalton O'Connell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harvey Nicolas"], ["description", "Quia aut reiciendis. Deserunt sit soluta. Aut iste sunt."], ["attempts_number", 58], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.637790"], ["updated_at", "2023-02-03 12:53:16.637790"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fredrick Larson"], ["created_at", "2023-02-03 12:53:16.638736"], ["updated_at", "2023-02-03 12:53:16.638736"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Randell Sanford"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.639446"], ["updated_at", "2023-02-03 12:53:16.639446"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kim Robel"], ["created_at", "2023-02-03 12:53:16.641782"], ["updated_at", "2023-02-03 12:53:16.641782"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Yer Gusikowski III"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.642169"], ["updated_at", "2023-02-03 12:53:16.642169"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jed Carter"], ["created_at", "2023-02-03 12:53:16.643388"], ["updated_at", "2023-02-03 12:53:16.643388"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Morgan Lehner"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.643705"], ["updated_at", "2023-02-03 12:53:16.643705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Emery Dare DC"], ["created_at", "2023-02-03 12:53:16.644905"], ["updated_at", "2023-02-03 12:53:16.644905"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Aleshia DuBuque"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.645209"], ["updated_at", "2023-02-03 12:53:16.645209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.651155"], ["updated_at", "2023-02-03 12:53:16.651155"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.651643"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:16.653001"], ["updated_at", "2023-02-03 12:53:16.653001"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.653406"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:16.654628"], ["updated_at", "2023-02-03 12:53:16.654628"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.655181"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:16.656455"], ["updated_at", "2023-02-03 12:53:16.656455"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.656864"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.662612"], ["updated_at", "2023-02-03 12:53:16.662612"], ["name", "Benjamin Cummerata MD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.664087"], ["updated_at", "2023-02-03 12:53:16.664087"], ["name", "Rev. Tyree Metz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Casie Macejkovic VM"], ["description", "Ad sunt qui. Eos sapiente facere. Ea similique est."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.666500"], ["updated_at", "2023-02-03 12:53:16.666500"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeanne Nitzsche JD"], ["created_at", "2023-02-03 12:53:16.667277"], ["updated_at", "2023-02-03 12:53:16.667277"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kristi Dach"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.667576"], ["updated_at", "2023-02-03 12:53:16.667576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Jaunita Hoeger"], ["created_at", "2023-02-03 12:53:16.669689"], ["updated_at", "2023-02-03 12:53:16.669689"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jann Leuschke"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.670483"], ["updated_at", "2023-02-03 12:53:16.670483"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Martin Koch DO"], ["created_at", "2023-02-03 12:53:16.672363"], ["updated_at", "2023-02-03 12:53:16.672363"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Sen. Laurice Fisher"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.672832"], ["updated_at", "2023-02-03 12:53:16.672832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shemika Roob"], ["created_at", "2023-02-03 12:53:16.674124"], ["updated_at", "2023-02-03 12:53:16.674124"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Milford DuBuque"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.674485"], ["updated_at", "2023-02-03 12:53:16.674485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.678423"], ["updated_at", "2023-02-03 12:53:16.678423"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.678766"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:16.679657"], ["updated_at", "2023-02-03 12:53:16.679657"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.679990"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:16.680773"], ["updated_at", "2023-02-03 12:53:16.680773"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.681368"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:16.682151"], ["updated_at", "2023-02-03 12:53:16.682151"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.682556"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.686257"], ["updated_at", "2023-02-03 12:53:16.686257"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.686601"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:16.687426"], ["updated_at", "2023-02-03 12:53:16.687426"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.687730"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:16.688583"], ["updated_at", "2023-02-03 12:53:16.688583"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.688895"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:16.689844"], ["updated_at", "2023-02-03 12:53:16.689844"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.690149"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.693535"], ["updated_at", "2023-02-03 12:53:16.693535"], ["name", "Milford Rosenbaum"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 12:53:16.694710"], ["updated_at", "2023-02-03 12:53:16.694710"], ["name", "Dallas Kerluke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loren Glover"], ["description", "Mollitia est et. Modi assumenda debitis. Ducimus maiores et."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.697072"], ["updated_at", "2023-02-03 12:53:16.697072"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Julius Koelpin"], ["created_at", "2023-02-03 12:53:16.697645"], ["updated_at", "2023-02-03 12:53:16.697645"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sen. Karl Bayer"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.697933"], ["updated_at", "2023-02-03 12:53:16.697933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Thalia Brakus"], ["created_at", "2023-02-03 12:53:16.699421"], ["updated_at", "2023-02-03 12:53:16.699421"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Dr. Rob Abbott"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.699907"], ["updated_at", "2023-02-03 12:53:16.699907"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Chester Maggio"], ["created_at", "2023-02-03 12:53:16.701397"], ["updated_at", "2023-02-03 12:53:16.701397"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "The Hon. Billie Waelchi"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.701967"], ["updated_at", "2023-02-03 12:53:16.701967"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bertram Denesik"], ["created_at", "2023-02-03 12:53:16.713987"], ["updated_at", "2023-02-03 12:53:16.713987"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Danial O'Kon"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.714609"], ["updated_at", "2023-02-03 12:53:16.714609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Malik Kuvalis"], ["description", "Ad in laborum. Non hic sed. Nihil qui qui."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 12:53:16.716895"], ["updated_at", "2023-02-03 12:53:16.716895"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melony White"], ["created_at", "2023-02-03 12:53:16.717459"], ["updated_at", "2023-02-03 12:53:16.717459"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Prof. Ambrose Brown"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.717697"], ["updated_at", "2023-02-03 12:53:16.717697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ned Crooks"], ["created_at", "2023-02-03 12:53:16.718941"], ["updated_at", "2023-02-03 12:53:16.718941"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Ms. Jaquelyn Rau"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.719232"], ["updated_at", "2023-02-03 12:53:16.719232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ed Farrell"], ["created_at", "2023-02-03 12:53:16.720344"], ["updated_at", "2023-02-03 12:53:16.720344"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Gregg Smitham MD"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.720622"], ["updated_at", "2023-02-03 12:53:16.720622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dong Weber Ret."], ["created_at", "2023-02-03 12:53:16.721760"], ["updated_at", "2023-02-03 12:53:16.721760"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Heidi Casper MD"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.722045"], ["updated_at", "2023-02-03 12:53:16.722045"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lezlie Schowalter III"], ["created_at", "2023-02-03 12:53:16.723156"], ["updated_at", "2023-02-03 12:53:16.723156"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "The Hon. Lindsay Gerlach"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.723430"], ["updated_at", "2023-02-03 12:53:16.723430"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Linette Stamm"], ["created_at", "2023-02-03 12:53:16.724473"], ["updated_at", "2023-02-03 12:53:16.724473"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Leisha Kuphal"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.724741"], ["updated_at", "2023-02-03 12:53:16.724741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dianna Ferry II"], ["created_at", "2023-02-03 12:53:16.725787"], ["updated_at", "2023-02-03 12:53:16.725787"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Jermaine Krajcik"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.726052"], ["updated_at", "2023-02-03 12:53:16.726052"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Meredith Schaden DVM"], ["created_at", "2023-02-03 12:53:16.727108"], ["updated_at", "2023-02-03 12:53:16.727108"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Kyong Fahey"], ["correct", 1], ["created_at", "2023-02-03 12:53:16.727376"], ["updated_at", "2023-02-03 12:53:16.727376"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 12:53:16.731106"], ["updated_at", "2023-02-03 12:53:16.731106"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.731429"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 12:53:16.732278"], ["updated_at", "2023-02-03 12:53:16.732278"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.732594"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 12:53:16.733341"], ["updated_at", "2023-02-03 12:53:16.733341"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.733633"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 12:53:16.734379"], ["updated_at", "2023-02-03 12:53:16.734379"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.734663"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 12:53:16.741456"], ["updated_at", "2023-02-03 12:53:16.741456"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.741829"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 12:53:16.742723"], ["updated_at", "2023-02-03 12:53:16.742723"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.743022"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 12:53:16.743784"], ["updated_at", "2023-02-03 12:53:16.743784"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.744092"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 12:53:16.744897"], ["updated_at", "2023-02-03 12:53:16.744897"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.745190"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 12:53:16.745941"], ["updated_at", "2023-02-03 12:53:16.745941"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.746236"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 12:53:16.747070"], ["updated_at", "2023-02-03 12:53:16.747070"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.747371"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 12:53:16.748136"], ["updated_at", "2023-02-03 12:53:16.748136"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.748427"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 12:53:16.749219"], ["updated_at", "2023-02-03 12:53:16.749219"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 12:53:16.749506"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.1ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.7ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.232118"], ["updated_at", "2023-02-03 13:47:32.232118"], ["name", "Emelda Wolf Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rose Morissette Jr."], ["description", "Atque accusantium rerum. Illo est laborum. At placeat ab."], ["attempts_number", 73], ["created_at", "2023-02-03 13:47:32.238886"], ["updated_at", "2023-02-03 13:47:32.238886"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacquelynn Altenwerth"], ["created_at", "2023-02-03 13:47:32.252608"], ["updated_at", "2023-02-03 13:47:32.252608"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Claretta Gutmann"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.256097"], ["updated_at", "2023-02-03 13:47:32.256097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.259817"], ["updated_at", "2023-02-03 13:47:32.259817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.275660"], ["updated_at", "2023-02-03 13:47:32.275660"], ["name", "Miss Nellie Rodriguez"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mac Funk"], ["description", "Enim vel ut. Ea necessitatibus quaerat. In nihil vero."], ["attempts_number", 14], ["created_at", "2023-02-03 13:47:32.277095"], ["updated_at", "2023-02-03 13:47:32.277095"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Annabell Ryan"], ["created_at", "2023-02-03 13:47:32.279746"], ["updated_at", "2023-02-03 13:47:32.279746"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Deja Heathcote"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.280790"], ["updated_at", "2023-02-03 13:47:32.280790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.281916"], ["updated_at", "2023-02-03 13:47:32.281916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.283905"], ["updated_at", "2023-02-03 13:47:32.283905"], ["name", "Omar Hintz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Zulma Jacobi III"], ["description", "Esse ut aut. Repellendus nesciunt ex. Magni quia molestiae."], ["attempts_number", 56], ["created_at", "2023-02-03 13:47:32.285172"], ["updated_at", "2023-02-03 13:47:32.285172"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Regenia Deckow V"], ["created_at", "2023-02-03 13:47:32.287212"], ["updated_at", "2023-02-03 13:47:32.287212"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Guy Tillman Esq."], ["correct", 0], ["created_at", "2023-02-03 13:47:32.287996"], ["updated_at", "2023-02-03 13:47:32.287996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.288970"], ["updated_at", "2023-02-03 13:47:32.288970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.290801"], ["updated_at", "2023-02-03 13:47:32.290801"], ["name", "Pierre Cole V"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Timothy Hansen"], ["description", "Laboriosam et illo. Nostrum numquam at. Deserunt consequatur deleniti."], ["attempts_number", 15], ["created_at", "2023-02-03 13:47:32.292033"], ["updated_at", "2023-02-03 13:47:32.292033"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Chantel Hand"], ["created_at", "2023-02-03 13:47:32.293997"], ["updated_at", "2023-02-03 13:47:32.293997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Dorla Daugherty"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.294734"], ["updated_at", "2023-02-03 13:47:32.294734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.295733"], ["updated_at", "2023-02-03 13:47:32.295733"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.306086"], ["updated_at", "2023-02-03 13:47:32.306086"], ["name", "Sen. Karrie Greenfelder"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ladawn Schowalter III"], ["description", "Ut quis unde. Ea minima voluptas. Quod quae est."], ["attempts_number", 5], ["created_at", "2023-02-03 13:47:32.307920"], ["updated_at", "2023-02-03 13:47:32.307920"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.319592"], ["updated_at", "2023-02-03 13:47:32.319592"], ["name", "Lezlie Lubowitz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Quentin Walker"], ["description", "Dolores rerum enim. Vitae quia pariatur. Et dolores culpa."], ["attempts_number", 5], ["created_at", "2023-02-03 13:47:32.321041"], ["updated_at", "2023-02-03 13:47:32.321041"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Clint Strosin"], ["description", "Aut nulla et. Officia ullam porro. Molestiae at quos."], ["attempts_number", 50], ["created_at", "2023-02-03 13:47:32.336203"], ["updated_at", "2023-02-03 13:47:32.336203"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Owen Rohan Jr."], ["created_at", "2023-02-03 13:47:32.337537"], ["updated_at", "2023-02-03 13:47:32.337537"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Nguyet Jast"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.338363"], ["updated_at", "2023-02-03 13:47:32.338363"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "The Hon. Lauran Kulas"], ["description", "Id adipisci ea. Qui magnam ratione. Tenetur quia omnis."], ["attempts_number", 82], ["created_at", "2023-02-03 13:47:32.340350"], ["updated_at", "2023-02-03 13:47:32.340350"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jerrod Connelly"], ["created_at", "2023-02-03 13:47:32.341416"], ["updated_at", "2023-02-03 13:47:32.341416"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jeannine Johns"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.342214"], ["updated_at", "2023-02-03 13:47:32.342214"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Wilfred Goodwin"], ["description", "Blanditiis maiores et. Ratione occaecati delectus. Incidunt ea laborum."], ["attempts_number", 99], ["created_at", "2023-02-03 13:47:32.346235"], ["updated_at", "2023-02-03 13:47:32.346235"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roberta Konopelski Jr."], ["created_at", "2023-02-03 13:47:32.347933"], ["updated_at", "2023-02-03 13:47:32.347933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rayna Jakubowski"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.349154"], ["updated_at", "2023-02-03 13:47:32.349154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Benny Bailey"], ["description", "Vero repudiandae eligendi. Molestiae quas et. Nisi non hic."], ["attempts_number", 21], ["created_at", "2023-02-03 13:47:32.352229"], ["updated_at", "2023-02-03 13:47:32.352229"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Filiberto Stamm"], ["created_at", "2023-02-03 13:47:32.353727"], ["updated_at", "2023-02-03 13:47:32.353727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jeffie King"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.354579"], ["updated_at", "2023-02-03 13:47:32.354579"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Santiago Jaskolski"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.355395"], ["updated_at", "2023-02-03 13:47:32.355395"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Felecia Olson"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.356154"], ["updated_at", "2023-02-03 13:47:32.356154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Kelley Crooks"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.356925"], ["updated_at", "2023-02-03 13:47:32.356925"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dr. Diana Gutkowski"], ["description", "Sunt sapiente aut. Error ipsum possimus. Omnis odio dolores."], ["attempts_number", 81], ["created_at", "2023-02-03 13:47:32.364509"], ["updated_at", "2023-02-03 13:47:32.364509"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Anneliese Marquardt"], ["created_at", "2023-02-03 13:47:32.366155"], ["updated_at", "2023-02-03 13:47:32.366155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Daryl Leannon"], ["description", "Eveniet odio dolore. Temporibus facere placeat. Deserunt voluptate qui."], ["attempts_number", 72], ["created_at", "2023-02-03 13:47:32.368194"], ["updated_at", "2023-02-03 13:47:32.368194"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Josefa Witting"], ["created_at", "2023-02-03 13:47:32.369512"], ["updated_at", "2023-02-03 13:47:32.369512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Antonia Willms DC"], ["description", "Fugit ducimus dolores. Nulla quis et. Voluptate sed ex."], ["attempts_number", 62], ["created_at", "2023-02-03 13:47:32.373519"], ["updated_at", "2023-02-03 13:47:32.373519"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Valentin Hermiston"], ["created_at", "2023-02-03 13:47:32.374709"], ["updated_at", "2023-02-03 13:47:32.374709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sean DuBuque IV"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.375589"], ["updated_at", "2023-02-03 13:47:32.375589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Kimberlee Maggio"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.376403"], ["updated_at", "2023-02-03 13:47:32.376403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Ronnie Schaefer"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.377684"], ["updated_at", "2023-02-03 13:47:32.377684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Stephen Howe"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.378629"], ["updated_at", "2023-02-03 13:47:32.378629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Dorthea Mann"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.379400"], ["updated_at", "2023-02-03 13:47:32.379400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Merrill Schultz II"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.380379"], ["updated_at", "2023-02-03 13:47:32.380379"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gearldine Kessler"], ["correct", 0], ["created_at", "2023-02-03 13:47:32.381624"], ["updated_at", "2023-02-03 13:47:32.381624"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ricardo Willms JD"], ["description", "Voluptatibus dolorum eos. Eos dolorem delectus. Tempora aperiam facere."], ["attempts_number", 50], ["created_at", "2023-02-03 13:47:32.392922"], ["updated_at", "2023-02-03 13:47:32.392922"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elenora Mitchell"], ["description", "Sapiente quo vel. Non aut inventore. Sint cupiditate debitis."], ["attempts_number", 67], ["created_at", "2023-02-03 13:47:32.395445"], ["updated_at", "2023-02-03 13:47:32.395445"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Olin Stiedemann"], ["description", "Dolores cupiditate consequatur. Esse suscipit blanditiis. Quo praesentium eum."], ["attempts_number", 50], ["created_at", "2023-02-03 13:47:32.398791"], ["updated_at", "2023-02-03 13:47:32.398791"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Raymond Willms"], ["created_at", "2023-02-03 13:47:32.399468"], ["updated_at", "2023-02-03 13:47:32.399468"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Randy Huel"], ["created_at", "2023-02-03 13:47:32.400313"], ["updated_at", "2023-02-03 13:47:32.400313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Norris Conroy"], ["created_at", "2023-02-03 13:47:32.401093"], ["updated_at", "2023-02-03 13:47:32.401093"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Georgene Hayes"], ["created_at", "2023-02-03 13:47:32.401852"], ["updated_at", "2023-02-03 13:47:32.401852"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Luciano Klein"], ["created_at", "2023-02-03 13:47:32.402626"], ["updated_at", "2023-02-03 13:47:32.402626"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 13:47:32.404108"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dollie Simonis"], ["description", "Nobis aspernatur tempora. Neque temporibus aut. Ut reiciendis et."], ["attempts_number", 11], ["created_at", "2023-02-03 13:47:32.408373"], ["updated_at", "2023-02-03 13:47:32.408373"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dwayne Hintz"], ["description", "Aut quo et. Quia aut doloribus. Itaque hic sit."], ["attempts_number", 89], ["created_at", "2023-02-03 13:47:32.410173"], ["updated_at", "2023-02-03 13:47:32.410173"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Minh Schroeder"], ["created_at", "2023-02-03 13:47:32.410576"], ["updated_at", "2023-02-03 13:47:32.410576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Molly Zulauf"], ["created_at", "2023-02-03 13:47:32.411407"], ["updated_at", "2023-02-03 13:47:32.411407"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Simon Satterfield"], ["created_at", "2023-02-03 13:47:32.412254"], ["updated_at", "2023-02-03 13:47:32.412254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Micheal Murphy"], ["created_at", "2023-02-03 13:47:32.413024"], ["updated_at", "2023-02-03 13:47:32.413024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Shawana Waelchi"], ["created_at", "2023-02-03 13:47:32.413957"], ["updated_at", "2023-02-03 13:47:32.413957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Raymundo Emmerich"], ["created_at", "2023-02-03 13:47:32.414961"], ["updated_at", "2023-02-03 13:47:32.414961"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gala Ratke"], ["description", "Sit quidem et. Eligendi atque corrupti. Nam minus enim."], ["attempts_number", 80], ["created_at", "2023-02-03 13:47:32.418120"], ["updated_at", "2023-02-03 13:47:32.418120"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "The Hon. Jeremy Zulauf"], ["description", "Expedita occaecati non. Aut natus necessitatibus. Eum quis delectus."], ["attempts_number", 13], ["created_at", "2023-02-03 13:47:32.422349"], ["updated_at", "2023-02-03 13:47:32.422349"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.431507"], ["updated_at", "2023-02-03 13:47:32.431507"], ["name", "Denver Towne"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.432912"], ["updated_at", "2023-02-03 13:47:32.432912"], ["name", "Julius Rohan II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Patrick Barrows"], ["description", "Quaerat accusamus natus. Sed aut voluptatibus. Nihil dicta recusandae."], ["attempts_number", 55], ["created_at", "2023-02-03 13:47:32.434999"], ["updated_at", "2023-02-03 13:47:32.434999"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kendra Hirthe"], ["created_at", "2023-02-03 13:47:32.435420"], ["updated_at", "2023-02-03 13:47:32.435420"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sen. Tanisha O'Conner"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.435724"], ["updated_at", "2023-02-03 13:47:32.435724"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sol Cartwright III"], ["created_at", "2023-02-03 13:47:32.437262"], ["updated_at", "2023-02-03 13:47:32.437262"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Emory Jerde"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.437781"], ["updated_at", "2023-02-03 13:47:32.437781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lea Barrows"], ["created_at", "2023-02-03 13:47:32.439096"], ["updated_at", "2023-02-03 13:47:32.439096"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ryan Haley"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.439447"], ["updated_at", "2023-02-03 13:47:32.439447"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Andria White"], ["created_at", "2023-02-03 13:47:32.440714"], ["updated_at", "2023-02-03 13:47:32.440714"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Graham Zemlak"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.441109"], ["updated_at", "2023-02-03 13:47:32.441109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.446172"], ["updated_at", "2023-02-03 13:47:32.446172"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.446630"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:32.447808"], ["updated_at", "2023-02-03 13:47:32.447808"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.448178"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:32.449023"], ["updated_at", "2023-02-03 13:47:32.449023"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.449353"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:32.450128"], ["updated_at", "2023-02-03 13:47:32.450128"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.450478"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.455956"], ["updated_at", "2023-02-03 13:47:32.455956"], ["name", "Delia Quitzon"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.457255"], ["updated_at", "2023-02-03 13:47:32.457255"], ["name", "Fr. Owen Renner"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ilana Jacobson"], ["description", "Minus aspernatur nesciunt. Minima at reiciendis. Adipisci et vel."], ["attempts_number", 36], ["created_at", "2023-02-03 13:47:32.459421"], ["updated_at", "2023-02-03 13:47:32.459421"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Vonda Beatty"], ["created_at", "2023-02-03 13:47:32.459911"], ["updated_at", "2023-02-03 13:47:32.459911"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Pres. Jan Senger"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.460223"], ["updated_at", "2023-02-03 13:47:32.460223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jared Pacocha"], ["created_at", "2023-02-03 13:47:32.461509"], ["updated_at", "2023-02-03 13:47:32.461509"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Haywood Mosciski"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.461864"], ["updated_at", "2023-02-03 13:47:32.461864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Laverne Wyman"], ["created_at", "2023-02-03 13:47:32.463120"], ["updated_at", "2023-02-03 13:47:32.463120"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Stanley Effertz"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.463700"], ["updated_at", "2023-02-03 13:47:32.463700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Terra Osinski MD"], ["created_at", "2023-02-03 13:47:32.465176"], ["updated_at", "2023-02-03 13:47:32.465176"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Sen. Tarra Wolff"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.465662"], ["updated_at", "2023-02-03 13:47:32.465662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.469713"], ["updated_at", "2023-02-03 13:47:32.469713"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.470085"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:32.470949"], ["updated_at", "2023-02-03 13:47:32.470949"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.471276"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:32.472058"], ["updated_at", "2023-02-03 13:47:32.472058"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.472379"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:32.473150"], ["updated_at", "2023-02-03 13:47:32.473150"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.473471"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.476919"], ["updated_at", "2023-02-03 13:47:32.476919"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.477265"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:32.478095"], ["updated_at", "2023-02-03 13:47:32.478095"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.478427"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:32.479229"], ["updated_at", "2023-02-03 13:47:32.479229"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.479612"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:32.480814"], ["updated_at", "2023-02-03 13:47:32.480814"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.481220"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.484700"], ["updated_at", "2023-02-03 13:47:32.484700"], ["name", "Cathrine Heidenreich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:32.486457"], ["updated_at", "2023-02-03 13:47:32.486457"], ["name", "Reiko Walker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Blaine Goodwin V"], ["description", "Debitis nesciunt et. Harum quisquam nesciunt. Eos distinctio beatae."], ["attempts_number", 20], ["created_at", "2023-02-03 13:47:32.488762"], ["updated_at", "2023-02-03 13:47:32.488762"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Veola Green"], ["created_at", "2023-02-03 13:47:32.489228"], ["updated_at", "2023-02-03 13:47:32.489228"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Camila Lehner"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.489541"], ["updated_at", "2023-02-03 13:47:32.489541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Shelby Will"], ["created_at", "2023-02-03 13:47:32.491009"], ["updated_at", "2023-02-03 13:47:32.491009"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Lorina Vandervort Jr."], ["correct", 1], ["created_at", "2023-02-03 13:47:32.491409"], ["updated_at", "2023-02-03 13:47:32.491409"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lynetta Predovic"], ["created_at", "2023-02-03 13:47:32.492699"], ["updated_at", "2023-02-03 13:47:32.492699"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Kay Schumm PhD"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.493071"], ["updated_at", "2023-02-03 13:47:32.493071"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rema Christiansen IV"], ["created_at", "2023-02-03 13:47:32.494388"], ["updated_at", "2023-02-03 13:47:32.494388"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Anibal Smith"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.494734"], ["updated_at", "2023-02-03 13:47:32.494734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Len Mann"], ["description", "Excepturi eum omnis. Tempore illum modi. Aut fugit non."], ["attempts_number", 37], ["created_at", "2023-02-03 13:47:32.496866"], ["updated_at", "2023-02-03 13:47:32.496866"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ela Greenholt"], ["created_at", "2023-02-03 13:47:32.497524"], ["updated_at", "2023-02-03 13:47:32.497524"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Larue Reilly"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.497856"], ["updated_at", "2023-02-03 13:47:32.497856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Erwin Orn"], ["created_at", "2023-02-03 13:47:32.499544"], ["updated_at", "2023-02-03 13:47:32.499544"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Nena Doyle"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.500156"], ["updated_at", "2023-02-03 13:47:32.500156"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosana Crona"], ["created_at", "2023-02-03 13:47:32.501494"], ["updated_at", "2023-02-03 13:47:32.501494"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Iesha Gerlach Esq."], ["correct", 1], ["created_at", "2023-02-03 13:47:32.501853"], ["updated_at", "2023-02-03 13:47:32.501853"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bree Howe PhD"], ["created_at", "2023-02-03 13:47:32.503138"], ["updated_at", "2023-02-03 13:47:32.503138"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Hank Gorczany I"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.503513"], ["updated_at", "2023-02-03 13:47:32.503513"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tena Dickens"], ["created_at", "2023-02-03 13:47:32.504749"], ["updated_at", "2023-02-03 13:47:32.504749"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Prof. Jesus Weissnat"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.505089"], ["updated_at", "2023-02-03 13:47:32.505089"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Keitha Sanford PhD"], ["created_at", "2023-02-03 13:47:32.506549"], ["updated_at", "2023-02-03 13:47:32.506549"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "The Hon. Keshia Connelly"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.506897"], ["updated_at", "2023-02-03 13:47:32.506897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Keenan Lemke"], ["created_at", "2023-02-03 13:47:32.508085"], ["updated_at", "2023-02-03 13:47:32.508085"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Vern Rippin"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.508436"], ["updated_at", "2023-02-03 13:47:32.508436"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jovita Rau DC"], ["created_at", "2023-02-03 13:47:32.509664"], ["updated_at", "2023-02-03 13:47:32.509664"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Loris Kertzmann"], ["correct", 1], ["created_at", "2023-02-03 13:47:32.510001"], ["updated_at", "2023-02-03 13:47:32.510001"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:32.514211"], ["updated_at", "2023-02-03 13:47:32.514211"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.514717"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:32.515828"], ["updated_at", "2023-02-03 13:47:32.515828"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.516192"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:32.517033"], ["updated_at", "2023-02-03 13:47:32.517033"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.517389"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:32.518232"], ["updated_at", "2023-02-03 13:47:32.518232"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.518597"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 13:47:32.525269"], ["updated_at", "2023-02-03 13:47:32.525269"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.525699"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 13:47:32.526734"], ["updated_at", "2023-02-03 13:47:32.526734"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.527100"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 13:47:32.527975"], ["updated_at", "2023-02-03 13:47:32.527975"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.528350"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 13:47:32.537028"], ["updated_at", "2023-02-03 13:47:32.537028"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.537530"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 13:47:32.538472"], ["updated_at", "2023-02-03 13:47:32.538472"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.538807"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 13:47:32.539646"], ["updated_at", "2023-02-03 13:47:32.539646"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.539968"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 13:47:32.540719"], ["updated_at", "2023-02-03 13:47:32.540719"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.541055"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 13:47:32.541801"], ["updated_at", "2023-02-03 13:47:32.541801"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:32.542115"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.033861"], ["updated_at", "2023-02-03 13:47:35.033861"], ["name", "Alphonso Volkman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Joel Pouros"], ["description", "Est nihil vel. Dolores aut hic. Rem nihil ratione."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.038956"], ["updated_at", "2023-02-03 13:47:35.038956"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stefany Langworth"], ["created_at", "2023-02-03 13:47:35.052232"], ["updated_at", "2023-02-03 13:47:35.052232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Ha Lang"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.055081"], ["updated_at", "2023-02-03 13:47:35.055081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.058050"], ["updated_at", "2023-02-03 13:47:35.058050"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.072471"], ["updated_at", "2023-02-03 13:47:35.072471"], ["name", "Carmela Hansen Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Asa Gleichner"], ["description", "Laborum numquam voluptas. Quaerat quo quisquam. Suscipit adipisci veniam."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.073853"], ["updated_at", "2023-02-03 13:47:35.073853"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lou Funk"], ["created_at", "2023-02-03 13:47:35.076618"], ["updated_at", "2023-02-03 13:47:35.076618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Santos Vandervort"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.077505"], ["updated_at", "2023-02-03 13:47:35.077505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.078607"], ["updated_at", "2023-02-03 13:47:35.078607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.080898"], ["updated_at", "2023-02-03 13:47:35.080898"], ["name", "Santiago Schmeler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bradford Harvey"], ["description", "Nam aut tempore. Quasi dolor nobis. Est qui est."], ["attempts_number", 71], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.082204"], ["updated_at", "2023-02-03 13:47:35.082204"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ismael Swaniawski"], ["created_at", "2023-02-03 13:47:35.084266"], ["updated_at", "2023-02-03 13:47:35.084266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Ike Bartoletti"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.085027"], ["updated_at", "2023-02-03 13:47:35.085027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.086012"], ["updated_at", "2023-02-03 13:47:35.086012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.087887"], ["updated_at", "2023-02-03 13:47:35.087887"], ["name", "Quincy Grimes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Suzi Hoeger"], ["description", "In error incidunt. Nesciunt illum eos. Quia blanditiis magnam."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.089150"], ["updated_at", "2023-02-03 13:47:35.089150"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Louis Anderson"], ["created_at", "2023-02-03 13:47:35.091096"], ["updated_at", "2023-02-03 13:47:35.091096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yuonne Turner"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.091815"], ["updated_at", "2023-02-03 13:47:35.091815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.092864"], ["updated_at", "2023-02-03 13:47:35.092864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.102193"], ["updated_at", "2023-02-03 13:47:35.102193"], ["name", "Riley Mante I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Jewel Jacobs"], ["description", "Necessitatibus esse aut. Eveniet et est. Ex voluptas quos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.103626"], ["updated_at", "2023-02-03 13:47:35.103626"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.114352"], ["updated_at", "2023-02-03 13:47:35.114352"], ["name", "Amb. Van Stokes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kennith Schowalter Jr."], ["description", "Omnis pariatur ea. Beatae sint eum. Omnis eaque est."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.116596"], ["updated_at", "2023-02-03 13:47:35.116596"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Sid Kassulke"], ["description", "Porro ex nulla. Ipsa nam et. Et fugiat sed."], ["attempts_number", 88], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.130125"], ["updated_at", "2023-02-03 13:47:35.130125"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Darci Sauer"], ["created_at", "2023-02-03 13:47:35.131948"], ["updated_at", "2023-02-03 13:47:35.131948"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Jenine Rosenbaum"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.133121"], ["updated_at", "2023-02-03 13:47:35.133121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dia Jacobi"], ["description", "Eius excepturi est. Nostrum ratione officiis. Aperiam repellendus et."], ["attempts_number", 45], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.135160"], ["updated_at", "2023-02-03 13:47:35.135160"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Angel Brown"], ["created_at", "2023-02-03 13:47:35.136211"], ["updated_at", "2023-02-03 13:47:35.136211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pamella Walsh"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.136965"], ["updated_at", "2023-02-03 13:47:35.136965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gene Mante"], ["description", "Vel alias unde. Quasi molestiae praesentium. Vel cumque neque."], ["attempts_number", 12], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.140735"], ["updated_at", "2023-02-03 13:47:35.140735"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Rosella Kunze"], ["created_at", "2023-02-03 13:47:35.141952"], ["updated_at", "2023-02-03 13:47:35.141952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Camilla Schiller"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.142761"], ["updated_at", "2023-02-03 13:47:35.142761"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Winston Larson Ret."], ["description", "Recusandae expedita est. Culpa minima reprehenderit. Est dolores quia."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.145023"], ["updated_at", "2023-02-03 13:47:35.145023"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robt Kutch"], ["created_at", "2023-02-03 13:47:35.146435"], ["updated_at", "2023-02-03 13:47:35.146435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bettina Welch"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.147970"], ["updated_at", "2023-02-03 13:47:35.147970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shante Wolf"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.149259"], ["updated_at", "2023-02-03 13:47:35.149259"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Luis Runolfsson"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.150154"], ["updated_at", "2023-02-03 13:47:35.150154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Amb. Stephine Kreiger"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.150937"], ["updated_at", "2023-02-03 13:47:35.150937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Michaela Lehner CPA"], ["description", "Dignissimos asperiores ea. Quia itaque sapiente. Reprehenderit iste itaque."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.157424"], ["updated_at", "2023-02-03 13:47:35.157424"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Almeta Hauck"], ["created_at", "2023-02-03 13:47:35.158720"], ["updated_at", "2023-02-03 13:47:35.158720"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Lucille McKenzie"], ["description", "Qui consequatur laborum. Perspiciatis id consequatur. Consequatur recusandae quia."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.160521"], ["updated_at", "2023-02-03 13:47:35.160521"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kermit Pacocha"], ["created_at", "2023-02-03 13:47:35.161547"], ["updated_at", "2023-02-03 13:47:35.161547"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Michelle Torp"], ["description", "Sed fugiat dolorem. Molestiae eum est. Vel voluptatem sequi."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.165043"], ["updated_at", "2023-02-03 13:47:35.165043"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Vena Mills"], ["created_at", "2023-02-03 13:47:35.166819"], ["updated_at", "2023-02-03 13:47:35.166819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Estefana Farrell"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.168058"], ["updated_at", "2023-02-03 13:47:35.168058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bobbie Fahey"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.168911"], ["updated_at", "2023-02-03 13:47:35.168911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rosalee Oberbrunner"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.169654"], ["updated_at", "2023-02-03 13:47:35.169654"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Willard Bode"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.170388"], ["updated_at", "2023-02-03 13:47:35.170388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lecia Schoen"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.171078"], ["updated_at", "2023-02-03 13:47:35.171078"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Willian Hoeger"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.171887"], ["updated_at", "2023-02-03 13:47:35.171887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gov. Larry Heathcote"], ["correct", 0], ["created_at", "2023-02-03 13:47:35.172625"], ["updated_at", "2023-02-03 13:47:35.172625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dustin Luettgen"], ["description", "Qui in praesentium. Earum soluta ut. Et voluptatem enim."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.194129"], ["updated_at", "2023-02-03 13:47:35.194129"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Emery Morissette MD"], ["description", "Quod vel et. Aut voluptates harum. Quos ipsam ducimus."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.196922"], ["updated_at", "2023-02-03 13:47:35.196922"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Faith Beier"], ["description", "Sunt iusto vel. Molestiae commodi voluptatibus. Itaque labore voluptatem."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.199698"], ["updated_at", "2023-02-03 13:47:35.199698"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adalberto Stehr"], ["created_at", "2023-02-03 13:47:35.200300"], ["updated_at", "2023-02-03 13:47:35.200300"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chong Lakin"], ["created_at", "2023-02-03 13:47:35.201194"], ["updated_at", "2023-02-03 13:47:35.201194"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Verda Auer"], ["created_at", "2023-02-03 13:47:35.202286"], ["updated_at", "2023-02-03 13:47:35.202286"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Craig Stokes Jr."], ["created_at", "2023-02-03 13:47:35.203256"], ["updated_at", "2023-02-03 13:47:35.203256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Maren Padberg"], ["created_at", "2023-02-03 13:47:35.204047"], ["updated_at", "2023-02-03 13:47:35.204047"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.0ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 13:47:35.205500"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hugo Wunsch"], ["description", "Ducimus fugiat veritatis. Sint ab eveniet. Est sapiente omnis."], ["attempts_number", 57], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.209454"], ["updated_at", "2023-02-03 13:47:35.209454"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Corey Kris"], ["description", "Perferendis ullam vel. Et illum alias. Enim sed aut."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.211525"], ["updated_at", "2023-02-03 13:47:35.211525"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mario Sauer"], ["created_at", "2023-02-03 13:47:35.211950"], ["updated_at", "2023-02-03 13:47:35.211950"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carri Kuhn"], ["created_at", "2023-02-03 13:47:35.212685"], ["updated_at", "2023-02-03 13:47:35.212685"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kathe Bednar"], ["created_at", "2023-02-03 13:47:35.213367"], ["updated_at", "2023-02-03 13:47:35.213367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alva Jacobs"], ["created_at", "2023-02-03 13:47:35.214136"], ["updated_at", "2023-02-03 13:47:35.214136"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Elia Sanford"], ["created_at", "2023-02-03 13:47:35.214892"], ["updated_at", "2023-02-03 13:47:35.214892"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Coreen Harris DDS"], ["created_at", "2023-02-03 13:47:35.215750"], ["updated_at", "2023-02-03 13:47:35.215750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Horace Berge"], ["description", "Voluptas quos labore. Quas voluptatibus sint. Quasi non reiciendis."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.218694"], ["updated_at", "2023-02-03 13:47:35.218694"], ["survey_type", 2]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carrol Dibbert"], ["description", "Et mollitia distinctio. Minima voluptatibus modi. Quis vero sed."], ["attempts_number", 37], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.223242"], ["updated_at", "2023-02-03 13:47:35.223242"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.231853"], ["updated_at", "2023-02-03 13:47:35.231853"], ["name", "Classie Nolan"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.233204"], ["updated_at", "2023-02-03 13:47:35.233204"], ["name", "Stanley Tromp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Darrel Kertzmann"], ["description", "Excepturi voluptatem ratione. Rerum quos et. Velit beatae qui."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.235077"], ["updated_at", "2023-02-03 13:47:35.235077"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cristobal Brown"], ["created_at", "2023-02-03 13:47:35.235460"], ["updated_at", "2023-02-03 13:47:35.235460"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mohammed Bergstrom"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.235732"], ["updated_at", "2023-02-03 13:47:35.235732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Erick Block"], ["created_at", "2023-02-03 13:47:35.237152"], ["updated_at", "2023-02-03 13:47:35.237152"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Tyrone Halvorson"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.237580"], ["updated_at", "2023-02-03 13:47:35.237580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Javier Ortiz"], ["created_at", "2023-02-03 13:47:35.238824"], ["updated_at", "2023-02-03 13:47:35.238824"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Granville Hintz DO"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.239131"], ["updated_at", "2023-02-03 13:47:35.239131"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marica Strosin JD"], ["created_at", "2023-02-03 13:47:35.240280"], ["updated_at", "2023-02-03 13:47:35.240280"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Pierre Littel"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.240574"], ["updated_at", "2023-02-03 13:47:35.240574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.245277"], ["updated_at", "2023-02-03 13:47:35.245277"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.245650"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:35.246515"], ["updated_at", "2023-02-03 13:47:35.246515"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.246880"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:35.247818"], ["updated_at", "2023-02-03 13:47:35.247818"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.248130"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:35.248902"], ["updated_at", "2023-02-03 13:47:35.248902"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.249239"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.254003"], ["updated_at", "2023-02-03 13:47:35.254003"], ["name", "Melina Reinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.255089"], ["updated_at", "2023-02-03 13:47:35.255089"], ["name", "Minda Labadie"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marvel Effertz"], ["description", "Qui sed veniam. Adipisci nihil mollitia. Officia eum consequuntur."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.257099"], ["updated_at", "2023-02-03 13:47:35.257099"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Russel Blick"], ["created_at", "2023-02-03 13:47:35.257491"], ["updated_at", "2023-02-03 13:47:35.257491"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Msgr. Shaneka Howell"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.257759"], ["updated_at", "2023-02-03 13:47:35.257759"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Milford Quitzon"], ["created_at", "2023-02-03 13:47:35.258977"], ["updated_at", "2023-02-03 13:47:35.258977"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Anh Gusikowski Esq."], ["correct", 1], ["created_at", "2023-02-03 13:47:35.259277"], ["updated_at", "2023-02-03 13:47:35.259277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fredrick Rohan"], ["created_at", "2023-02-03 13:47:35.260417"], ["updated_at", "2023-02-03 13:47:35.260417"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ronald Fadel DC"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.260709"], ["updated_at", "2023-02-03 13:47:35.260709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cameron White"], ["created_at", "2023-02-03 13:47:35.261816"], ["updated_at", "2023-02-03 13:47:35.261816"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lorretta Satterfield"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.262117"], ["updated_at", "2023-02-03 13:47:35.262117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.266537"], ["updated_at", "2023-02-03 13:47:35.266537"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.266913"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:35.267763"], ["updated_at", "2023-02-03 13:47:35.267763"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.268052"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:35.268842"], ["updated_at", "2023-02-03 13:47:35.268842"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.269124"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:35.269843"], ["updated_at", "2023-02-03 13:47:35.269843"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.270123"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.273265"], ["updated_at", "2023-02-03 13:47:35.273265"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.273551"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:35.274319"], ["updated_at", "2023-02-03 13:47:35.274319"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.274605"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:35.275359"], ["updated_at", "2023-02-03 13:47:35.275359"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.275643"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:35.276360"], ["updated_at", "2023-02-03 13:47:35.276360"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.276639"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.279762"], ["updated_at", "2023-02-03 13:47:35.279762"], ["name", "Msgr. Marchelle Huel"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 13:47:35.281249"], ["updated_at", "2023-02-03 13:47:35.281249"], ["name", "Madelene Simonis MD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shantell Stokes"], ["description", "Necessitatibus sit iste. Totam animi debitis. Et fuga nisi."], ["attempts_number", 51], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.283355"], ["updated_at", "2023-02-03 13:47:35.283355"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ignacio Wolf"], ["created_at", "2023-02-03 13:47:35.283823"], ["updated_at", "2023-02-03 13:47:35.283823"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Claude Daugherty"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.284096"], ["updated_at", "2023-02-03 13:47:35.284096"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlton Hansen V"], ["created_at", "2023-02-03 13:47:35.285388"], ["updated_at", "2023-02-03 13:47:35.285388"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Sammie Purdy Sr."], ["correct", 1], ["created_at", "2023-02-03 13:47:35.285693"], ["updated_at", "2023-02-03 13:47:35.285693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elliott Beer"], ["created_at", "2023-02-03 13:47:35.286821"], ["updated_at", "2023-02-03 13:47:35.286821"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Santo Breitenberg"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.287114"], ["updated_at", "2023-02-03 13:47:35.287114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Matthew Nitzsche"], ["created_at", "2023-02-03 13:47:35.288226"], ["updated_at", "2023-02-03 13:47:35.288226"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Serina Champlin III"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.288519"], ["updated_at", "2023-02-03 13:47:35.288519"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chase Morissette LLD"], ["description", "Quidem animi aliquid. Sunt unde amet. Officiis provident dolorem."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 13:47:35.290346"], ["updated_at", "2023-02-03 13:47:35.290346"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alana Jacobi"], ["created_at", "2023-02-03 13:47:35.290676"], ["updated_at", "2023-02-03 13:47:35.290676"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Luna Farrell"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.290897"], ["updated_at", "2023-02-03 13:47:35.290897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rayford Lowe"], ["created_at", "2023-02-03 13:47:35.291946"], ["updated_at", "2023-02-03 13:47:35.291946"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Brandon Cormier"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.292210"], ["updated_at", "2023-02-03 13:47:35.292210"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marcelo Nitzsche"], ["created_at", "2023-02-03 13:47:35.293237"], ["updated_at", "2023-02-03 13:47:35.293237"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Pok Emmerich"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.293503"], ["updated_at", "2023-02-03 13:47:35.293503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Newton Wuckert"], ["created_at", "2023-02-03 13:47:35.294559"], ["updated_at", "2023-02-03 13:47:35.294559"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Neil Fahey"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.294825"], ["updated_at", "2023-02-03 13:47:35.294825"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Idell O'Reilly"], ["created_at", "2023-02-03 13:47:35.295918"], ["updated_at", "2023-02-03 13:47:35.295918"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Mr. Lincoln Nicolas"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.296210"], ["updated_at", "2023-02-03 13:47:35.296210"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lucien Larson"], ["created_at", "2023-02-03 13:47:35.297365"], ["updated_at", "2023-02-03 13:47:35.297365"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Christian Zboncak"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.297699"], ["updated_at", "2023-02-03 13:47:35.297699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Leigh Moore"], ["created_at", "2023-02-03 13:47:35.299210"], ["updated_at", "2023-02-03 13:47:35.299210"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Phil Cummings DC"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.299625"], ["updated_at", "2023-02-03 13:47:35.299625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Miss Sherman Kulas"], ["created_at", "2023-02-03 13:47:35.300822"], ["updated_at", "2023-02-03 13:47:35.300822"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Elvin Gibson"], ["correct", 1], ["created_at", "2023-02-03 13:47:35.301109"], ["updated_at", "2023-02-03 13:47:35.301109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 13:47:35.304893"], ["updated_at", "2023-02-03 13:47:35.304893"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.305209"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 13:47:35.306102"], ["updated_at", "2023-02-03 13:47:35.306102"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.306388"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 13:47:35.307143"], ["updated_at", "2023-02-03 13:47:35.307143"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.307428"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 13:47:35.308250"], ["updated_at", "2023-02-03 13:47:35.308250"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.308528"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 13:47:35.314811"], ["updated_at", "2023-02-03 13:47:35.314811"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.315189"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 13:47:35.316039"], ["updated_at", "2023-02-03 13:47:35.316039"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.316327"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 13:47:35.317189"], ["updated_at", "2023-02-03 13:47:35.317189"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.317472"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 13:47:35.318191"], ["updated_at", "2023-02-03 13:47:35.318191"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.318467"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 13:47:35.319323"], ["updated_at", "2023-02-03 13:47:35.319323"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.319601"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 13:47:35.320320"], ["updated_at", "2023-02-03 13:47:35.320320"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.320602"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 13:47:35.321487"], ["updated_at", "2023-02-03 13:47:35.321487"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.321774"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 13:47:35.322481"], ["updated_at", "2023-02-03 13:47:35.322481"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 13:47:35.322923"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.2ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.850350"], ["updated_at", "2023-02-03 14:22:48.850350"], ["name", "Otto Hirthe"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Luther Sipes"], ["description", "Reprehenderit veritatis debitis. Quia aut aspernatur. Molestiae quis voluptatem."], ["attempts_number", 11], ["created_at", "2023-02-03 14:22:48.858141"], ["updated_at", "2023-02-03 14:22:48.858141"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cleta Walter Ret."], ["created_at", "2023-02-03 14:22:48.875826"], ["updated_at", "2023-02-03 14:22:48.875826"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Fr. Patricia Nikolaus"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.880646"], ["updated_at", "2023-02-03 14:22:48.880646"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:48.885940"], ["updated_at", "2023-02-03 14:22:48.885940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.905148"], ["updated_at", "2023-02-03 14:22:48.905148"], ["name", "Arnulfo Metz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Terina West"], ["description", "Non officia aut. Omnis commodi quibusdam. Hic suscipit magni."], ["attempts_number", 63], ["created_at", "2023-02-03 14:22:48.906966"], ["updated_at", "2023-02-03 14:22:48.906966"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Eduardo Parker"], ["created_at", "2023-02-03 14:22:48.909423"], ["updated_at", "2023-02-03 14:22:48.909423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Leoma Crist"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.910359"], ["updated_at", "2023-02-03 14:22:48.910359"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:48.911679"], ["updated_at", "2023-02-03 14:22:48.911679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.914200"], ["updated_at", "2023-02-03 14:22:48.914200"], ["name", "Lucio Murray"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Franklyn Gleason"], ["description", "Unde recusandae similique. Dicta qui placeat. Ab molestiae temporibus."], ["attempts_number", 70], ["created_at", "2023-02-03 14:22:48.916142"], ["updated_at", "2023-02-03 14:22:48.916142"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Latina Beatty"], ["created_at", "2023-02-03 14:22:48.919713"], ["updated_at", "2023-02-03 14:22:48.919713"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Sen. Xuan Erdman"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.920686"], ["updated_at", "2023-02-03 14:22:48.920686"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:48.921942"], ["updated_at", "2023-02-03 14:22:48.921942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.923985"], ["updated_at", "2023-02-03 14:22:48.923985"], ["name", "Hilario Wintheiser"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dannie Bergstrom"], ["description", "Modi sit quis. Et blanditiis in. Aspernatur quidem ut."], ["attempts_number", 67], ["created_at", "2023-02-03 14:22:48.925300"], ["updated_at", "2023-02-03 14:22:48.925300"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tennille Kuphal"], ["created_at", "2023-02-03 14:22:48.927468"], ["updated_at", "2023-02-03 14:22:48.927468"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Julene Turner"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.928267"], ["updated_at", "2023-02-03 14:22:48.928267"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:48.929339"], ["updated_at", "2023-02-03 14:22:48.929339"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.939155"], ["updated_at", "2023-02-03 14:22:48.939155"], ["name", "Fr. Adrianne Leannon"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rev. Devin Bogan"], ["description", "Dolor autem ducimus. Quas ut id. Cupiditate aspernatur quo."], ["attempts_number", 5], ["created_at", "2023-02-03 14:22:48.940704"], ["updated_at", "2023-02-03 14:22:48.940704"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:48.952553"], ["updated_at", "2023-02-03 14:22:48.952553"], ["name", "Rick Kuhlman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rema Goldner IV"], ["description", "Aut accusantium exercitationem. Ipsum quam repellat. Dolorem rerum perferendis."], ["attempts_number", 5], ["created_at", "2023-02-03 14:22:48.954478"], ["updated_at", "2023-02-03 14:22:48.954478"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bud Larson"], ["description", "Sit id iure. Vero enim odit. Corporis aperiam qui."], ["attempts_number", 65], ["created_at", "2023-02-03 14:22:48.969197"], ["updated_at", "2023-02-03 14:22:48.969197"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maricruz Harvey"], ["created_at", "2023-02-03 14:22:48.971000"], ["updated_at", "2023-02-03 14:22:48.971000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Lottie Veum"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.972167"], ["updated_at", "2023-02-03 14:22:48.972167"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rep. Billie Jaskolski"], ["description", "Ab harum error. Voluptatem et temporibus. Dolores eos quia."], ["attempts_number", 24], ["created_at", "2023-02-03 14:22:48.974399"], ["updated_at", "2023-02-03 14:22:48.974399"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Humberto Zulauf"], ["created_at", "2023-02-03 14:22:48.975572"], ["updated_at", "2023-02-03 14:22:48.975572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Tiny Hirthe"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.976389"], ["updated_at", "2023-02-03 14:22:48.976389"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Amb. Abel Mraz"], ["description", "Aut aut hic. Est facilis illo. Et et veniam."], ["attempts_number", 90], ["created_at", "2023-02-03 14:22:48.980384"], ["updated_at", "2023-02-03 14:22:48.980384"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ozzie Littel"], ["created_at", "2023-02-03 14:22:48.981881"], ["updated_at", "2023-02-03 14:22:48.981881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Micheal Paucek"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.982762"], ["updated_at", "2023-02-03 14:22:48.982762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Angelique Schiller"], ["description", "Itaque ducimus corporis. Assumenda numquam dignissimos. Nisi nemo consequuntur."], ["attempts_number", 70], ["created_at", "2023-02-03 14:22:48.985853"], ["updated_at", "2023-02-03 14:22:48.985853"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ellie McGlynn"], ["created_at", "2023-02-03 14:22:48.987302"], ["updated_at", "2023-02-03 14:22:48.987302"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Max Senger"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.989108"], ["updated_at", "2023-02-03 14:22:48.989108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Prof. Eulalia Schuppe"], ["correct", 0], ["created_at", "2023-02-03 14:22:48.990252"], ["updated_at", "2023-02-03 14:22:48.990252"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Sen. Cornelia Kertzmann"], ["correct", 1], ["created_at", "2023-02-03 14:22:48.991099"], ["updated_at", "2023-02-03 14:22:48.991099"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Kecia Zboncak"], ["correct", 1], ["created_at", "2023-02-03 14:22:48.991894"], ["updated_at", "2023-02-03 14:22:48.991894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Federico Ziemann III"], ["description", "Voluptatem ducimus tenetur. Sint sed atque. Dolores cupiditate doloremque."], ["attempts_number", 71], ["created_at", "2023-02-03 14:22:48.999395"], ["updated_at", "2023-02-03 14:22:48.999395"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Estrella Bogan"], ["created_at", "2023-02-03 14:22:49.000998"], ["updated_at", "2023-02-03 14:22:49.000998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mack Borer"], ["description", "Minus ut rerum. Voluptatum dicta nostrum. Ut tempora ipsa."], ["attempts_number", 78], ["created_at", "2023-02-03 14:22:49.003664"], ["updated_at", "2023-02-03 14:22:49.003664"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Jeremy Rice"], ["created_at", "2023-02-03 14:22:49.004905"], ["updated_at", "2023-02-03 14:22:49.004905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Martha Beer"], ["description", "Odit sit neque. Doloremque optio accusantium. Aut adipisci ipsa."], ["attempts_number", 97], ["created_at", "2023-02-03 14:22:49.009317"], ["updated_at", "2023-02-03 14:22:49.009317"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Ben Collier"], ["created_at", "2023-02-03 14:22:49.010664"], ["updated_at", "2023-02-03 14:22:49.010664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Cecil Miller"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.011541"], ["updated_at", "2023-02-03 14:22:49.011541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Corrine Greenfelder"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.012350"], ["updated_at", "2023-02-03 14:22:49.012350"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Valentine Wilderman"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.013112"], ["updated_at", "2023-02-03 14:22:49.013112"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Kym Ruecker CPA"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.013888"], ["updated_at", "2023-02-03 14:22:49.013888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Floretta Cummerata"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.014711"], ["updated_at", "2023-02-03 14:22:49.014711"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Norbert Shields"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.017083"], ["updated_at", "2023-02-03 14:22:49.017083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Bruno Gislason"], ["correct", 0], ["created_at", "2023-02-03 14:22:49.018458"], ["updated_at", "2023-02-03 14:22:49.018458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.5ms) TRUNCATE TABLE "survey_attempts" +  (1.0ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Martine Lubowitz"], ["description", "Dolor voluptatem et. Aliquid modi rem. Amet illum repellendus."], ["attempts_number", 58], ["created_at", "2023-02-03 14:22:49.030556"], ["updated_at", "2023-02-03 14:22:49.030556"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Minna Crist"], ["description", "Velit commodi eveniet. Dolores esse est. Et dolore hic."], ["attempts_number", 14], ["created_at", "2023-02-03 14:22:49.032807"], ["updated_at", "2023-02-03 14:22:49.032807"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ezequiel Schuppe"], ["description", "Sed occaecati nam. Quia necessitatibus perspiciatis. Libero fugit vel."], ["attempts_number", 38], ["created_at", "2023-02-03 14:22:49.035774"], ["updated_at", "2023-02-03 14:22:49.035774"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Scott Powlowski"], ["created_at", "2023-02-03 14:22:49.036561"], ["updated_at", "2023-02-03 14:22:49.036561"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marguerita Stroman"], ["created_at", "2023-02-03 14:22:49.037662"], ["updated_at", "2023-02-03 14:22:49.037662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Basil Mueller"], ["created_at", "2023-02-03 14:22:49.038482"], ["updated_at", "2023-02-03 14:22:49.038482"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Shea Paucek"], ["created_at", "2023-02-03 14:22:49.039267"], ["updated_at", "2023-02-03 14:22:49.039267"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "The Hon. Sherill Wiza"], ["created_at", "2023-02-03 14:22:49.040146"], ["updated_at", "2023-02-03 14:22:49.040146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:22:49.041437"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Aurore Wintheiser"], ["description", "Quia facere consequatur. Et voluptatem corporis. Nostrum ut vel."], ["attempts_number", 47], ["created_at", "2023-02-03 14:22:49.046049"], ["updated_at", "2023-02-03 14:22:49.046049"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lisha Kautzer"], ["description", "Voluptas voluptate temporibus. Sunt occaecati omnis. Quia perspiciatis dolorem."], ["attempts_number", 68], ["created_at", "2023-02-03 14:22:49.048021"], ["updated_at", "2023-02-03 14:22:49.048021"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kiara Pouros"], ["created_at", "2023-02-03 14:22:49.048427"], ["updated_at", "2023-02-03 14:22:49.048427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fidelia O'Connell"], ["created_at", "2023-02-03 14:22:49.049191"], ["updated_at", "2023-02-03 14:22:49.049191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sylvia Breitenberg"], ["created_at", "2023-02-03 14:22:49.050018"], ["updated_at", "2023-02-03 14:22:49.050018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Wilburn Hartmann"], ["created_at", "2023-02-03 14:22:49.050876"], ["updated_at", "2023-02-03 14:22:49.050876"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Michal Vandervort"], ["created_at", "2023-02-03 14:22:49.051883"], ["updated_at", "2023-02-03 14:22:49.051883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tanna Corkery"], ["created_at", "2023-02-03 14:22:49.053257"], ["updated_at", "2023-02-03 14:22:49.053257"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marita Gislason Ret."], ["description", "Unde et magni. Consequatur ipsam repellendus. Temporibus dolorem molestiae."], ["attempts_number", 32], ["created_at", "2023-02-03 14:22:49.056753"], ["updated_at", "2023-02-03 14:22:49.056753"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Brendan Gutmann"], ["description", "Facilis maxime et. Consequatur odit tempore. Consequatur sint eos."], ["attempts_number", 99], ["created_at", "2023-02-03 14:22:49.060459"], ["updated_at", "2023-02-03 14:22:49.060459"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.2ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.070472"], ["updated_at", "2023-02-03 14:22:49.070472"], ["name", "Royce Bayer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.071531"], ["updated_at", "2023-02-03 14:22:49.071531"], ["name", "Kristen Connelly"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Neal Yundt"], ["description", "Dolor saepe dolore. Quis commodi ut. Quis rem voluptatem."], ["attempts_number", 24], ["created_at", "2023-02-03 14:22:49.073635"], ["updated_at", "2023-02-03 14:22:49.073635"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Don Towne"], ["created_at", "2023-02-03 14:22:49.074792"], ["updated_at", "2023-02-03 14:22:49.074792"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Florencio Jakubowski"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.075177"], ["updated_at", "2023-02-03 14:22:49.075177"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Cristobal Stoltenberg"], ["created_at", "2023-02-03 14:22:49.076804"], ["updated_at", "2023-02-03 14:22:49.076804"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Rep. Renaldo Cormier"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.077183"], ["updated_at", "2023-02-03 14:22:49.077183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Quentin Bernier"], ["created_at", "2023-02-03 14:22:49.078413"], ["updated_at", "2023-02-03 14:22:49.078413"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Dr. Layne Welch"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.078749"], ["updated_at", "2023-02-03 14:22:49.078749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ellis Dare LLD"], ["created_at", "2023-02-03 14:22:49.079969"], ["updated_at", "2023-02-03 14:22:49.079969"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Hai Reynolds"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.080299"], ["updated_at", "2023-02-03 14:22:49.080299"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:49.087151"], ["updated_at", "2023-02-03 14:22:49.087151"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.087595"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:49.088578"], ["updated_at", "2023-02-03 14:22:49.088578"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.088941"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:49.089789"], ["updated_at", "2023-02-03 14:22:49.089789"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.090150"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:49.090971"], ["updated_at", "2023-02-03 14:22:49.090971"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.091306"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.096474"], ["updated_at", "2023-02-03 14:22:49.096474"], ["name", "Amb. Jennefer Blanda"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.098328"], ["updated_at", "2023-02-03 14:22:49.098328"], ["name", "Madeleine Huels"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gilberte King"], ["description", "Magni dicta autem. Omnis incidunt dolorem. Excepturi vel inventore."], ["attempts_number", 73], ["created_at", "2023-02-03 14:22:49.100670"], ["updated_at", "2023-02-03 14:22:49.100670"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Theda Yost"], ["created_at", "2023-02-03 14:22:49.101486"], ["updated_at", "2023-02-03 14:22:49.101486"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gov. Karole Heller"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.101894"], ["updated_at", "2023-02-03 14:22:49.101894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Signe Collins"], ["created_at", "2023-02-03 14:22:49.103423"], ["updated_at", "2023-02-03 14:22:49.103423"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Johnie Senger"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.103785"], ["updated_at", "2023-02-03 14:22:49.103785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donnell Shields"], ["created_at", "2023-02-03 14:22:49.105018"], ["updated_at", "2023-02-03 14:22:49.105018"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Boyd Medhurst DO"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.105351"], ["updated_at", "2023-02-03 14:22:49.105351"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Art Abshire"], ["created_at", "2023-02-03 14:22:49.106614"], ["updated_at", "2023-02-03 14:22:49.106614"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Shane Stokes"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.106924"], ["updated_at", "2023-02-03 14:22:49.106924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:49.110759"], ["updated_at", "2023-02-03 14:22:49.110759"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.111124"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:49.111994"], ["updated_at", "2023-02-03 14:22:49.111994"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.112328"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:49.113107"], ["updated_at", "2023-02-03 14:22:49.113107"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.113437"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:49.114202"], ["updated_at", "2023-02-03 14:22:49.114202"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.114528"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:49.119033"], ["updated_at", "2023-02-03 14:22:49.119033"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.119478"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:49.120629"], ["updated_at", "2023-02-03 14:22:49.120629"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.121035"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:49.121960"], ["updated_at", "2023-02-03 14:22:49.121960"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.122352"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:49.123214"], ["updated_at", "2023-02-03 14:22:49.123214"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.123542"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.127082"], ["updated_at", "2023-02-03 14:22:49.127082"], ["name", "Iliana Beahan DO"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:49.128615"], ["updated_at", "2023-02-03 14:22:49.128615"], ["name", "Ms. Belia Pfeffer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Eilene Hessel"], ["description", "Consequatur animi consequatur. Iusto fugit voluptatem. Explicabo eveniet temporibus."], ["attempts_number", 38], ["created_at", "2023-02-03 14:22:49.130734"], ["updated_at", "2023-02-03 14:22:49.130734"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rachell Simonis"], ["created_at", "2023-02-03 14:22:49.131164"], ["updated_at", "2023-02-03 14:22:49.131164"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Stan Murazik"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.131470"], ["updated_at", "2023-02-03 14:22:49.131470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Juan Johnston"], ["created_at", "2023-02-03 14:22:49.132865"], ["updated_at", "2023-02-03 14:22:49.132865"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Carman Wunsch"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.133337"], ["updated_at", "2023-02-03 14:22:49.133337"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ayako Simonis MD"], ["created_at", "2023-02-03 14:22:49.134849"], ["updated_at", "2023-02-03 14:22:49.134849"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Randolph Hartmann"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.135354"], ["updated_at", "2023-02-03 14:22:49.135354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cyrstal McDermott"], ["created_at", "2023-02-03 14:22:49.136603"], ["updated_at", "2023-02-03 14:22:49.136603"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Davina Rogahn"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.136929"], ["updated_at", "2023-02-03 14:22:49.136929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Deandra Weissnat"], ["description", "Impedit deleniti qui. Dolore quo est. Ab est id."], ["attempts_number", 62], ["created_at", "2023-02-03 14:22:49.138901"], ["updated_at", "2023-02-03 14:22:49.138901"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bobbie Crist"], ["created_at", "2023-02-03 14:22:49.139264"], ["updated_at", "2023-02-03 14:22:49.139264"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "The Hon. Danille Walsh"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.139519"], ["updated_at", "2023-02-03 14:22:49.139519"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stacey Stanton"], ["created_at", "2023-02-03 14:22:49.140664"], ["updated_at", "2023-02-03 14:22:49.140664"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Mike Tremblay PhD"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.140968"], ["updated_at", "2023-02-03 14:22:49.140968"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alysa Harvey"], ["created_at", "2023-02-03 14:22:49.142045"], ["updated_at", "2023-02-03 14:22:49.142045"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Lonny Christiansen"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.142349"], ["updated_at", "2023-02-03 14:22:49.142349"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kareem Kunze"], ["created_at", "2023-02-03 14:22:49.143472"], ["updated_at", "2023-02-03 14:22:49.143472"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Huong Tillman"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.143782"], ["updated_at", "2023-02-03 14:22:49.143782"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Zandra Homenick"], ["created_at", "2023-02-03 14:22:49.144944"], ["updated_at", "2023-02-03 14:22:49.144944"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Dara Cummerata"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.145245"], ["updated_at", "2023-02-03 14:22:49.145245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Winfred Daniel"], ["created_at", "2023-02-03 14:22:49.146329"], ["updated_at", "2023-02-03 14:22:49.146329"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Carmen Stoltenberg"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.146627"], ["updated_at", "2023-02-03 14:22:49.146627"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Joel Bogan"], ["created_at", "2023-02-03 14:22:49.147723"], ["updated_at", "2023-02-03 14:22:49.147723"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Fr. Eddie Emmerich"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.148026"], ["updated_at", "2023-02-03 14:22:49.148026"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Clinton Medhurst"], ["created_at", "2023-02-03 14:22:49.149275"], ["updated_at", "2023-02-03 14:22:49.149275"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Stacey Spinka II"], ["correct", 1], ["created_at", "2023-02-03 14:22:49.149716"], ["updated_at", "2023-02-03 14:22:49.149716"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:49.153692"], ["updated_at", "2023-02-03 14:22:49.153692"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.154066"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:49.154950"], ["updated_at", "2023-02-03 14:22:49.154950"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.155277"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:49.156061"], ["updated_at", "2023-02-03 14:22:49.156061"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.156406"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:49.157214"], ["updated_at", "2023-02-03 14:22:49.157214"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.157535"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:22:49.170435"], ["updated_at", "2023-02-03 14:22:49.170435"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.170834"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:22:49.171707"], ["updated_at", "2023-02-03 14:22:49.171707"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.172031"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:22:49.172782"], ["updated_at", "2023-02-03 14:22:49.172782"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.173097"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:22:49.173855"], ["updated_at", "2023-02-03 14:22:49.173855"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.174165"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:22:49.174899"], ["updated_at", "2023-02-03 14:22:49.174899"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.175211"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:22:49.175962"], ["updated_at", "2023-02-03 14:22:49.175962"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.176271"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:22:49.177035"], ["updated_at", "2023-02-03 14:22:49.177035"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.177346"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:22:49.178073"], ["updated_at", "2023-02-03 14:22:49.178073"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:49.178383"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.702671"], ["updated_at", "2023-02-03 14:22:51.702671"], ["name", "Inger Cummings"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rose Feil"], ["description", "Et praesentium qui. Atque nisi itaque. Fugiat quisquam consequatur."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.707797"], ["updated_at", "2023-02-03 14:22:51.707797"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kayce Collins"], ["created_at", "2023-02-03 14:22:51.721370"], ["updated_at", "2023-02-03 14:22:51.721370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pat Casper DC"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.724216"], ["updated_at", "2023-02-03 14:22:51.724216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.727146"], ["updated_at", "2023-02-03 14:22:51.727146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.745675"], ["updated_at", "2023-02-03 14:22:51.745675"], ["name", "Seema McGlynn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Neal Rau"], ["description", "Sit iusto qui. Eos nobis sunt. Commodi sed dolorem."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.747084"], ["updated_at", "2023-02-03 14:22:51.747084"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jarred Mayer"], ["created_at", "2023-02-03 14:22:51.750222"], ["updated_at", "2023-02-03 14:22:51.750222"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lizzie Nader"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.751116"], ["updated_at", "2023-02-03 14:22:51.751116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.752241"], ["updated_at", "2023-02-03 14:22:51.752241"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.754235"], ["updated_at", "2023-02-03 14:22:51.754235"], ["name", "Raphael McKenzie DO"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Zandra Paucek"], ["description", "Tempora maxime repellat. Sit culpa in. Eos illum quis."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.755461"], ["updated_at", "2023-02-03 14:22:51.755461"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Ricky MacGyver"], ["created_at", "2023-02-03 14:22:51.757437"], ["updated_at", "2023-02-03 14:22:51.757437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rep. Corie Gerlach"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.758177"], ["updated_at", "2023-02-03 14:22:51.758177"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.759127"], ["updated_at", "2023-02-03 14:22:51.759127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.761036"], ["updated_at", "2023-02-03 14:22:51.761036"], ["name", "Gov. Nathalie Kuhlman"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chang O'Connell"], ["description", "Et dolor eligendi. Voluptatibus distinctio quidem. Dolorum est ex."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.762312"], ["updated_at", "2023-02-03 14:22:51.762312"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darrick Wisozk"], ["created_at", "2023-02-03 14:22:51.764389"], ["updated_at", "2023-02-03 14:22:51.764389"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rupert Rath"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.765121"], ["updated_at", "2023-02-03 14:22:51.765121"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.766550"], ["updated_at", "2023-02-03 14:22:51.766550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.775884"], ["updated_at", "2023-02-03 14:22:51.775884"], ["name", "Rodrigo Konopelski II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janae VonRueden"], ["description", "Odio expedita dolorum. Similique pariatur dicta. Perferendis dignissimos impedit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.777251"], ["updated_at", "2023-02-03 14:22:51.777251"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.788948"], ["updated_at", "2023-02-03 14:22:51.788948"], ["name", "Diego Reichel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Augustina Mertz"], ["description", "Aliquid est sed. Ab iusto mollitia. Nihil laboriosam ut."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.790438"], ["updated_at", "2023-02-03 14:22:51.790438"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Lawanda Roberts"], ["description", "Repellat molestiae et. Dolorem quod quia. Quia atque autem."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.803817"], ["updated_at", "2023-02-03 14:22:51.803817"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Kimberley Reinger"], ["created_at", "2023-02-03 14:22:51.804993"], ["updated_at", "2023-02-03 14:22:51.804993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Glenn Bosco"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.805768"], ["updated_at", "2023-02-03 14:22:51.805768"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Austin Doyle DVM"], ["description", "Exercitationem nostrum similique. Nulla dolor a. Debitis officia nam."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.808608"], ["updated_at", "2023-02-03 14:22:51.808608"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Laverna Homenick"], ["created_at", "2023-02-03 14:22:51.809905"], ["updated_at", "2023-02-03 14:22:51.809905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Maurita Murazik"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.810694"], ["updated_at", "2023-02-03 14:22:51.810694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sung Lynch DVM"], ["description", "Quod enim et. Beatae perferendis et. Doloribus aut ut."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.814077"], ["updated_at", "2023-02-03 14:22:51.814077"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Question Create (0.4ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roselee Pollich Sr."], ["created_at", "2023-02-03 14:22:51.815360"], ["updated_at", "2023-02-03 14:22:51.815360"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Johnson McCullough"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.817397"], ["updated_at", "2023-02-03 14:22:51.817397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Magan Bartell"], ["description", "Corrupti similique eum. Repellat sit est. Quo odit quis."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.820612"], ["updated_at", "2023-02-03 14:22:51.820612"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Adella O'Hara"], ["created_at", "2023-02-03 14:22:51.821796"], ["updated_at", "2023-02-03 14:22:51.821796"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joaquin Kertzmann"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.822584"], ["updated_at", "2023-02-03 14:22:51.822584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Hipolito Goldner Sr."], ["correct", 0], ["created_at", "2023-02-03 14:22:51.823360"], ["updated_at", "2023-02-03 14:22:51.823360"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dorcas Dare"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.824075"], ["updated_at", "2023-02-03 14:22:51.824075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Alease Armstrong"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.824833"], ["updated_at", "2023-02-03 14:22:51.824833"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.7ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Silas Rath"], ["description", "Culpa aliquid neque. Ea in accusamus. Adipisci est magni."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.833478"], ["updated_at", "2023-02-03 14:22:51.833478"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rossie Miller"], ["created_at", "2023-02-03 14:22:51.834893"], ["updated_at", "2023-02-03 14:22:51.834893"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Harland Grant"], ["description", "Quia esse vel. Expedita perspiciatis eveniet. Autem aut voluptas."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.837442"], ["updated_at", "2023-02-03 14:22:51.837442"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Willow Hermann CPA"], ["created_at", "2023-02-03 14:22:51.838871"], ["updated_at", "2023-02-03 14:22:51.838871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Buster Spencer I"], ["description", "Totam laborum excepturi. Cum assumenda minima. Quisquam animi debitis."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.842218"], ["updated_at", "2023-02-03 14:22:51.842218"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Long Frami"], ["created_at", "2023-02-03 14:22:51.843332"], ["updated_at", "2023-02-03 14:22:51.843332"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ileana Rempel"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.844155"], ["updated_at", "2023-02-03 14:22:51.844155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Melinda Okuneva"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.845203"], ["updated_at", "2023-02-03 14:22:51.845203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Billie Renner"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.846216"], ["updated_at", "2023-02-03 14:22:51.846216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Joe Stroman"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.847000"], ["updated_at", "2023-02-03 14:22:51.847000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tory Feil"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.847722"], ["updated_at", "2023-02-03 14:22:51.847722"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jewell Greenholt Sr."], ["correct", 0], ["created_at", "2023-02-03 14:22:51.848454"], ["updated_at", "2023-02-03 14:22:51.848454"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brian Balistreri"], ["correct", 0], ["created_at", "2023-02-03 14:22:51.849192"], ["updated_at", "2023-02-03 14:22:51.849192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.7ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Valentine Altenwerth"], ["description", "Amet ipsum rem. Harum asperiores eveniet. Libero nam aut."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.870148"], ["updated_at", "2023-02-03 14:22:51.870148"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deshawn Wintheiser"], ["description", "Commodi excepturi voluptate. Magnam iste earum. Est repellat dolor."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.873716"], ["updated_at", "2023-02-03 14:22:51.873716"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tegan Renner"], ["description", "Molestiae nesciunt non. Vel aut exercitationem. Voluptas quia aut."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.877594"], ["updated_at", "2023-02-03 14:22:51.877594"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chester Yost"], ["created_at", "2023-02-03 14:22:51.878094"], ["updated_at", "2023-02-03 14:22:51.878094"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Santiago Kuvalis"], ["created_at", "2023-02-03 14:22:51.878892"], ["updated_at", "2023-02-03 14:22:51.878892"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amb. Tierra Brekke"], ["created_at", "2023-02-03 14:22:51.879597"], ["updated_at", "2023-02-03 14:22:51.879597"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laraine Wolff"], ["created_at", "2023-02-03 14:22:51.880348"], ["updated_at", "2023-02-03 14:22:51.880348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bobbie Gleichner"], ["created_at", "2023-02-03 14:22:51.881008"], ["updated_at", "2023-02-03 14:22:51.881008"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:22:51.882747"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Eryn Lowe"], ["description", "Optio id facilis. Id aut quisquam. Reiciendis assumenda ut."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.888495"], ["updated_at", "2023-02-03 14:22:51.888495"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rev. Nick Emmerich"], ["description", "Quo itaque et. Officia labore dolores. Dolores accusamus assumenda."], ["attempts_number", 72], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.890257"], ["updated_at", "2023-02-03 14:22:51.890257"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elouise Christiansen DO"], ["created_at", "2023-02-03 14:22:51.890623"], ["updated_at", "2023-02-03 14:22:51.890623"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Hiram Effertz"], ["created_at", "2023-02-03 14:22:51.891326"], ["updated_at", "2023-02-03 14:22:51.891326"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adrianna Koepp"], ["created_at", "2023-02-03 14:22:51.891989"], ["updated_at", "2023-02-03 14:22:51.891989"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jennell Little"], ["created_at", "2023-02-03 14:22:51.892762"], ["updated_at", "2023-02-03 14:22:51.892762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carmina Moen DC"], ["created_at", "2023-02-03 14:22:51.893753"], ["updated_at", "2023-02-03 14:22:51.893753"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ma Trantow"], ["created_at", "2023-02-03 14:22:51.894544"], ["updated_at", "2023-02-03 14:22:51.894544"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Greg Witting"], ["description", "Et eveniet et. Dolorem pariatur odit. Quis sunt ut."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.897227"], ["updated_at", "2023-02-03 14:22:51.897227"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Anita Feest II"], ["description", "Dolores sed cum. Dolorem porro voluptas. Qui qui voluptatem."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.900988"], ["updated_at", "2023-02-03 14:22:51.900988"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.910115"], ["updated_at", "2023-02-03 14:22:51.910115"], ["name", "Marilu Roberts"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.911225"], ["updated_at", "2023-02-03 14:22:51.911225"], ["name", "Marisha Gislason"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Junior Mertz"], ["description", "Ut impedit omnis. Mollitia temporibus explicabo. Velit ea iure."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.913312"], ["updated_at", "2023-02-03 14:22:51.913312"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Valentine Weimann"], ["created_at", "2023-02-03 14:22:51.913753"], ["updated_at", "2023-02-03 14:22:51.913753"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Julio McClure"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.914022"], ["updated_at", "2023-02-03 14:22:51.914022"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fermina Kuphal"], ["created_at", "2023-02-03 14:22:51.915320"], ["updated_at", "2023-02-03 14:22:51.915320"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Yadira Treutel Jr."], ["correct", 1], ["created_at", "2023-02-03 14:22:51.915846"], ["updated_at", "2023-02-03 14:22:51.915846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Adriane Hansen"], ["created_at", "2023-02-03 14:22:51.917242"], ["updated_at", "2023-02-03 14:22:51.917242"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Talia Boehm"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.917678"], ["updated_at", "2023-02-03 14:22:51.917678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Deb Mertz"], ["created_at", "2023-02-03 14:22:51.918943"], ["updated_at", "2023-02-03 14:22:51.918943"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Carlton Hagenes"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.919258"], ["updated_at", "2023-02-03 14:22:51.919258"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.2ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.924961"], ["updated_at", "2023-02-03 14:22:51.924961"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.925364"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:51.926268"], ["updated_at", "2023-02-03 14:22:51.926268"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.926585"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:51.927414"], ["updated_at", "2023-02-03 14:22:51.927414"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.927731"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:51.928493"], ["updated_at", "2023-02-03 14:22:51.928493"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.928776"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.933926"], ["updated_at", "2023-02-03 14:22:51.933926"], ["name", "Mimi Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.935155"], ["updated_at", "2023-02-03 14:22:51.935155"], ["name", "Yolanda Schimmel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Homer Zboncak I"], ["description", "Veritatis est et. Dolore temporibus enim. Quis quis quas."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.937363"], ["updated_at", "2023-02-03 14:22:51.937363"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Judi Hirthe CPA"], ["created_at", "2023-02-03 14:22:51.937818"], ["updated_at", "2023-02-03 14:22:51.937818"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Boris Torp"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.938078"], ["updated_at", "2023-02-03 14:22:51.938078"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Brian Mohr"], ["created_at", "2023-02-03 14:22:51.939267"], ["updated_at", "2023-02-03 14:22:51.939267"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jessie Feil"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.939563"], ["updated_at", "2023-02-03 14:22:51.939563"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Suzy Jenkins"], ["created_at", "2023-02-03 14:22:51.940671"], ["updated_at", "2023-02-03 14:22:51.940671"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Kenneth Rogahn"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.940962"], ["updated_at", "2023-02-03 14:22:51.940962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alisha Walsh"], ["created_at", "2023-02-03 14:22:51.942040"], ["updated_at", "2023-02-03 14:22:51.942040"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Shirlene Rolfson"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.942327"], ["updated_at", "2023-02-03 14:22:51.942327"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.946030"], ["updated_at", "2023-02-03 14:22:51.946030"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.946383"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:51.947184"], ["updated_at", "2023-02-03 14:22:51.947184"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.947467"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:51.948204"], ["updated_at", "2023-02-03 14:22:51.948204"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.948532"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:51.949510"], ["updated_at", "2023-02-03 14:22:51.949510"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.949887"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.953552"], ["updated_at", "2023-02-03 14:22:51.953552"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.953915"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:51.954681"], ["updated_at", "2023-02-03 14:22:51.954681"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.954969"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:51.955695"], ["updated_at", "2023-02-03 14:22:51.955695"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.956013"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:51.956725"], ["updated_at", "2023-02-03 14:22:51.956725"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.957001"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.960123"], ["updated_at", "2023-02-03 14:22:51.960123"], ["name", "Brandy Barrows I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:22:51.961377"], ["updated_at", "2023-02-03 14:22:51.961377"], ["name", "Rev. Ike Cremin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robin Kozey"], ["description", "Aut aliquid atque. Est consequatur dolorem. Et consequatur qui."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.963372"], ["updated_at", "2023-02-03 14:22:51.963372"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dori Denesik"], ["created_at", "2023-02-03 14:22:51.963817"], ["updated_at", "2023-02-03 14:22:51.963817"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Adelia Bechtelar"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.964077"], ["updated_at", "2023-02-03 14:22:51.964077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gordon Zulauf"], ["created_at", "2023-02-03 14:22:51.965233"], ["updated_at", "2023-02-03 14:22:51.965233"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Eldon Gislason"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.965696"], ["updated_at", "2023-02-03 14:22:51.965696"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Courtney Hudson"], ["created_at", "2023-02-03 14:22:51.967071"], ["updated_at", "2023-02-03 14:22:51.967071"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Marielle Rowe"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.967493"], ["updated_at", "2023-02-03 14:22:51.967493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clyde Collins"], ["created_at", "2023-02-03 14:22:51.968774"], ["updated_at", "2023-02-03 14:22:51.968774"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Audria Koss III"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.969073"], ["updated_at", "2023-02-03 14:22:51.969073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kennith Zulauf"], ["description", "Consequuntur assumenda esse. Aperiam veritatis sit. Error placeat excepturi."], ["attempts_number", 53], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:22:51.970913"], ["updated_at", "2023-02-03 14:22:51.970913"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Leonel Homenick"], ["created_at", "2023-02-03 14:22:51.971238"], ["updated_at", "2023-02-03 14:22:51.971238"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Dorsey Bahringer Jr."], ["correct", 1], ["created_at", "2023-02-03 14:22:51.971449"], ["updated_at", "2023-02-03 14:22:51.971449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tess Collier"], ["created_at", "2023-02-03 14:22:51.972511"], ["updated_at", "2023-02-03 14:22:51.972511"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Sylvester Berge JD"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.972769"], ["updated_at", "2023-02-03 14:22:51.972769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Leone Schroeder"], ["created_at", "2023-02-03 14:22:51.973806"], ["updated_at", "2023-02-03 14:22:51.973806"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Ulysses Barrows"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.974061"], ["updated_at", "2023-02-03 14:22:51.974061"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ha Harvey"], ["created_at", "2023-02-03 14:22:51.975070"], ["updated_at", "2023-02-03 14:22:51.975070"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Freeman Grimes"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.975327"], ["updated_at", "2023-02-03 14:22:51.975327"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Terese Osinski"], ["created_at", "2023-02-03 14:22:51.976359"], ["updated_at", "2023-02-03 14:22:51.976359"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Prof. Cruz Cronin"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.976620"], ["updated_at", "2023-02-03 14:22:51.976620"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dewey Hansen"], ["created_at", "2023-02-03 14:22:51.977636"], ["updated_at", "2023-02-03 14:22:51.977636"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Dalene Roob"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.977888"], ["updated_at", "2023-02-03 14:22:51.977888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Roderick Hackett"], ["created_at", "2023-02-03 14:22:51.978911"], ["updated_at", "2023-02-03 14:22:51.978911"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Amb. Crystal Schuster"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.979165"], ["updated_at", "2023-02-03 14:22:51.979165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dulce Casper VM"], ["created_at", "2023-02-03 14:22:51.980280"], ["updated_at", "2023-02-03 14:22:51.980280"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Ervin Pfannerstill DDS"], ["correct", 1], ["created_at", "2023-02-03 14:22:51.980536"], ["updated_at", "2023-02-03 14:22:51.980536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:22:51.984567"], ["updated_at", "2023-02-03 14:22:51.984567"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.984929"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:22:51.985768"], ["updated_at", "2023-02-03 14:22:51.985768"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.986115"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:22:51.986851"], ["updated_at", "2023-02-03 14:22:51.986851"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.987126"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:22:51.987833"], ["updated_at", "2023-02-03 14:22:51.987833"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.988220"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:22:51.993878"], ["updated_at", "2023-02-03 14:22:51.993878"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.994306"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:22:51.995062"], ["updated_at", "2023-02-03 14:22:51.995062"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.995341"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:22:51.996053"], ["updated_at", "2023-02-03 14:22:51.996053"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.996453"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:22:51.997163"], ["updated_at", "2023-02-03 14:22:51.997163"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.997451"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:22:51.998162"], ["updated_at", "2023-02-03 14:22:51.998162"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.998556"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:22:51.999406"], ["updated_at", "2023-02-03 14:22:51.999406"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:51.999753"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:22:52.000733"], ["updated_at", "2023-02-03 14:22:52.000733"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:52.001075"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:22:52.001833"], ["updated_at", "2023-02-03 14:22:52.001833"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:22:52.002117"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.262482"], ["updated_at", "2023-02-03 14:23:58.262482"], ["name", "Rev. Hilario Pfeffer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mr. Rochelle Moen"], ["description", "Ratione sit corporis. Autem ut eveniet. Cupiditate est harum."], ["attempts_number", 19], ["created_at", "2023-02-03 14:23:58.269244"], ["updated_at", "2023-02-03 14:23:58.269244"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Henry Kilback"], ["created_at", "2023-02-03 14:23:58.283289"], ["updated_at", "2023-02-03 14:23:58.283289"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gov. Elroy Kuhlman"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.286901"], ["updated_at", "2023-02-03 14:23:58.286901"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.290695"], ["updated_at", "2023-02-03 14:23:58.290695"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.306906"], ["updated_at", "2023-02-03 14:23:58.306906"], ["name", "Reita Heller"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Veta Rosenbaum"], ["description", "Ipsum ea molestiae. Veritatis deserunt id. Doloribus qui numquam."], ["attempts_number", 96], ["created_at", "2023-02-03 14:23:58.308548"], ["updated_at", "2023-02-03 14:23:58.308548"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Prince Balistreri"], ["created_at", "2023-02-03 14:23:58.311600"], ["updated_at", "2023-02-03 14:23:58.311600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Wayne O'Connell"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.312480"], ["updated_at", "2023-02-03 14:23:58.312480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.313605"], ["updated_at", "2023-02-03 14:23:58.313605"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.315641"], ["updated_at", "2023-02-03 14:23:58.315641"], ["name", "Lane Marquardt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ariel Johns"], ["description", "Voluptatem nisi iste. Aut pariatur expedita. In porro eius."], ["attempts_number", 44], ["created_at", "2023-02-03 14:23:58.316952"], ["updated_at", "2023-02-03 14:23:58.316952"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jessika Maggio"], ["created_at", "2023-02-03 14:23:58.318974"], ["updated_at", "2023-02-03 14:23:58.318974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Fr. Hilario Konopelski"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.319771"], ["updated_at", "2023-02-03 14:23:58.319771"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.320748"], ["updated_at", "2023-02-03 14:23:58.320748"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.322855"], ["updated_at", "2023-02-03 14:23:58.322855"], ["name", "Lannie Wisoky"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Glenn Lowe"], ["description", "Iusto totam molestias. Ut ea nisi. Vitae repudiandae error."], ["attempts_number", 35], ["created_at", "2023-02-03 14:23:58.324622"], ["updated_at", "2023-02-03 14:23:58.324622"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lila Runolfsdottir DC"], ["created_at", "2023-02-03 14:23:58.327515"], ["updated_at", "2023-02-03 14:23:58.327515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Damion Farrell"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.328449"], ["updated_at", "2023-02-03 14:23:58.328449"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.329591"], ["updated_at", "2023-02-03 14:23:58.329591"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.338727"], ["updated_at", "2023-02-03 14:23:58.338727"], ["name", "Raymundo Fisher"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Fr. Edmundo Nolan"], ["description", "Vel quam ullam. Officia ut excepturi. Ducimus labore nesciunt."], ["attempts_number", 5], ["created_at", "2023-02-03 14:23:58.341243"], ["updated_at", "2023-02-03 14:23:58.341243"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.352469"], ["updated_at", "2023-02-03 14:23:58.352469"], ["name", "Mauricio Boyle"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Doyle Maggio MD"], ["description", "Voluptates quia aut. Voluptatum aut ea. Sit tempora iste."], ["attempts_number", 5], ["created_at", "2023-02-03 14:23:58.353977"], ["updated_at", "2023-02-03 14:23:58.353977"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Valentin Robel"], ["description", "Modi et beatae. Velit reprehenderit vel. Tempora velit omnis."], ["attempts_number", 15], ["created_at", "2023-02-03 14:23:58.380298"], ["updated_at", "2023-02-03 14:23:58.380298"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marceline Lockman"], ["created_at", "2023-02-03 14:23:58.381547"], ["updated_at", "2023-02-03 14:23:58.381547"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Kenton Grant"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.382350"], ["updated_at", "2023-02-03 14:23:58.382350"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Msgr. Hal Weissnat"], ["description", "Excepturi eius quo. Ab sed voluptate. Recusandae labore enim."], ["attempts_number", 71], ["created_at", "2023-02-03 14:23:58.384783"], ["updated_at", "2023-02-03 14:23:58.384783"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alonso Kunze"], ["created_at", "2023-02-03 14:23:58.386317"], ["updated_at", "2023-02-03 14:23:58.386317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Deloras Lakin Esq."], ["correct", 0], ["created_at", "2023-02-03 14:23:58.387161"], ["updated_at", "2023-02-03 14:23:58.387161"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Pamelia Boehm"], ["description", "Et voluptates magni. Molestias omnis corrupti. Asperiores facilis est."], ["attempts_number", 10], ["created_at", "2023-02-03 14:23:58.390686"], ["updated_at", "2023-02-03 14:23:58.390686"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lucy Rempel"], ["created_at", "2023-02-03 14:23:58.392430"], ["updated_at", "2023-02-03 14:23:58.392430"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Slyvia Terry"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.393779"], ["updated_at", "2023-02-03 14:23:58.393779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Meghan Jakubowski"], ["description", "Nobis consequatur maiores. Aut atque quae. Impedit quia enim."], ["attempts_number", 80], ["created_at", "2023-02-03 14:23:58.396839"], ["updated_at", "2023-02-03 14:23:58.396839"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Darell Ward"], ["created_at", "2023-02-03 14:23:58.398062"], ["updated_at", "2023-02-03 14:23:58.398062"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Danette Rau"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.398854"], ["updated_at", "2023-02-03 14:23:58.398854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Winston Quitzon"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.399735"], ["updated_at", "2023-02-03 14:23:58.399735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lashell Fisher"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.400578"], ["updated_at", "2023-02-03 14:23:58.400578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Lydia Bernhard"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.401380"], ["updated_at", "2023-02-03 14:23:58.401380"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mikki Reichert VM"], ["description", "Esse beatae modi. Pariatur reprehenderit ut. Molestiae perspiciatis voluptate."], ["attempts_number", 10], ["created_at", "2023-02-03 14:23:58.408694"], ["updated_at", "2023-02-03 14:23:58.408694"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Murray Terry VM"], ["created_at", "2023-02-03 14:23:58.410245"], ["updated_at", "2023-02-03 14:23:58.410245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Julian Bogan"], ["description", "Et in eligendi. Et ab recusandae. Explicabo non nam."], ["attempts_number", 35], ["created_at", "2023-02-03 14:23:58.412960"], ["updated_at", "2023-02-03 14:23:58.412960"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Georgianna Hermiston"], ["created_at", "2023-02-03 14:23:58.414216"], ["updated_at", "2023-02-03 14:23:58.414216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Allie Carter"], ["description", "In excepturi animi. Quaerat ea quia. Deserunt at quia."], ["attempts_number", 19], ["created_at", "2023-02-03 14:23:58.417567"], ["updated_at", "2023-02-03 14:23:58.417567"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tatyana Ritchie IV"], ["created_at", "2023-02-03 14:23:58.418932"], ["updated_at", "2023-02-03 14:23:58.418932"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Frank Schaden"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.420381"], ["updated_at", "2023-02-03 14:23:58.420381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rev. Marcel Renner"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.421511"], ["updated_at", "2023-02-03 14:23:58.421511"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Classie Zboncak"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.422346"], ["updated_at", "2023-02-03 14:23:58.422346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Ammie Smith"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.423168"], ["updated_at", "2023-02-03 14:23:58.423168"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Misti Keebler"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.423969"], ["updated_at", "2023-02-03 14:23:58.423969"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "German Marquardt DDS"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.425061"], ["updated_at", "2023-02-03 14:23:58.425061"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Maurita O'Hara"], ["correct", 0], ["created_at", "2023-02-03 14:23:58.426119"], ["updated_at", "2023-02-03 14:23:58.426119"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kacy Bashirian"], ["description", "Ea minus qui. Quod voluptatem quos. Aperiam qui ullam."], ["attempts_number", 84], ["created_at", "2023-02-03 14:23:58.437057"], ["updated_at", "2023-02-03 14:23:58.437057"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Khalilah Reichel"], ["description", "Corporis exercitationem ea. Dolorum totam sed. Et laboriosam et."], ["attempts_number", 36], ["created_at", "2023-02-03 14:23:58.440524"], ["updated_at", "2023-02-03 14:23:58.440524"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "The Hon. Ferne Hartmann"], ["description", "Non beatae impedit. Neque ipsum distinctio. Accusantium occaecati cum."], ["attempts_number", 42], ["created_at", "2023-02-03 14:23:58.443535"], ["updated_at", "2023-02-03 14:23:58.443535"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nia Schuppe"], ["created_at", "2023-02-03 14:23:58.444045"], ["updated_at", "2023-02-03 14:23:58.444045"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosalina Muller"], ["created_at", "2023-02-03 14:23:58.444830"], ["updated_at", "2023-02-03 14:23:58.444830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dario Blanda"], ["created_at", "2023-02-03 14:23:58.445562"], ["updated_at", "2023-02-03 14:23:58.445562"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.3ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stephine Johnston IV"], ["created_at", "2023-02-03 14:23:58.446385"], ["updated_at", "2023-02-03 14:23:58.446385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Edward Powlowski PhD"], ["created_at", "2023-02-03 14:23:58.448081"], ["updated_at", "2023-02-03 14:23:58.448081"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:23:58.449547"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jc Wyman"], ["description", "Nesciunt modi id. Et molestias eaque. Consequatur quod dolores."], ["attempts_number", 28], ["created_at", "2023-02-03 14:23:58.453735"], ["updated_at", "2023-02-03 14:23:58.453735"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marisa Marks Sr."], ["description", "Illo ut vel. Sed omnis inventore. Facilis aut tenetur."], ["attempts_number", 68], ["created_at", "2023-02-03 14:23:58.456534"], ["updated_at", "2023-02-03 14:23:58.456534"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mozell Hegmann"], ["created_at", "2023-02-03 14:23:58.457280"], ["updated_at", "2023-02-03 14:23:58.457280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nadene Kling"], ["created_at", "2023-02-03 14:23:58.458325"], ["updated_at", "2023-02-03 14:23:58.458325"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "William Lueilwitz CPA"], ["created_at", "2023-02-03 14:23:58.459798"], ["updated_at", "2023-02-03 14:23:58.459798"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alvin Larson"], ["created_at", "2023-02-03 14:23:58.460622"], ["updated_at", "2023-02-03 14:23:58.460622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chance Lindgren"], ["created_at", "2023-02-03 14:23:58.461398"], ["updated_at", "2023-02-03 14:23:58.461398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sammy Feest"], ["created_at", "2023-02-03 14:23:58.462114"], ["updated_at", "2023-02-03 14:23:58.462114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ismael Prohaska"], ["description", "Rerum quia aliquid. Deleniti in optio. Aut incidunt vel."], ["attempts_number", 98], ["created_at", "2023-02-03 14:23:58.464863"], ["updated_at", "2023-02-03 14:23:58.464863"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kelly Macejkovic"], ["description", "Aut consequatur maxime. Minus nostrum cum. Deserunt qui ipsa."], ["attempts_number", 73], ["created_at", "2023-02-03 14:23:58.469001"], ["updated_at", "2023-02-03 14:23:58.469001"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.478126"], ["updated_at", "2023-02-03 14:23:58.478126"], ["name", "Odilia Kris"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.479166"], ["updated_at", "2023-02-03 14:23:58.479166"], ["name", "Meri Kuhn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marjorie Powlowski"], ["description", "Deleniti voluptas illum. Non et earum. Illum alias excepturi."], ["attempts_number", 50], ["created_at", "2023-02-03 14:23:58.481102"], ["updated_at", "2023-02-03 14:23:58.481102"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shirly Lemke"], ["created_at", "2023-02-03 14:23:58.481520"], ["updated_at", "2023-02-03 14:23:58.481520"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Buck Schamberger"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.481813"], ["updated_at", "2023-02-03 14:23:58.481813"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Russel Hoppe"], ["created_at", "2023-02-03 14:23:58.483116"], ["updated_at", "2023-02-03 14:23:58.483116"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Mauro Brown"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.483450"], ["updated_at", "2023-02-03 14:23:58.483450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fabian Heller"], ["created_at", "2023-02-03 14:23:58.484928"], ["updated_at", "2023-02-03 14:23:58.484928"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Krystle Schiller"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.485420"], ["updated_at", "2023-02-03 14:23:58.485420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gene Hegmann II"], ["created_at", "2023-02-03 14:23:58.486751"], ["updated_at", "2023-02-03 14:23:58.486751"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rodger Corwin PhD"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.487097"], ["updated_at", "2023-02-03 14:23:58.487097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.492342"], ["updated_at", "2023-02-03 14:23:58.492342"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.492884"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:23:58.494080"], ["updated_at", "2023-02-03 14:23:58.494080"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.494412"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:23:58.495184"], ["updated_at", "2023-02-03 14:23:58.495184"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.495512"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:23:58.496329"], ["updated_at", "2023-02-03 14:23:58.496329"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.496651"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.4ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.502009"], ["updated_at", "2023-02-03 14:23:58.502009"], ["name", "Lou Reinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.503618"], ["updated_at", "2023-02-03 14:23:58.503618"], ["name", "Miss Whitley McCullough"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rosalina Conroy"], ["description", "Nihil nihil sed. Fuga ut molestiae. Id sint quia."], ["attempts_number", 97], ["created_at", "2023-02-03 14:23:58.505711"], ["updated_at", "2023-02-03 14:23:58.505711"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Zack Waters"], ["created_at", "2023-02-03 14:23:58.506267"], ["updated_at", "2023-02-03 14:23:58.506267"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Darrell Towne III"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.506578"], ["updated_at", "2023-02-03 14:23:58.506578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlena Kling"], ["created_at", "2023-02-03 14:23:58.508187"], ["updated_at", "2023-02-03 14:23:58.508187"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Lynn Kunze"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.508815"], ["updated_at", "2023-02-03 14:23:58.508815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tyson Erdman"], ["created_at", "2023-02-03 14:23:58.510394"], ["updated_at", "2023-02-03 14:23:58.510394"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Barbara Robel"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.510772"], ["updated_at", "2023-02-03 14:23:58.510772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Shaunte Cronin"], ["created_at", "2023-02-03 14:23:58.511965"], ["updated_at", "2023-02-03 14:23:58.511965"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Wilbert Hilpert"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.512276"], ["updated_at", "2023-02-03 14:23:58.512276"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.516147"], ["updated_at", "2023-02-03 14:23:58.516147"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.516517"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:23:58.517481"], ["updated_at", "2023-02-03 14:23:58.517481"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.517801"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:23:58.518565"], ["updated_at", "2023-02-03 14:23:58.518565"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.518885"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:23:58.519745"], ["updated_at", "2023-02-03 14:23:58.519745"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.520064"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.523761"], ["updated_at", "2023-02-03 14:23:58.523761"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.524131"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:23:58.525069"], ["updated_at", "2023-02-03 14:23:58.525069"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.525393"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:23:58.526315"], ["updated_at", "2023-02-03 14:23:58.526315"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.526633"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:23:58.527399"], ["updated_at", "2023-02-03 14:23:58.527399"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.527842"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (2.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.531131"], ["updated_at", "2023-02-03 14:23:58.531131"], ["name", "Rayford Wisoky"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:23:58.534528"], ["updated_at", "2023-02-03 14:23:58.534528"], ["name", "Percy Pfeffer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rachell Cole"], ["description", "Est ea quis. Nesciunt aliquam ea. Quia veniam ad."], ["attempts_number", 66], ["created_at", "2023-02-03 14:23:58.536912"], ["updated_at", "2023-02-03 14:23:58.536912"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Evalyn Swift"], ["created_at", "2023-02-03 14:23:58.537351"], ["updated_at", "2023-02-03 14:23:58.537351"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Wilmer Barrows VM"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.537657"], ["updated_at", "2023-02-03 14:23:58.537657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gia Ferry"], ["created_at", "2023-02-03 14:23:58.539079"], ["updated_at", "2023-02-03 14:23:58.539079"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Noble Casper"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.539419"], ["updated_at", "2023-02-03 14:23:58.539419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Florentino Vandervort Esq."], ["created_at", "2023-02-03 14:23:58.541001"], ["updated_at", "2023-02-03 14:23:58.541001"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ms. Ami Dickinson"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.541578"], ["updated_at", "2023-02-03 14:23:58.541578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cari Grimes"], ["created_at", "2023-02-03 14:23:58.543213"], ["updated_at", "2023-02-03 14:23:58.543213"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Randee O'Conner"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.543587"], ["updated_at", "2023-02-03 14:23:58.543587"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gov. Mauricio Swift"], ["description", "Sed ut voluptatem. Molestiae illo est. Minima consequuntur sit."], ["attempts_number", 81], ["created_at", "2023-02-03 14:23:58.545768"], ["updated_at", "2023-02-03 14:23:58.545768"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tameka Gulgowski"], ["created_at", "2023-02-03 14:23:58.546134"], ["updated_at", "2023-02-03 14:23:58.546134"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Sammie Pouros"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.546388"], ["updated_at", "2023-02-03 14:23:58.546388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Stacey Rempel"], ["created_at", "2023-02-03 14:23:58.547660"], ["updated_at", "2023-02-03 14:23:58.547660"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Wilbur Wintheiser"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.547975"], ["updated_at", "2023-02-03 14:23:58.547975"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Donny Morissette"], ["created_at", "2023-02-03 14:23:58.549189"], ["updated_at", "2023-02-03 14:23:58.549189"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Rep. Oswaldo Kuhlman"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.549493"], ["updated_at", "2023-02-03 14:23:58.549493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Gabriel King"], ["created_at", "2023-02-03 14:23:58.550725"], ["updated_at", "2023-02-03 14:23:58.550725"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Fr. Charis Grimes"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.551032"], ["updated_at", "2023-02-03 14:23:58.551032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dominique Wyman"], ["created_at", "2023-02-03 14:23:58.552269"], ["updated_at", "2023-02-03 14:23:58.552269"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Maire Hermiston"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.552572"], ["updated_at", "2023-02-03 14:23:58.552572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Tony Langworth"], ["created_at", "2023-02-03 14:23:58.553728"], ["updated_at", "2023-02-03 14:23:58.553728"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Sherita Mann"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.554029"], ["updated_at", "2023-02-03 14:23:58.554029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Horacio Torp"], ["created_at", "2023-02-03 14:23:58.555311"], ["updated_at", "2023-02-03 14:23:58.555311"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Gov. Madie Hettinger"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.555612"], ["updated_at", "2023-02-03 14:23:58.555612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sherri Carroll"], ["created_at", "2023-02-03 14:23:58.556878"], ["updated_at", "2023-02-03 14:23:58.556878"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Glayds Dare"], ["correct", 1], ["created_at", "2023-02-03 14:23:58.557240"], ["updated_at", "2023-02-03 14:23:58.557240"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:23:58.561300"], ["updated_at", "2023-02-03 14:23:58.561300"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.561655"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:23:58.562618"], ["updated_at", "2023-02-03 14:23:58.562618"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.562940"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:23:58.563709"], ["updated_at", "2023-02-03 14:23:58.563709"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.566491"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:23:58.567564"], ["updated_at", "2023-02-03 14:23:58.567564"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.567913"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:23:58.574027"], ["updated_at", "2023-02-03 14:23:58.574027"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.574370"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:23:58.575265"], ["updated_at", "2023-02-03 14:23:58.575265"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.575581"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:23:58.576337"], ["updated_at", "2023-02-03 14:23:58.576337"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.576645"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:23:58.577477"], ["updated_at", "2023-02-03 14:23:58.577477"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.577784"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:23:58.578526"], ["updated_at", "2023-02-03 14:23:58.578526"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.578832"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:23:58.579631"], ["updated_at", "2023-02-03 14:23:58.579631"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.579938"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:23:58.580671"], ["updated_at", "2023-02-03 14:23:58.580671"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.580976"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:23:58.581812"], ["updated_at", "2023-02-03 14:23:58.581812"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:23:58.582121"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.6ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.084566"], ["updated_at", "2023-02-03 14:24:01.084566"], ["name", "Dia MacGyver"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mason Bosco CPA"], ["description", "Magnam quibusdam nulla. Error autem omnis. Voluptas mollitia ipsum."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.089813"], ["updated_at", "2023-02-03 14:24:01.089813"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (4.9ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rheba Graham"], ["created_at", "2023-02-03 14:24:01.108378"], ["updated_at", "2023-02-03 14:24:01.108378"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brigette Bergstrom"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.111232"], ["updated_at", "2023-02-03 14:24:01.111232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.114166"], ["updated_at", "2023-02-03 14:24:01.114166"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.128571"], ["updated_at", "2023-02-03 14:24:01.128571"], ["name", "Carrol Conroy"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dan Towne"], ["description", "Odio delectus illum. Deserunt amet voluptatem. Consequuntur eligendi consectetur."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.130071"], ["updated_at", "2023-02-03 14:24:01.130071"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Librada Greenholt"], ["created_at", "2023-02-03 14:24:01.132800"], ["updated_at", "2023-02-03 14:24:01.132800"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Brandon Schowalter V"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.133691"], ["updated_at", "2023-02-03 14:24:01.133691"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.134777"], ["updated_at", "2023-02-03 14:24:01.134777"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.136827"], ["updated_at", "2023-02-03 14:24:01.136827"], ["name", "Ms. Jeramy Jones"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Garry Roberts"], ["description", "Minima fugit velit. Dicta at repellendus. Incidunt provident tenetur."], ["attempts_number", 80], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.138107"], ["updated_at", "2023-02-03 14:24:01.138107"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kris Kihn"], ["created_at", "2023-02-03 14:24:01.140185"], ["updated_at", "2023-02-03 14:24:01.140185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Howard Hills"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.141058"], ["updated_at", "2023-02-03 14:24:01.141058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.142484"], ["updated_at", "2023-02-03 14:24:01.142484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.145014"], ["updated_at", "2023-02-03 14:24:01.145014"], ["name", "Dale Kessler Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Shantae Mante"], ["description", "Molestiae rerum aut. Sequi repellat non. Explicabo rem sed."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.146397"], ["updated_at", "2023-02-03 14:24:01.146397"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Yung Will"], ["created_at", "2023-02-03 14:24:01.148550"], ["updated_at", "2023-02-03 14:24:01.148550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lynda McLaughlin LLD"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.149309"], ["updated_at", "2023-02-03 14:24:01.149309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.150285"], ["updated_at", "2023-02-03 14:24:01.150285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.159239"], ["updated_at", "2023-02-03 14:24:01.159239"], ["name", "Esmeralda Rau"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Romaine Romaguera"], ["description", "Qui saepe eum. Illo facilis voluptas. Voluptatibus et reprehenderit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.160860"], ["updated_at", "2023-02-03 14:24:01.160860"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.170614"], ["updated_at", "2023-02-03 14:24:01.170614"], ["name", "Laine Bruen"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Winston Heidenreich"], ["description", "Impedit consequatur corrupti. Unde et adipisci. Minus ex facere."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.172320"], ["updated_at", "2023-02-03 14:24:01.172320"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (1.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Dean Cassin"], ["description", "Neque aut dolorum. Est consequatur excepturi. Sunt natus delectus."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.189621"], ["updated_at", "2023-02-03 14:24:01.189621"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Oswaldo Rolfson"], ["created_at", "2023-02-03 14:24:01.191113"], ["updated_at", "2023-02-03 14:24:01.191113"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bobbie Boehm"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.192531"], ["updated_at", "2023-02-03 14:24:01.192531"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nery Farrell Esq."], ["description", "Dolorem reiciendis ipsum. Ut quas ad. Quasi praesentium et."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.194838"], ["updated_at", "2023-02-03 14:24:01.194838"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jorge Stark DVM"], ["created_at", "2023-02-03 14:24:01.195974"], ["updated_at", "2023-02-03 14:24:01.195974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Delmar Hammes DO"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.196789"], ["updated_at", "2023-02-03 14:24:01.196789"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Katy Lindgren"], ["description", "Similique corrupti voluptatem. Necessitatibus culpa libero. Est assumenda odit."], ["attempts_number", 16], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.200538"], ["updated_at", "2023-02-03 14:24:01.200538"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Sang Shanahan"], ["created_at", "2023-02-03 14:24:01.201739"], ["updated_at", "2023-02-03 14:24:01.201739"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Teddy Hilpert DC"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.202533"], ["updated_at", "2023-02-03 14:24:01.202533"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Annamaria McClure"], ["description", "Sint omnis et. Neque sunt voluptatem. Quo consequatur provident."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.204943"], ["updated_at", "2023-02-03 14:24:01.204943"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlos Fadel MD"], ["created_at", "2023-02-03 14:24:01.206459"], ["updated_at", "2023-02-03 14:24:01.206459"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Roseann Grimes"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.207485"], ["updated_at", "2023-02-03 14:24:01.207485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Odell Bartell MD"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.208443"], ["updated_at", "2023-02-03 14:24:01.208443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Man Rau JD"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.209610"], ["updated_at", "2023-02-03 14:24:01.209610"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Shon Swift"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.210657"], ["updated_at", "2023-02-03 14:24:01.210657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edwin O'Connell"], ["description", "Consequatur quia ut. Provident id aut. Et doloremque earum."], ["attempts_number", 35], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.217579"], ["updated_at", "2023-02-03 14:24:01.217579"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Fritz Wolff"], ["created_at", "2023-02-03 14:24:01.218737"], ["updated_at", "2023-02-03 14:24:01.218737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sheldon McKenzie"], ["description", "Doloribus officia quia. Velit est impedit. Corrupti porro vel."], ["attempts_number", 14], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.220434"], ["updated_at", "2023-02-03 14:24:01.220434"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Randell Wilderman"], ["created_at", "2023-02-03 14:24:01.221433"], ["updated_at", "2023-02-03 14:24:01.221433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kraig Rogahn"], ["description", "Rerum ut dignissimos. Maxime rerum explicabo. Magni expedita assumenda."], ["attempts_number", 56], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.225755"], ["updated_at", "2023-02-03 14:24:01.225755"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edna Wiza JD"], ["created_at", "2023-02-03 14:24:01.227438"], ["updated_at", "2023-02-03 14:24:01.227438"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lonny Pollich"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.228278"], ["updated_at", "2023-02-03 14:24:01.228278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Faviola Heaney II"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.229055"], ["updated_at", "2023-02-03 14:24:01.229055"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Aide Flatley"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.229775"], ["updated_at", "2023-02-03 14:24:01.229775"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Chere Armstrong"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.230577"], ["updated_at", "2023-02-03 14:24:01.230577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Amado Grady"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.231490"], ["updated_at", "2023-02-03 14:24:01.231490"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Freeman McGlynn"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.232450"], ["updated_at", "2023-02-03 14:24:01.232450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Basil Beier"], ["correct", 0], ["created_at", "2023-02-03 14:24:01.233256"], ["updated_at", "2023-02-03 14:24:01.233256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.2ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Oneida Koss"], ["description", "Voluptatem distinctio atque. Ea nihil dolor. Commodi dolorum a."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.254440"], ["updated_at", "2023-02-03 14:24:01.254440"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mrs. Rena Hills"], ["description", "Quia a esse. Est cumque eum. Eveniet quasi eum."], ["attempts_number", 42], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.256700"], ["updated_at", "2023-02-03 14:24:01.256700"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Demetra Wuckert"], ["description", "Eaque nesciunt iste. Quis odio possimus. Molestiae quo aut."], ["attempts_number", 52], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.259918"], ["updated_at", "2023-02-03 14:24:01.259918"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sherrie Ledner"], ["created_at", "2023-02-03 14:24:01.260504"], ["updated_at", "2023-02-03 14:24:01.260504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alesia Erdman"], ["created_at", "2023-02-03 14:24:01.261367"], ["updated_at", "2023-02-03 14:24:01.261367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mariana Daniel DVM"], ["created_at", "2023-02-03 14:24:01.262207"], ["updated_at", "2023-02-03 14:24:01.262207"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Eusebio Klein MD"], ["created_at", "2023-02-03 14:24:01.263137"], ["updated_at", "2023-02-03 14:24:01.263137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tennie Prohaska"], ["created_at", "2023-02-03 14:24:01.263924"], ["updated_at", "2023-02-03 14:24:01.263924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.0ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:24:01.265581"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robt Muller Sr."], ["description", "Rerum iusto praesentium. Non consequatur sed. Excepturi sint quis."], ["attempts_number", 59], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.269720"], ["updated_at", "2023-02-03 14:24:01.269720"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gregorio Wilderman"], ["description", "Molestias voluptatem non. Aut hic eos. Eos et id."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.272117"], ["updated_at", "2023-02-03 14:24:01.272117"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Domenic Dickens DO"], ["created_at", "2023-02-03 14:24:01.272546"], ["updated_at", "2023-02-03 14:24:01.272546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Herman Grady"], ["created_at", "2023-02-03 14:24:01.273284"], ["updated_at", "2023-02-03 14:24:01.273284"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Marinda Abbott"], ["created_at", "2023-02-03 14:24:01.274142"], ["updated_at", "2023-02-03 14:24:01.274142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Lavette Predovic"], ["created_at", "2023-02-03 14:24:01.274993"], ["updated_at", "2023-02-03 14:24:01.274993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Eloisa Langworth"], ["created_at", "2023-02-03 14:24:01.275926"], ["updated_at", "2023-02-03 14:24:01.275926"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Andy Murazik"], ["created_at", "2023-02-03 14:24:01.276668"], ["updated_at", "2023-02-03 14:24:01.276668"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rosina Carter"], ["description", "Dolores labore ea. Corporis repellendus mollitia. Reprehenderit beatae dolores."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.279309"], ["updated_at", "2023-02-03 14:24:01.279309"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nolan Weber"], ["description", "Molestiae quasi labore. Qui accusantium magni. Tempora harum nesciunt."], ["attempts_number", 18], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.283212"], ["updated_at", "2023-02-03 14:24:01.283212"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.292344"], ["updated_at", "2023-02-03 14:24:01.292344"], ["name", "Kala Jenkins"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.293484"], ["updated_at", "2023-02-03 14:24:01.293484"], ["name", "Kaila Waters"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Msgr. Denver Quigley"], ["description", "Sit quo aut. Saepe explicabo quis. Et sunt quidem."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.295335"], ["updated_at", "2023-02-03 14:24:01.295335"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clair Cruickshank"], ["created_at", "2023-02-03 14:24:01.295728"], ["updated_at", "2023-02-03 14:24:01.295728"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ms. Salvatore Medhurst"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.296007"], ["updated_at", "2023-02-03 14:24:01.296007"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alvin Rau"], ["created_at", "2023-02-03 14:24:01.297464"], ["updated_at", "2023-02-03 14:24:01.297464"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Katrice Durgan Esq."], ["correct", 1], ["created_at", "2023-02-03 14:24:01.297890"], ["updated_at", "2023-02-03 14:24:01.297890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Annis Swift"], ["created_at", "2023-02-03 14:24:01.299100"], ["updated_at", "2023-02-03 14:24:01.299100"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Asa Predovic"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.299412"], ["updated_at", "2023-02-03 14:24:01.299412"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Les Rohan"], ["created_at", "2023-02-03 14:24:01.300533"], ["updated_at", "2023-02-03 14:24:01.300533"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Ethelene Senger"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.300832"], ["updated_at", "2023-02-03 14:24:01.300832"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.305475"], ["updated_at", "2023-02-03 14:24:01.305475"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.305825"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:24:01.306748"], ["updated_at", "2023-02-03 14:24:01.306748"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.307137"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:24:01.308115"], ["updated_at", "2023-02-03 14:24:01.308115"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.308494"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:24:01.309343"], ["updated_at", "2023-02-03 14:24:01.309343"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.309653"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.314633"], ["updated_at", "2023-02-03 14:24:01.314633"], ["name", "Rico Pfannerstill"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.315935"], ["updated_at", "2023-02-03 14:24:01.315935"], ["name", "Minh Funk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Meda O'Keefe"], ["description", "Fuga nihil eum. Id odit nesciunt. Inventore aut ut."], ["attempts_number", 36], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.317783"], ["updated_at", "2023-02-03 14:24:01.317783"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jinny Hamill"], ["created_at", "2023-02-03 14:24:01.318177"], ["updated_at", "2023-02-03 14:24:01.318177"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "William Watsica"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.318437"], ["updated_at", "2023-02-03 14:24:01.318437"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jeromy Olson"], ["created_at", "2023-02-03 14:24:01.319643"], ["updated_at", "2023-02-03 14:24:01.319643"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Oscar Douglas I"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.319940"], ["updated_at", "2023-02-03 14:24:01.319940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rep. Kellye Dickens"], ["created_at", "2023-02-03 14:24:01.321070"], ["updated_at", "2023-02-03 14:24:01.321070"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Dann Nitzsche"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.321364"], ["updated_at", "2023-02-03 14:24:01.321364"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ted Lakin"], ["created_at", "2023-02-03 14:24:01.322517"], ["updated_at", "2023-02-03 14:24:01.322517"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Robert Mante DC"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.322822"], ["updated_at", "2023-02-03 14:24:01.322822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.327381"], ["updated_at", "2023-02-03 14:24:01.327381"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.327815"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:24:01.328693"], ["updated_at", "2023-02-03 14:24:01.328693"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.329000"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:24:01.329751"], ["updated_at", "2023-02-03 14:24:01.329751"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.330087"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:24:01.330840"], ["updated_at", "2023-02-03 14:24:01.330840"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.331130"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.334329"], ["updated_at", "2023-02-03 14:24:01.334329"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.334653"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:24:01.335434"], ["updated_at", "2023-02-03 14:24:01.335434"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.335723"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:24:01.336445"], ["updated_at", "2023-02-03 14:24:01.336445"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.336760"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:24:01.337493"], ["updated_at", "2023-02-03 14:24:01.337493"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.337775"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.341103"], ["updated_at", "2023-02-03 14:24:01.341103"], ["name", "Gov. Miles Rohan"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:24:01.342794"], ["updated_at", "2023-02-03 14:24:01.342794"], ["name", "Kira Orn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Raymonde Marquardt"], ["description", "Iusto quo voluptas. Iste doloremque est. Non doloribus aperiam."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.344879"], ["updated_at", "2023-02-03 14:24:01.344879"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carlie Treutel"], ["created_at", "2023-02-03 14:24:01.345299"], ["updated_at", "2023-02-03 14:24:01.345299"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Frankie Blanda"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.345639"], ["updated_at", "2023-02-03 14:24:01.345639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donte Swift"], ["created_at", "2023-02-03 14:24:01.346823"], ["updated_at", "2023-02-03 14:24:01.346823"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Lila Olson"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.347168"], ["updated_at", "2023-02-03 14:24:01.347168"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Lucas Feeney"], ["created_at", "2023-02-03 14:24:01.348344"], ["updated_at", "2023-02-03 14:24:01.348344"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Arnulfo Hessel DC"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.348641"], ["updated_at", "2023-02-03 14:24:01.348641"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lacy Kunde"], ["created_at", "2023-02-03 14:24:01.349782"], ["updated_at", "2023-02-03 14:24:01.349782"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rep. Amos Jacobs"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.350084"], ["updated_at", "2023-02-03 14:24:01.350084"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Rep. Bobbie Feest"], ["description", "Nobis nesciunt soluta. Necessitatibus eius corporis. Quaerat facere consectetur."], ["attempts_number", 77], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:24:01.352001"], ["updated_at", "2023-02-03 14:24:01.352001"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Lorna Cassin"], ["created_at", "2023-02-03 14:24:01.352323"], ["updated_at", "2023-02-03 14:24:01.352323"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Lawrence Roob III"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.352538"], ["updated_at", "2023-02-03 14:24:01.352538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Josh Wolff"], ["created_at", "2023-02-03 14:24:01.353601"], ["updated_at", "2023-02-03 14:24:01.353601"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Aja Corwin"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.353871"], ["updated_at", "2023-02-03 14:24:01.353871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cristen Rowe"], ["created_at", "2023-02-03 14:24:01.354941"], ["updated_at", "2023-02-03 14:24:01.354941"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Kristina Emmerich Esq."], ["correct", 1], ["created_at", "2023-02-03 14:24:01.355209"], ["updated_at", "2023-02-03 14:24:01.355209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Stewart Borer"], ["created_at", "2023-02-03 14:24:01.356266"], ["updated_at", "2023-02-03 14:24:01.356266"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Nevada Cummings"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.356554"], ["updated_at", "2023-02-03 14:24:01.356554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Billy Kutch"], ["created_at", "2023-02-03 14:24:01.357748"], ["updated_at", "2023-02-03 14:24:01.357748"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Johnny Steuber II"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.358070"], ["updated_at", "2023-02-03 14:24:01.358070"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Theressa Weissnat"], ["created_at", "2023-02-03 14:24:01.359378"], ["updated_at", "2023-02-03 14:24:01.359378"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Kelli Feeney"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.359761"], ["updated_at", "2023-02-03 14:24:01.359761"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Conrad Moore"], ["created_at", "2023-02-03 14:24:01.360898"], ["updated_at", "2023-02-03 14:24:01.360898"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Louisa Stoltenberg LLD"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.361166"], ["updated_at", "2023-02-03 14:24:01.361166"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Edmundo Conn"], ["created_at", "2023-02-03 14:24:01.362319"], ["updated_at", "2023-02-03 14:24:01.362319"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Agnes Altenwerth DDS"], ["correct", 1], ["created_at", "2023-02-03 14:24:01.362589"], ["updated_at", "2023-02-03 14:24:01.362589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:24:01.366421"], ["updated_at", "2023-02-03 14:24:01.366421"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.366740"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:24:01.367677"], ["updated_at", "2023-02-03 14:24:01.367677"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.367966"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:24:01.368706"], ["updated_at", "2023-02-03 14:24:01.368706"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.369000"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:24:01.369871"], ["updated_at", "2023-02-03 14:24:01.369871"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.370156"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:24:01.376499"], ["updated_at", "2023-02-03 14:24:01.376499"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.376858"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:24:01.377684"], ["updated_at", "2023-02-03 14:24:01.377684"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.378075"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:24:01.378828"], ["updated_at", "2023-02-03 14:24:01.378828"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.379116"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:24:01.379942"], ["updated_at", "2023-02-03 14:24:01.379942"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.380228"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:24:01.380974"], ["updated_at", "2023-02-03 14:24:01.380974"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.381261"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:24:01.382094"], ["updated_at", "2023-02-03 14:24:01.382094"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.382377"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:24:01.383095"], ["updated_at", "2023-02-03 14:24:01.383095"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.383373"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:24:01.384381"], ["updated_at", "2023-02-03 14:24:01.384381"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:24:01.384706"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.8ms) SELECT sqlite_version(*) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) DROP TABLE IF EXISTS "survey_answers" +  (0.7ms) CREATE TABLE "survey_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "option_id" integer, "correct" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_attempts" +  (0.3ms) CREATE TABLE "survey_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "participant_type" varchar, "participant_id" integer, "survey_id" integer, "winner" boolean, "score" integer) +  (0.4ms) CREATE INDEX "index_survey_attempts_on_participant" ON "survey_attempts" ("participant_type", "participant_id") +  (0.0ms) DROP TABLE IF EXISTS "survey_options" +  (0.3ms) CREATE TABLE "survey_options" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "weight" integer DEFAULT 0, "text" varchar, "correct" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_questions" +  (0.3ms) CREATE TABLE "survey_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "text" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.0ms) DROP TABLE IF EXISTS "survey_surveys" +  (0.3ms) CREATE TABLE "survey_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "attempts_number" integer DEFAULT 0, "finished" boolean DEFAULT 0, "active" boolean DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "survey_type" integer) +  (0.0ms) DROP TABLE IF EXISTS "users" +  (0.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar) +  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20150515173554) +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20150507140855), +(20150507141133), +(20150512173234); + + +  (0.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2023-02-03 14:37:15.160717"], ["updated_at", "2023-02-03 14:37:15.160717"]] + TRANSACTION (0.3ms) commit transaction + ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + TRANSACTION (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "d4f999d219ce43ad9925efdcdafa3e751537046a"], ["created_at", "2023-02-03 14:37:15.171480"], ["updated_at", "2023-02-03 14:37:15.171480"]] + TRANSACTION (0.2ms) commit transaction +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.061909"], ["updated_at", "2023-02-03 14:37:16.061909"], ["name", "Ronna Kub Ret."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Williams Kerluke"], ["description", "Commodi magnam neque. Quaerat animi eum. Omnis aut veniam."], ["attempts_number", 35], ["created_at", "2023-02-03 14:37:16.068444"], ["updated_at", "2023-02-03 14:37:16.068444"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gene Harris Ret."], ["created_at", "2023-02-03 14:37:16.082602"], ["updated_at", "2023-02-03 14:37:16.082602"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Una Prohaska"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.086139"], ["updated_at", "2023-02-03 14:37:16.086139"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.090066"], ["updated_at", "2023-02-03 14:37:16.090066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.106465"], ["updated_at", "2023-02-03 14:37:16.106465"], ["name", "Fredia Jones"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Fausto Prohaska DVM"], ["description", "Rerum eum quisquam. Excepturi illum libero. Dolore et et."], ["attempts_number", 39], ["created_at", "2023-02-03 14:37:16.107991"], ["updated_at", "2023-02-03 14:37:16.107991"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Abraham Willms MD"], ["created_at", "2023-02-03 14:37:16.110683"], ["updated_at", "2023-02-03 14:37:16.110683"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Nelson Smith"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.111723"], ["updated_at", "2023-02-03 14:37:16.111723"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.113083"], ["updated_at", "2023-02-03 14:37:16.113083"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.115659"], ["updated_at", "2023-02-03 14:37:16.115659"], ["name", "James Deckow"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ethan Bashirian"], ["description", "Iure tenetur aperiam. Excepturi et aliquid. Maiores nostrum corrupti."], ["attempts_number", 33], ["created_at", "2023-02-03 14:37:16.117107"], ["updated_at", "2023-02-03 14:37:16.117107"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Nick Lesch"], ["created_at", "2023-02-03 14:37:16.119294"], ["updated_at", "2023-02-03 14:37:16.119294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Mr. Henry Heller"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.120272"], ["updated_at", "2023-02-03 14:37:16.120272"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.121303"], ["updated_at", "2023-02-03 14:37:16.121303"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.123219"], ["updated_at", "2023-02-03 14:37:16.123219"], ["name", "Candelaria Romaguera CPA"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jarrett Lakin"], ["description", "Magni reprehenderit dignissimos. Delectus nemo fugit. Consequatur culpa provident."], ["attempts_number", 30], ["created_at", "2023-02-03 14:37:16.124569"], ["updated_at", "2023-02-03 14:37:16.124569"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Luke Borer"], ["created_at", "2023-02-03 14:37:16.126666"], ["updated_at", "2023-02-03 14:37:16.126666"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Vernon Koch"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.127570"], ["updated_at", "2023-02-03 14:37:16.127570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.128679"], ["updated_at", "2023-02-03 14:37:16.128679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.138765"], ["updated_at", "2023-02-03 14:37:16.138765"], ["name", "Lewis Reinger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Earnest Watsica"], ["description", "Rerum nulla dolores. Ut est enim. Odit quo et."], ["attempts_number", 5], ["created_at", "2023-02-03 14:37:16.140227"], ["updated_at", "2023-02-03 14:37:16.140227"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.152888"], ["updated_at", "2023-02-03 14:37:16.152888"], ["name", "Mazie Spencer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Carlos Feest"], ["description", "Eum voluptatum expedita. Soluta illum enim. Sint et aut."], ["attempts_number", 5], ["created_at", "2023-02-03 14:37:16.154420"], ["updated_at", "2023-02-03 14:37:16.154420"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Christopher Robel Ret."], ["description", "Facere minima magnam. Aspernatur esse illo. Voluptas occaecati molestias."], ["attempts_number", 67], ["created_at", "2023-02-03 14:37:16.170269"], ["updated_at", "2023-02-03 14:37:16.170269"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ivory Kassulke"], ["created_at", "2023-02-03 14:37:16.171815"], ["updated_at", "2023-02-03 14:37:16.171815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jeannine Casper"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.172674"], ["updated_at", "2023-02-03 14:37:16.172674"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Tabatha Barton"], ["description", "Nihil aperiam occaecati. Earum quidem et. Consequatur nihil est."], ["attempts_number", 59], ["created_at", "2023-02-03 14:37:16.174715"], ["updated_at", "2023-02-03 14:37:16.174715"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maxima Homenick"], ["created_at", "2023-02-03 14:37:16.175890"], ["updated_at", "2023-02-03 14:37:16.175890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gov. Kami Beatty"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.176739"], ["updated_at", "2023-02-03 14:37:16.176739"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Brigette Miller"], ["description", "Eos animi necessitatibus. Quia eum saepe. Similique fugit fuga."], ["attempts_number", 98], ["created_at", "2023-02-03 14:37:16.180940"], ["updated_at", "2023-02-03 14:37:16.180940"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Samatha Hermann"], ["created_at", "2023-02-03 14:37:16.182493"], ["updated_at", "2023-02-03 14:37:16.182493"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Merissa Hills"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.183627"], ["updated_at", "2023-02-03 14:37:16.183627"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Toney Langworth"], ["description", "Nulla fugiat consequatur. Vero et quo. Ad quas sunt."], ["attempts_number", 39], ["created_at", "2023-02-03 14:37:16.186386"], ["updated_at", "2023-02-03 14:37:16.186386"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Magan Hackett PhD"], ["created_at", "2023-02-03 14:37:16.188017"], ["updated_at", "2023-02-03 14:37:16.188017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Allan Aufderhar"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.188936"], ["updated_at", "2023-02-03 14:37:16.188936"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Sen. Freeman Pagac"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.189788"], ["updated_at", "2023-02-03 14:37:16.189788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Prof. Tristan Kassulke"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.190561"], ["updated_at", "2023-02-03 14:37:16.190561"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mrs. Deeanna Emmerich"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.191401"], ["updated_at", "2023-02-03 14:37:16.191401"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.5ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.2ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Misti Toy"], ["description", "Excepturi totam autem. Quam qui quo. Autem tempora maxime."], ["attempts_number", 46], ["created_at", "2023-02-03 14:37:16.200322"], ["updated_at", "2023-02-03 14:37:16.200322"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Philip Hettinger"], ["created_at", "2023-02-03 14:37:16.201701"], ["updated_at", "2023-02-03 14:37:16.201701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gavin Bednar"], ["description", "Est officiis suscipit. Tempore ex molestiae. Asperiores animi aperiam."], ["attempts_number", 91], ["created_at", "2023-02-03 14:37:16.203594"], ["updated_at", "2023-02-03 14:37:16.203594"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Missy Lehner"], ["created_at", "2023-02-03 14:37:16.205584"], ["updated_at", "2023-02-03 14:37:16.205584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dino Rolfson"], ["description", "Sunt quis quia. Autem perferendis ea. Id repellat molestias."], ["attempts_number", 19], ["created_at", "2023-02-03 14:37:16.209866"], ["updated_at", "2023-02-03 14:37:16.209866"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ulysses Stroman"], ["created_at", "2023-02-03 14:37:16.211127"], ["updated_at", "2023-02-03 14:37:16.211127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Fr. Dania Langworth"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.212001"], ["updated_at", "2023-02-03 14:37:16.212001"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Britteny Bauch"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.212799"], ["updated_at", "2023-02-03 14:37:16.212799"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Alden Lesch"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.213922"], ["updated_at", "2023-02-03 14:37:16.213922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Theron Miller"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.215331"], ["updated_at", "2023-02-03 14:37:16.215331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Gerard Gerhold"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.216831"], ["updated_at", "2023-02-03 14:37:16.216831"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rolland Barrows Sr."], ["correct", 0], ["created_at", "2023-02-03 14:37:16.217913"], ["updated_at", "2023-02-03 14:37:16.217913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Cassidy Stanton"], ["correct", 0], ["created_at", "2023-02-03 14:37:16.218692"], ["updated_at", "2023-02-03 14:37:16.218692"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Amb. Grady Yost"], ["description", "Est eius veritatis. Omnis consequatur adipisci. Dolor ullam sed."], ["attempts_number", 50], ["created_at", "2023-02-03 14:37:16.230351"], ["updated_at", "2023-02-03 14:37:16.230351"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.6ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Hal DuBuque"], ["description", "Voluptas et quo. Ut est aperiam. Eius tempore natus."], ["attempts_number", 29], ["created_at", "2023-02-03 14:37:16.233037"], ["updated_at", "2023-02-03 14:37:16.233037"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Micheal Kulas DVM"], ["description", "Autem voluptates amet. Culpa a explicabo. Earum consectetur aspernatur."], ["attempts_number", 96], ["created_at", "2023-02-03 14:37:16.236815"], ["updated_at", "2023-02-03 14:37:16.236815"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Israel Reynolds"], ["created_at", "2023-02-03 14:37:16.237417"], ["updated_at", "2023-02-03 14:37:16.237417"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wally Greenfelder"], ["created_at", "2023-02-03 14:37:16.238221"], ["updated_at", "2023-02-03 14:37:16.238221"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Zofia Miller Ret."], ["created_at", "2023-02-03 14:37:16.239017"], ["updated_at", "2023-02-03 14:37:16.239017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Norah Towne"], ["created_at", "2023-02-03 14:37:16.239787"], ["updated_at", "2023-02-03 14:37:16.239787"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Britney McCullough"], ["created_at", "2023-02-03 14:37:16.240560"], ["updated_at", "2023-02-03 14:37:16.240560"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:37:16.241834"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lashay Roberts"], ["description", "Aut quam quo. Nemo et officia. Consectetur consequuntur sequi."], ["attempts_number", 47], ["created_at", "2023-02-03 14:37:16.246941"], ["updated_at", "2023-02-03 14:37:16.246941"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jonathan Berge"], ["description", "Nesciunt consequatur provident. Ut itaque dolor. Voluptatem quia totam."], ["attempts_number", 64], ["created_at", "2023-02-03 14:37:16.249179"], ["updated_at", "2023-02-03 14:37:16.249179"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ray Schmeler"], ["created_at", "2023-02-03 14:37:16.249882"], ["updated_at", "2023-02-03 14:37:16.249882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Cary Shields"], ["created_at", "2023-02-03 14:37:16.250925"], ["updated_at", "2023-02-03 14:37:16.250925"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Carol Abbott"], ["created_at", "2023-02-03 14:37:16.253068"], ["updated_at", "2023-02-03 14:37:16.253068"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lashon Spinka"], ["created_at", "2023-02-03 14:37:16.253995"], ["updated_at", "2023-02-03 14:37:16.253995"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sharita Zieme"], ["created_at", "2023-02-03 14:37:16.254750"], ["updated_at", "2023-02-03 14:37:16.254750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Jeff Stiedemann"], ["created_at", "2023-02-03 14:37:16.255515"], ["updated_at", "2023-02-03 14:37:16.255515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rep. Suzi Corkery"], ["description", "Nostrum itaque quos. Pariatur ratione ex. Porro officiis sint."], ["attempts_number", 96], ["created_at", "2023-02-03 14:37:16.258102"], ["updated_at", "2023-02-03 14:37:16.258102"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Alva Halvorson"], ["description", "Eos omnis aperiam. Dolores cumque eligendi. Ut temporibus omnis."], ["attempts_number", 86], ["created_at", "2023-02-03 14:37:16.262310"], ["updated_at", "2023-02-03 14:37:16.262310"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.3ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.273004"], ["updated_at", "2023-02-03 14:37:16.273004"], ["name", "Minh Greenholt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.274035"], ["updated_at", "2023-02-03 14:37:16.274035"], ["name", "Krystin Pfeffer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jackeline Wilderman"], ["description", "Et qui molestiae. Nulla consequatur ipsa. Pariatur neque tempora."], ["attempts_number", 63], ["created_at", "2023-02-03 14:37:16.275976"], ["updated_at", "2023-02-03 14:37:16.275976"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Odell Sipes"], ["created_at", "2023-02-03 14:37:16.276381"], ["updated_at", "2023-02-03 14:37:16.276381"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lou Jacobson Jr."], ["correct", 1], ["created_at", "2023-02-03 14:37:16.276735"], ["updated_at", "2023-02-03 14:37:16.276735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stefania Becker MD"], ["created_at", "2023-02-03 14:37:16.278086"], ["updated_at", "2023-02-03 14:37:16.278086"]] + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jamar Schulist"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.278549"], ["updated_at", "2023-02-03 14:37:16.278549"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Keenan Robel"], ["created_at", "2023-02-03 14:37:16.281075"], ["updated_at", "2023-02-03 14:37:16.281075"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Teressa Frami"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.281628"], ["updated_at", "2023-02-03 14:37:16.281628"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Klara Volkman"], ["created_at", "2023-02-03 14:37:16.283297"], ["updated_at", "2023-02-03 14:37:16.283297"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Johnie McGlynn LLD"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.283803"], ["updated_at", "2023-02-03 14:37:16.283803"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.289609"], ["updated_at", "2023-02-03 14:37:16.289609"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.290063"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:16.291093"], ["updated_at", "2023-02-03 14:37:16.291093"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.291525"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:16.292396"], ["updated_at", "2023-02-03 14:37:16.292396"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.292755"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:16.293608"], ["updated_at", "2023-02-03 14:37:16.293608"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.293961"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.9ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.300876"], ["updated_at", "2023-02-03 14:37:16.300876"], ["name", "Kittie Mann"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.303351"], ["updated_at", "2023-02-03 14:37:16.303351"], ["name", "Clarence Bergstrom"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marcos Wolff"], ["description", "Laborum sed temporibus. Est voluptatem aut. Quis itaque ut."], ["attempts_number", 28], ["created_at", "2023-02-03 14:37:16.305829"], ["updated_at", "2023-02-03 14:37:16.305829"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carmelia Thompson"], ["created_at", "2023-02-03 14:37:16.306551"], ["updated_at", "2023-02-03 14:37:16.306551"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Alva Corkery"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.306897"], ["updated_at", "2023-02-03 14:37:16.306897"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Luella Leffler"], ["created_at", "2023-02-03 14:37:16.308372"], ["updated_at", "2023-02-03 14:37:16.308372"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Elna Daniel"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.308816"], ["updated_at", "2023-02-03 14:37:16.308816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Jerome Buckridge"], ["created_at", "2023-02-03 14:37:16.310148"], ["updated_at", "2023-02-03 14:37:16.310148"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Coretta Rippin LLD"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.310586"], ["updated_at", "2023-02-03 14:37:16.310586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Genaro Hyatt"], ["created_at", "2023-02-03 14:37:16.312145"], ["updated_at", "2023-02-03 14:37:16.312145"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Gabriella Krajcik"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.312530"], ["updated_at", "2023-02-03 14:37:16.312530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.317612"], ["updated_at", "2023-02-03 14:37:16.317612"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.318062"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:16.319089"], ["updated_at", "2023-02-03 14:37:16.319089"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.319456"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:16.320313"], ["updated_at", "2023-02-03 14:37:16.320313"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.320671"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:16.321517"], ["updated_at", "2023-02-03 14:37:16.321517"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.321869"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.325469"], ["updated_at", "2023-02-03 14:37:16.325469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.325837"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:16.326765"], ["updated_at", "2023-02-03 14:37:16.326765"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.327129"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:16.327987"], ["updated_at", "2023-02-03 14:37:16.327987"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.328364"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:16.329315"], ["updated_at", "2023-02-03 14:37:16.329315"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.329689"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.333574"], ["updated_at", "2023-02-03 14:37:16.333574"], ["name", "Mr. Kristine O'Connell"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:16.335481"], ["updated_at", "2023-02-03 14:37:16.335481"], ["name", "Mohamed Weber"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Johnson Wyman"], ["description", "Rerum omnis iure. Veritatis enim qui. Pariatur odio tempora."], ["attempts_number", 62], ["created_at", "2023-02-03 14:37:16.337558"], ["updated_at", "2023-02-03 14:37:16.337558"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Andre Hoeger"], ["created_at", "2023-02-03 14:37:16.337993"], ["updated_at", "2023-02-03 14:37:16.337993"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dewey Batz"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.338291"], ["updated_at", "2023-02-03 14:37:16.338291"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Donovan Nienow"], ["created_at", "2023-02-03 14:37:16.339586"], ["updated_at", "2023-02-03 14:37:16.339586"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Dr. Inger Luettgen"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.339924"], ["updated_at", "2023-02-03 14:37:16.339924"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Keva Johnston"], ["created_at", "2023-02-03 14:37:16.341133"], ["updated_at", "2023-02-03 14:37:16.341133"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Clarence Kozey I"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.341457"], ["updated_at", "2023-02-03 14:37:16.341457"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Von Johnson"], ["created_at", "2023-02-03 14:37:16.342679"], ["updated_at", "2023-02-03 14:37:16.342679"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Darin Frami"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.342998"], ["updated_at", "2023-02-03 14:37:16.342998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Brittanie Hirthe"], ["description", "Aliquid sit libero. Praesentium non facilis. Laborum aspernatur vel."], ["attempts_number", 88], ["created_at", "2023-02-03 14:37:16.344891"], ["updated_at", "2023-02-03 14:37:16.344891"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Elbert Buckridge"], ["created_at", "2023-02-03 14:37:16.345241"], ["updated_at", "2023-02-03 14:37:16.345241"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Michele Wehner"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.345481"], ["updated_at", "2023-02-03 14:37:16.345481"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Maurita Hilll"], ["created_at", "2023-02-03 14:37:16.346604"], ["updated_at", "2023-02-03 14:37:16.346604"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Dwana Stroman"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.346919"], ["updated_at", "2023-02-03 14:37:16.346919"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mark Jones"], ["created_at", "2023-02-03 14:37:16.348162"], ["updated_at", "2023-02-03 14:37:16.348162"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Douglass Hane Ret."], ["correct", 1], ["created_at", "2023-02-03 14:37:16.348520"], ["updated_at", "2023-02-03 14:37:16.348520"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lauren Herman"], ["created_at", "2023-02-03 14:37:16.349968"], ["updated_at", "2023-02-03 14:37:16.349968"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Janessa Fahey"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.350599"], ["updated_at", "2023-02-03 14:37:16.350599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Damon Hammes"], ["created_at", "2023-02-03 14:37:16.352005"], ["updated_at", "2023-02-03 14:37:16.352005"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Ricki Wisozk Esq."], ["correct", 1], ["created_at", "2023-02-03 14:37:16.352414"], ["updated_at", "2023-02-03 14:37:16.352414"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Isreal Jacobson IV"], ["created_at", "2023-02-03 14:37:16.353578"], ["updated_at", "2023-02-03 14:37:16.353578"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Owen Walsh"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.353893"], ["updated_at", "2023-02-03 14:37:16.353893"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Burton Quigley"], ["created_at", "2023-02-03 14:37:16.355012"], ["updated_at", "2023-02-03 14:37:16.355012"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Rev. In Huel"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.355331"], ["updated_at", "2023-02-03 14:37:16.355331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kasi Wiza"], ["created_at", "2023-02-03 14:37:16.356416"], ["updated_at", "2023-02-03 14:37:16.356416"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Elliott Hammes"], ["correct", 1], ["created_at", "2023-02-03 14:37:16.356726"], ["updated_at", "2023-02-03 14:37:16.356726"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:16.360465"], ["updated_at", "2023-02-03 14:37:16.360465"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.360821"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:16.361660"], ["updated_at", "2023-02-03 14:37:16.361660"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.361986"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:16.362777"], ["updated_at", "2023-02-03 14:37:16.362777"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.363125"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:16.363900"], ["updated_at", "2023-02-03 14:37:16.363900"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.364236"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:37:16.370356"], ["updated_at", "2023-02-03 14:37:16.370356"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.370721"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:37:16.371558"], ["updated_at", "2023-02-03 14:37:16.371558"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.371882"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:37:16.372664"], ["updated_at", "2023-02-03 14:37:16.372664"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.372980"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:37:16.373805"], ["updated_at", "2023-02-03 14:37:16.373805"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.374128"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:37:16.374910"], ["updated_at", "2023-02-03 14:37:16.374910"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.375238"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:37:16.383041"], ["updated_at", "2023-02-03 14:37:16.383041"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.383490"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:37:16.384309"], ["updated_at", "2023-02-03 14:37:16.384309"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.384676"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:37:16.385450"], ["updated_at", "2023-02-03 14:37:16.385450"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:16.385762"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:18.928938"], ["updated_at", "2023-02-03 14:37:18.928938"], ["name", "Shayne McKenzie Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Devon Hand"], ["description", "Totam excepturi non. Voluptatem reiciendis dolorum. Quia sint rem."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:18.934020"], ["updated_at", "2023-02-03 14:37:18.934020"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alyse Torp"], ["created_at", "2023-02-03 14:37:18.946722"], ["updated_at", "2023-02-03 14:37:18.946722"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rosia Monahan"], ["correct", 0], ["created_at", "2023-02-03 14:37:18.949429"], ["updated_at", "2023-02-03 14:37:18.949429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:18.952354"], ["updated_at", "2023-02-03 14:37:18.952354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:18.967063"], ["updated_at", "2023-02-03 14:37:18.967063"], ["name", "Isreal Oberbrunner Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Gov. Ivana Wilderman"], ["description", "Omnis ipsum nobis. Repellat deserunt vero. Voluptatem ut molestiae."], ["attempts_number", 82], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:18.968527"], ["updated_at", "2023-02-03 14:37:18.968527"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cleo Veum"], ["created_at", "2023-02-03 14:37:18.971312"], ["updated_at", "2023-02-03 14:37:18.971312"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kelsey Marvin"], ["correct", 0], ["created_at", "2023-02-03 14:37:18.972366"], ["updated_at", "2023-02-03 14:37:18.972366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:18.973528"], ["updated_at", "2023-02-03 14:37:18.973528"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:18.975496"], ["updated_at", "2023-02-03 14:37:18.975496"], ["name", "Cuc Boehm JD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cristobal Stanton IV"], ["description", "Asperiores pariatur eveniet. Explicabo aliquid asperiores. Labore quasi harum."], ["attempts_number", 13], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:18.976746"], ["updated_at", "2023-02-03 14:37:18.976746"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Scotty Roob"], ["created_at", "2023-02-03 14:37:18.978728"], ["updated_at", "2023-02-03 14:37:18.978728"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tuan Boehm"], ["correct", 0], ["created_at", "2023-02-03 14:37:18.979428"], ["updated_at", "2023-02-03 14:37:18.979428"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:18.980375"], ["updated_at", "2023-02-03 14:37:18.980375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:18.982720"], ["updated_at", "2023-02-03 14:37:18.982720"], ["name", "Rev. Federico Kovacek"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brian Okuneva"], ["description", "Aut repellendus error. Quae illum eveniet. Aut amet vel."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:18.984646"], ["updated_at", "2023-02-03 14:37:18.984646"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shellie MacGyver"], ["created_at", "2023-02-03 14:37:18.986942"], ["updated_at", "2023-02-03 14:37:18.986942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Merrill Hegmann"], ["correct", 0], ["created_at", "2023-02-03 14:37:18.987684"], ["updated_at", "2023-02-03 14:37:18.987684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:18.988688"], ["updated_at", "2023-02-03 14:37:18.988688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:18.997606"], ["updated_at", "2023-02-03 14:37:18.997606"], ["name", "Ernest Breitenberg"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carlie Rempel"], ["description", "Recusandae itaque rerum. Vel accusantium aliquam. Voluptas excepturi aspernatur."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:18.999457"], ["updated_at", "2023-02-03 14:37:18.999457"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.011910"], ["updated_at", "2023-02-03 14:37:19.011910"], ["name", "Brant Mraz"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cleotilde Durgan"], ["description", "Dolor dolores quae. Cumque quis vel. Et nobis dolores."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.013470"], ["updated_at", "2023-02-03 14:37:19.013470"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "The Hon. Bert Greenfelder"], ["description", "Vel amet est. Magnam in autem. Possimus reiciendis ut."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.028770"], ["updated_at", "2023-02-03 14:37:19.028770"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dusti Zboncak"], ["created_at", "2023-02-03 14:37:19.030223"], ["updated_at", "2023-02-03 14:37:19.030223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lon Upton"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.031074"], ["updated_at", "2023-02-03 14:37:19.031074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Natacha Altenwerth"], ["description", "Non repellat est. A commodi sed. Eos aliquid temporibus."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.033768"], ["updated_at", "2023-02-03 14:37:19.033768"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ollie Boehm"], ["created_at", "2023-02-03 14:37:19.035174"], ["updated_at", "2023-02-03 14:37:19.035174"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Pres. Augustus Weber"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.035998"], ["updated_at", "2023-02-03 14:37:19.035998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Devon Herman"], ["description", "Quam nihil dolores. Rerum in illo. Aut quaerat autem."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.040503"], ["updated_at", "2023-02-03 14:37:19.040503"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carroll Hammes"], ["created_at", "2023-02-03 14:37:19.041719"], ["updated_at", "2023-02-03 14:37:19.041719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.4ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alvaro Simonis"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.042551"], ["updated_at", "2023-02-03 14:37:19.042551"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Porfirio Lynch"], ["description", "Officiis et necessitatibus. Facere quae exercitationem. Id voluptates tempora."], ["attempts_number", 87], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.045398"], ["updated_at", "2023-02-03 14:37:19.045398"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mammie Larkin"], ["created_at", "2023-02-03 14:37:19.046711"], ["updated_at", "2023-02-03 14:37:19.046711"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Doug Schumm VM"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.048090"], ["updated_at", "2023-02-03 14:37:19.048090"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gala Larkin DC"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.049330"], ["updated_at", "2023-02-03 14:37:19.049330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Odessa Koch DC"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.050576"], ["updated_at", "2023-02-03 14:37:19.050576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Brice Grant"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.051570"], ["updated_at", "2023-02-03 14:37:19.051570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Whitney Aufderhar"], ["description", "Optio alias recusandae. Velit inventore exercitationem. Numquam voluptates porro."], ["attempts_number", 28], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.058258"], ["updated_at", "2023-02-03 14:37:19.058258"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Mauro Haag"], ["created_at", "2023-02-03 14:37:19.059454"], ["updated_at", "2023-02-03 14:37:19.059454"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Orlando Zboncak"], ["description", "Nihil est nisi. Quam iste non. Ut qui dignissimos."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.061142"], ["updated_at", "2023-02-03 14:37:19.061142"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Luz Rath DO"], ["created_at", "2023-02-03 14:37:19.062189"], ["updated_at", "2023-02-03 14:37:19.062189"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Samella Miller"], ["description", "Voluptatem et quos. Laboriosam dolorem est. Voluptatibus officiis tenetur."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.066665"], ["updated_at", "2023-02-03 14:37:19.066665"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robin Casper"], ["created_at", "2023-02-03 14:37:19.068358"], ["updated_at", "2023-02-03 14:37:19.068358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mrs. Sixta Bogan"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.069243"], ["updated_at", "2023-02-03 14:37:19.069243"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gita Huels"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.069989"], ["updated_at", "2023-02-03 14:37:19.069989"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Erin Considine"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.070700"], ["updated_at", "2023-02-03 14:37:19.070700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rocky Hauck"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.071401"], ["updated_at", "2023-02-03 14:37:19.071401"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Yen Mayert"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.072095"], ["updated_at", "2023-02-03 14:37:19.072095"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marcellus Ortiz"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.072816"], ["updated_at", "2023-02-03 14:37:19.072816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Bari Graham"], ["correct", 0], ["created_at", "2023-02-03 14:37:19.073588"], ["updated_at", "2023-02-03 14:37:19.073588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.5ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jame Koepp III"], ["description", "Et rerum mollitia. Consequuntur deserunt aut. Est qui aspernatur."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.094574"], ["updated_at", "2023-02-03 14:37:19.094574"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Luis Emmerich V"], ["description", "Magni molestiae quia. Eius officia alias. Totam modi accusantium."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.096924"], ["updated_at", "2023-02-03 14:37:19.096924"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Tish Crist"], ["description", "Voluptas tempore eveniet. Aliquid repellat qui. Facilis omnis eligendi."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.099564"], ["updated_at", "2023-02-03 14:37:19.099564"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Colton Gerlach"], ["created_at", "2023-02-03 14:37:19.100018"], ["updated_at", "2023-02-03 14:37:19.100018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Concepcion Emard"], ["created_at", "2023-02-03 14:37:19.100844"], ["updated_at", "2023-02-03 14:37:19.100844"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jerica Hickle"], ["created_at", "2023-02-03 14:37:19.101732"], ["updated_at", "2023-02-03 14:37:19.101732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cassondra Torp"], ["created_at", "2023-02-03 14:37:19.102624"], ["updated_at", "2023-02-03 14:37:19.102624"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alex Wintheiser"], ["created_at", "2023-02-03 14:37:19.103309"], ["updated_at", "2023-02-03 14:37:19.103309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:37:19.104753"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tod Jacobson"], ["description", "Vero assumenda a. Maxime sed quis. Quia repellat est."], ["attempts_number", 97], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.108792"], ["updated_at", "2023-02-03 14:37:19.108792"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Nieves Grant DC"], ["description", "Deleniti ea consequatur. Nulla voluptate ut. Ut velit est."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.111168"], ["updated_at", "2023-02-03 14:37:19.111168"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nu Balistreri"], ["created_at", "2023-02-03 14:37:19.111639"], ["updated_at", "2023-02-03 14:37:19.111639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kari D'Amore"], ["created_at", "2023-02-03 14:37:19.112334"], ["updated_at", "2023-02-03 14:37:19.112334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marcelle Bins"], ["created_at", "2023-02-03 14:37:19.113031"], ["updated_at", "2023-02-03 14:37:19.113031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Junko Hermiston III"], ["created_at", "2023-02-03 14:37:19.113725"], ["updated_at", "2023-02-03 14:37:19.113725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tynisha Miller DC"], ["created_at", "2023-02-03 14:37:19.114463"], ["updated_at", "2023-02-03 14:37:19.114463"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Merrill Huel"], ["created_at", "2023-02-03 14:37:19.115216"], ["updated_at", "2023-02-03 14:37:19.115216"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (1.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Minda Schroeder"], ["description", "Sint nam tenetur. Quo dolor quia. Porro qui quidem."], ["attempts_number", 81], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.118364"], ["updated_at", "2023-02-03 14:37:19.118364"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Amb. Sharron Steuber"], ["description", "Reiciendis quae cupiditate. Ut error aut. Molestiae ea consequuntur."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.123164"], ["updated_at", "2023-02-03 14:37:19.123164"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.131984"], ["updated_at", "2023-02-03 14:37:19.131984"], ["name", "Melida Koch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.133175"], ["updated_at", "2023-02-03 14:37:19.133175"], ["name", "Ulysses Runolfsson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Desirae McGlynn"], ["description", "Quisquam qui animi. Autem velit temporibus. Nihil blanditiis ut."], ["attempts_number", 93], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.135237"], ["updated_at", "2023-02-03 14:37:19.135237"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mandie Armstrong"], ["created_at", "2023-02-03 14:37:19.135715"], ["updated_at", "2023-02-03 14:37:19.135715"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dalton Kuvalis"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.135993"], ["updated_at", "2023-02-03 14:37:19.135993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bennett Carroll III"], ["created_at", "2023-02-03 14:37:19.137756"], ["updated_at", "2023-02-03 14:37:19.137756"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Tony Treutel Ret."], ["correct", 1], ["created_at", "2023-02-03 14:37:19.138150"], ["updated_at", "2023-02-03 14:37:19.138150"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Laurence Kuvalis"], ["created_at", "2023-02-03 14:37:19.139309"], ["updated_at", "2023-02-03 14:37:19.139309"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Reggie Davis"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.139600"], ["updated_at", "2023-02-03 14:37:19.139600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Madalene Haley"], ["created_at", "2023-02-03 14:37:19.140699"], ["updated_at", "2023-02-03 14:37:19.140699"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Jermaine Hettinger"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.140983"], ["updated_at", "2023-02-03 14:37:19.140983"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:19.145537"], ["updated_at", "2023-02-03 14:37:19.145537"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.145884"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:19.146757"], ["updated_at", "2023-02-03 14:37:19.146757"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.147081"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:19.148027"], ["updated_at", "2023-02-03 14:37:19.148027"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.148331"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:19.149098"], ["updated_at", "2023-02-03 14:37:19.149098"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.149380"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.154177"], ["updated_at", "2023-02-03 14:37:19.154177"], ["name", "Taylor Stracke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.155365"], ["updated_at", "2023-02-03 14:37:19.155365"], ["name", "Dwight Hilll"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hollie Bergnaum"], ["description", "Labore non autem. Accusamus dicta unde. Sunt consequatur distinctio."], ["attempts_number", 17], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.157361"], ["updated_at", "2023-02-03 14:37:19.157361"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Roselee Tillman"], ["created_at", "2023-02-03 14:37:19.157753"], ["updated_at", "2023-02-03 14:37:19.157753"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Mr. Lisbeth Mayert"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.158041"], ["updated_at", "2023-02-03 14:37:19.158041"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Classie Rempel V"], ["created_at", "2023-02-03 14:37:19.159225"], ["updated_at", "2023-02-03 14:37:19.159225"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Marci Hudson"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.159548"], ["updated_at", "2023-02-03 14:37:19.159548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Matthew Wiza"], ["created_at", "2023-02-03 14:37:19.160643"], ["updated_at", "2023-02-03 14:37:19.160643"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Kirstie Friesen III"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.160970"], ["updated_at", "2023-02-03 14:37:19.160970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Josette Fay"], ["created_at", "2023-02-03 14:37:19.162060"], ["updated_at", "2023-02-03 14:37:19.162060"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Errol Schaden"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.162330"], ["updated_at", "2023-02-03 14:37:19.162330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:19.166681"], ["updated_at", "2023-02-03 14:37:19.166681"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.167064"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:19.168009"], ["updated_at", "2023-02-03 14:37:19.168009"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.168305"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:19.169056"], ["updated_at", "2023-02-03 14:37:19.169056"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.169345"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:19.170126"], ["updated_at", "2023-02-03 14:37:19.170126"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.170404"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:19.173531"], ["updated_at", "2023-02-03 14:37:19.173531"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.173820"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:19.174617"], ["updated_at", "2023-02-03 14:37:19.174617"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.174897"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:19.175637"], ["updated_at", "2023-02-03 14:37:19.175637"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.175917"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:19.176689"], ["updated_at", "2023-02-03 14:37:19.176689"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.176973"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.180036"], ["updated_at", "2023-02-03 14:37:19.180036"], ["name", "Francesco Haley"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:37:19.181969"], ["updated_at", "2023-02-03 14:37:19.181969"], ["name", "Teodoro Hudson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alonzo Williamson"], ["description", "Veritatis voluptatum vel. Esse error ut. Facere nulla dicta."], ["attempts_number", 15], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.183930"], ["updated_at", "2023-02-03 14:37:19.183930"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jenine Rath DVM"], ["created_at", "2023-02-03 14:37:19.184321"], ["updated_at", "2023-02-03 14:37:19.184321"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Dr. Joline Reilly"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.184584"], ["updated_at", "2023-02-03 14:37:19.184584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Stan Hudson"], ["created_at", "2023-02-03 14:37:19.185822"], ["updated_at", "2023-02-03 14:37:19.185822"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Concha Willms"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.186122"], ["updated_at", "2023-02-03 14:37:19.186122"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Dung Maggio"], ["created_at", "2023-02-03 14:37:19.187262"], ["updated_at", "2023-02-03 14:37:19.187262"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Nicolas Crona"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.187602"], ["updated_at", "2023-02-03 14:37:19.187602"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Ed Cummings"], ["created_at", "2023-02-03 14:37:19.188741"], ["updated_at", "2023-02-03 14:37:19.188741"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Cory Quigley Jr."], ["correct", 1], ["created_at", "2023-02-03 14:37:19.189024"], ["updated_at", "2023-02-03 14:37:19.189024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Olene Simonis"], ["description", "Delectus consequatur rerum. Vero repudiandae numquam. Possimus quo voluptatem."], ["attempts_number", 75], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:37:19.190780"], ["updated_at", "2023-02-03 14:37:19.190780"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jeremy Miller PhD"], ["created_at", "2023-02-03 14:37:19.191122"], ["updated_at", "2023-02-03 14:37:19.191122"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Renita Jaskolski"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.191333"], ["updated_at", "2023-02-03 14:37:19.191333"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Willa Jenkins"], ["created_at", "2023-02-03 14:37:19.192391"], ["updated_at", "2023-02-03 14:37:19.192391"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "George Runolfsdottir"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.192664"], ["updated_at", "2023-02-03 14:37:19.192664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chet Hermann Ret."], ["created_at", "2023-02-03 14:37:19.193790"], ["updated_at", "2023-02-03 14:37:19.193790"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Bess Williamson"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.194101"], ["updated_at", "2023-02-03 14:37:19.194101"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Chere Kris"], ["created_at", "2023-02-03 14:37:19.195212"], ["updated_at", "2023-02-03 14:37:19.195212"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Gov. Robbie Kihn"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.195482"], ["updated_at", "2023-02-03 14:37:19.195482"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mike Zulauf"], ["created_at", "2023-02-03 14:37:19.196544"], ["updated_at", "2023-02-03 14:37:19.196544"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Hilario Boyle"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.196830"], ["updated_at", "2023-02-03 14:37:19.196830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Foster Grady"], ["created_at", "2023-02-03 14:37:19.197966"], ["updated_at", "2023-02-03 14:37:19.197966"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Yu Franecki"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.198279"], ["updated_at", "2023-02-03 14:37:19.198279"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Yuette Runolfsson"], ["created_at", "2023-02-03 14:37:19.199515"], ["updated_at", "2023-02-03 14:37:19.199515"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Alexander Tromp"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.199984"], ["updated_at", "2023-02-03 14:37:19.199984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Numbers Murphy"], ["created_at", "2023-02-03 14:37:19.201144"], ["updated_at", "2023-02-03 14:37:19.201144"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Santina Mosciski"], ["correct", 1], ["created_at", "2023-02-03 14:37:19.201410"], ["updated_at", "2023-02-03 14:37:19.201410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:37:19.205092"], ["updated_at", "2023-02-03 14:37:19.205092"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.205405"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:37:19.206207"], ["updated_at", "2023-02-03 14:37:19.206207"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.206493"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:37:19.207323"], ["updated_at", "2023-02-03 14:37:19.207323"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.207600"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:37:19.208313"], ["updated_at", "2023-02-03 14:37:19.208313"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.208588"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:37:19.214361"], ["updated_at", "2023-02-03 14:37:19.214361"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.214749"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:37:19.215812"], ["updated_at", "2023-02-03 14:37:19.215812"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.216108"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:37:19.216874"], ["updated_at", "2023-02-03 14:37:19.216874"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.217153"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:37:19.217970"], ["updated_at", "2023-02-03 14:37:19.217970"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.218246"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:37:19.218963"], ["updated_at", "2023-02-03 14:37:19.218963"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.219236"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:37:19.220070"], ["updated_at", "2023-02-03 14:37:19.220070"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.220346"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:37:19.221058"], ["updated_at", "2023-02-03 14:37:19.221058"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.221479"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:37:19.222201"], ["updated_at", "2023-02-03 14:37:19.222201"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:37:19.222478"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.554484"], ["updated_at", "2023-02-03 14:42:01.554484"], ["name", "Sherwood Kohler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monte Abbott CPA"], ["description", "Est nihil itaque. Officiis aut fuga. Excepturi pariatur repudiandae."], ["attempts_number", 87], ["created_at", "2023-02-03 14:42:01.560940"], ["updated_at", "2023-02-03 14:42:01.560940"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robena Gislason"], ["created_at", "2023-02-03 14:42:01.574755"], ["updated_at", "2023-02-03 14:42:01.574755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Mandie Roberts"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.578229"], ["updated_at", "2023-02-03 14:42:01.578229"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.582011"], ["updated_at", "2023-02-03 14:42:01.582011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.597813"], ["updated_at", "2023-02-03 14:42:01.597813"], ["name", "Gonzalo Cassin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Markita Wilkinson"], ["description", "Reprehenderit impedit cum. Quam modi occaecati. Sit laudantium deleniti."], ["attempts_number", 27], ["created_at", "2023-02-03 14:42:01.599296"], ["updated_at", "2023-02-03 14:42:01.599296"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Margy Paucek"], ["created_at", "2023-02-03 14:42:01.601926"], ["updated_at", "2023-02-03 14:42:01.601926"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jeremiah Ebert PhD"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.602854"], ["updated_at", "2023-02-03 14:42:01.602854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.603928"], ["updated_at", "2023-02-03 14:42:01.603928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.605973"], ["updated_at", "2023-02-03 14:42:01.605973"], ["name", "Alfred Daniel I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jan Zulauf"], ["description", "In voluptatem quo. Sed laboriosam id. Ipsam consequatur ut."], ["attempts_number", 14], ["created_at", "2023-02-03 14:42:01.607268"], ["updated_at", "2023-02-03 14:42:01.607268"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gilberto Considine Esq."], ["created_at", "2023-02-03 14:42:01.609241"], ["updated_at", "2023-02-03 14:42:01.609241"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Elroy Marquardt"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.609964"], ["updated_at", "2023-02-03 14:42:01.609964"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.610944"], ["updated_at", "2023-02-03 14:42:01.610944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.613062"], ["updated_at", "2023-02-03 14:42:01.613062"], ["name", "Mrs. Jonathon Gutmann"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Katerine Herzog JD"], ["description", "Qui voluptatem ducimus. Quae repellat vero. Consequuntur quia sint."], ["attempts_number", 74], ["created_at", "2023-02-03 14:42:01.614797"], ["updated_at", "2023-02-03 14:42:01.614797"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Duane Sawayn"], ["created_at", "2023-02-03 14:42:01.623137"], ["updated_at", "2023-02-03 14:42:01.623137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Amb. Lenita Bergnaum"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.624101"], ["updated_at", "2023-02-03 14:42:01.624101"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.625130"], ["updated_at", "2023-02-03 14:42:01.625130"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.635307"], ["updated_at", "2023-02-03 14:42:01.635307"], ["name", "Suzan Bernhard"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Darin Erdman"], ["description", "Itaque enim placeat. Aut minima ipsam. Dolores veniam blanditiis."], ["attempts_number", 5], ["created_at", "2023-02-03 14:42:01.637098"], ["updated_at", "2023-02-03 14:42:01.637098"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.647746"], ["updated_at", "2023-02-03 14:42:01.647746"], ["name", "Ursula Zboncak"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "The Hon. Madalyn Kutch"], ["description", "Facilis placeat perspiciatis. Est aut consectetur. Ad esse quasi."], ["attempts_number", 5], ["created_at", "2023-02-03 14:42:01.649705"], ["updated_at", "2023-02-03 14:42:01.649705"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Terica Gottlieb"], ["description", "Optio vitae eos. Tempora pariatur ut. Numquam quos nam."], ["attempts_number", 28], ["created_at", "2023-02-03 14:42:01.664307"], ["updated_at", "2023-02-03 14:42:01.664307"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ivy White"], ["created_at", "2023-02-03 14:42:01.665809"], ["updated_at", "2023-02-03 14:42:01.665809"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Solange Haag"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.666926"], ["updated_at", "2023-02-03 14:42:01.666926"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ophelia Sanford"], ["description", "Et ut voluptatem. Et sint perferendis. Doloribus molestiae voluptas."], ["attempts_number", 92], ["created_at", "2023-02-03 14:42:01.669145"], ["updated_at", "2023-02-03 14:42:01.669145"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Leopoldo Goodwin"], ["created_at", "2023-02-03 14:42:01.670689"], ["updated_at", "2023-02-03 14:42:01.670689"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jolanda Feeney Jr."], ["correct", 0], ["created_at", "2023-02-03 14:42:01.671558"], ["updated_at", "2023-02-03 14:42:01.671558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Dr. Milan Padberg"], ["description", "Et repudiandae est. Quisquam a corporis. Rerum nulla a."], ["attempts_number", 42], ["created_at", "2023-02-03 14:42:01.674959"], ["updated_at", "2023-02-03 14:42:01.674959"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Milo Hand Ret."], ["created_at", "2023-02-03 14:42:01.676113"], ["updated_at", "2023-02-03 14:42:01.676113"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Fr. Dwana Mitchell"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.676998"], ["updated_at", "2023-02-03 14:42:01.676998"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Scot Luettgen V"], ["description", "Hic eum temporibus. Molestiae fugiat minima. Illo qui beatae."], ["attempts_number", 81], ["created_at", "2023-02-03 14:42:01.680076"], ["updated_at", "2023-02-03 14:42:01.680076"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rev. Rocco Dach"], ["created_at", "2023-02-03 14:42:01.681681"], ["updated_at", "2023-02-03 14:42:01.681681"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Fr. Elza Bailey"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.682816"], ["updated_at", "2023-02-03 14:42:01.682816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Carmelo Crist"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.683838"], ["updated_at", "2023-02-03 14:42:01.683838"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Vaughn Botsford"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.684574"], ["updated_at", "2023-02-03 14:42:01.684574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Alonzo Steuber DDS"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.685371"], ["updated_at", "2023-02-03 14:42:01.685371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Laverne Moen"], ["description", "Eius magnam porro. Dolorum rerum nobis. Accusamus dolor in."], ["attempts_number", 74], ["created_at", "2023-02-03 14:42:01.692124"], ["updated_at", "2023-02-03 14:42:01.692124"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Isaias Miller"], ["created_at", "2023-02-03 14:42:01.693329"], ["updated_at", "2023-02-03 14:42:01.693329"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Annett O'Hara"], ["description", "Voluptates repellat et. Et deserunt aspernatur. Alias officia odit."], ["attempts_number", 61], ["created_at", "2023-02-03 14:42:01.695559"], ["updated_at", "2023-02-03 14:42:01.695559"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Joaquin Conn V"], ["created_at", "2023-02-03 14:42:01.696945"], ["updated_at", "2023-02-03 14:42:01.696945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kandis Tillman"], ["description", "Assumenda sit necessitatibus. Qui ut asperiores. Rerum cupiditate dolores."], ["attempts_number", 99], ["created_at", "2023-02-03 14:42:01.701036"], ["updated_at", "2023-02-03 14:42:01.701036"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tonda Reichel PhD"], ["created_at", "2023-02-03 14:42:01.702338"], ["updated_at", "2023-02-03 14:42:01.702338"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Velia Schaefer"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.703558"], ["updated_at", "2023-02-03 14:42:01.703558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Prof. Yael Koss"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.704546"], ["updated_at", "2023-02-03 14:42:01.704546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Felipe Corkery"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.705345"], ["updated_at", "2023-02-03 14:42:01.705345"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Tabitha Corwin"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.706062"], ["updated_at", "2023-02-03 14:42:01.706062"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Siobhan Olson"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.706821"], ["updated_at", "2023-02-03 14:42:01.706821"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rep. Keenan Weber"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.707548"], ["updated_at", "2023-02-03 14:42:01.707548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Melvin Roob"], ["correct", 0], ["created_at", "2023-02-03 14:42:01.708266"], ["updated_at", "2023-02-03 14:42:01.708266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Vern Lesch"], ["description", "Velit tempore sint. Dolore maxime aut. Labore voluptatem modi."], ["attempts_number", 21], ["created_at", "2023-02-03 14:42:01.719160"], ["updated_at", "2023-02-03 14:42:01.719160"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Leila Runolfsson IV"], ["description", "Magnam quas nobis. Enim vel illo. Minima voluptatum aut."], ["attempts_number", 28], ["created_at", "2023-02-03 14:42:01.721766"], ["updated_at", "2023-02-03 14:42:01.721766"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Valorie Ryan"], ["description", "Ut harum molestias. Aut veniam asperiores. Dolore necessitatibus saepe."], ["attempts_number", 86], ["created_at", "2023-02-03 14:42:01.724094"], ["updated_at", "2023-02-03 14:42:01.724094"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Aubrey Kris"], ["created_at", "2023-02-03 14:42:01.724506"], ["updated_at", "2023-02-03 14:42:01.724506"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Prof. Brendon Morissette"], ["created_at", "2023-02-03 14:42:01.725290"], ["updated_at", "2023-02-03 14:42:01.725290"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Long Kuphal"], ["created_at", "2023-02-03 14:42:01.725996"], ["updated_at", "2023-02-03 14:42:01.725996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dewitt Rowe"], ["created_at", "2023-02-03 14:42:01.726724"], ["updated_at", "2023-02-03 14:42:01.726724"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Keneth Mertz"], ["created_at", "2023-02-03 14:42:01.727465"], ["updated_at", "2023-02-03 14:42:01.727465"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:42:01.729151"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Sydney Kessler"], ["description", "Autem ut porro. Sit omnis est. Libero et dolores."], ["attempts_number", 27], ["created_at", "2023-02-03 14:42:01.734381"], ["updated_at", "2023-02-03 14:42:01.734381"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Casie Cremin"], ["description", "Est excepturi dolorem. Itaque rerum qui. Fugiat maiores quis."], ["attempts_number", 21], ["created_at", "2023-02-03 14:42:01.736333"], ["updated_at", "2023-02-03 14:42:01.736333"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Raul Fritsch"], ["created_at", "2023-02-03 14:42:01.736921"], ["updated_at", "2023-02-03 14:42:01.736921"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Leandro Haag"], ["created_at", "2023-02-03 14:42:01.737861"], ["updated_at", "2023-02-03 14:42:01.737861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marquetta Graham"], ["created_at", "2023-02-03 14:42:01.738644"], ["updated_at", "2023-02-03 14:42:01.738644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mai Glover VM"], ["created_at", "2023-02-03 14:42:01.739421"], ["updated_at", "2023-02-03 14:42:01.739421"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Franklyn Runolfsdottir"], ["created_at", "2023-02-03 14:42:01.740130"], ["updated_at", "2023-02-03 14:42:01.740130"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tawanna Green"], ["created_at", "2023-02-03 14:42:01.740872"], ["updated_at", "2023-02-03 14:42:01.740872"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Karima Lubowitz"], ["description", "Laboriosam ea magni. Aspernatur officiis est. Esse amet et."], ["attempts_number", 95], ["created_at", "2023-02-03 14:42:01.743490"], ["updated_at", "2023-02-03 14:42:01.743490"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Macy Rogahn"], ["description", "Saepe voluptas recusandae. Tenetur natus vitae. Iusto expedita qui."], ["attempts_number", 32], ["created_at", "2023-02-03 14:42:01.747902"], ["updated_at", "2023-02-03 14:42:01.747902"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.758301"], ["updated_at", "2023-02-03 14:42:01.758301"], ["name", "Kymberly Wisozk"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.759286"], ["updated_at", "2023-02-03 14:42:01.759286"], ["name", "Buena Stracke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ms. Eartha Lockman"], ["description", "Doloribus consequatur odio. Earum consequatur quod. Quis et et."], ["attempts_number", 69], ["created_at", "2023-02-03 14:42:01.761315"], ["updated_at", "2023-02-03 14:42:01.761315"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Romeo Hoppe"], ["created_at", "2023-02-03 14:42:01.761775"], ["updated_at", "2023-02-03 14:42:01.761775"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Hiram Hansen"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.762080"], ["updated_at", "2023-02-03 14:42:01.762080"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Allen Rippin"], ["created_at", "2023-02-03 14:42:01.764743"], ["updated_at", "2023-02-03 14:42:01.764743"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Lore Rohan"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.765410"], ["updated_at", "2023-02-03 14:42:01.765410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shelby Lehner"], ["created_at", "2023-02-03 14:42:01.767156"], ["updated_at", "2023-02-03 14:42:01.767156"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Victoria Nienow"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.767636"], ["updated_at", "2023-02-03 14:42:01.767636"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Freddie Farrell"], ["created_at", "2023-02-03 14:42:01.768886"], ["updated_at", "2023-02-03 14:42:01.768886"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Fr. Kyung Ruecker"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.769220"], ["updated_at", "2023-02-03 14:42:01.769220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.2ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.774331"], ["updated_at", "2023-02-03 14:42:01.774331"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.774698"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:01.775546"], ["updated_at", "2023-02-03 14:42:01.775546"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.775978"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:01.776754"], ["updated_at", "2023-02-03 14:42:01.776754"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.777075"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:01.777826"], ["updated_at", "2023-02-03 14:42:01.777826"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.778273"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.784006"], ["updated_at", "2023-02-03 14:42:01.784006"], ["name", "Gov. Von Hyatt"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.785370"], ["updated_at", "2023-02-03 14:42:01.785370"], ["name", "The Hon. Vi McDermott"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Felice Franecki"], ["description", "Ratione nobis maiores. Maiores assumenda voluptatem. Temporibus iusto natus."], ["attempts_number", 35], ["created_at", "2023-02-03 14:42:01.787479"], ["updated_at", "2023-02-03 14:42:01.787479"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Laraine Mante"], ["created_at", "2023-02-03 14:42:01.787892"], ["updated_at", "2023-02-03 14:42:01.787892"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Haywood Rempel"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.788183"], ["updated_at", "2023-02-03 14:42:01.788183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robert Luettgen"], ["created_at", "2023-02-03 14:42:01.789478"], ["updated_at", "2023-02-03 14:42:01.789478"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Rosie Stehr"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.789810"], ["updated_at", "2023-02-03 14:42:01.789810"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Hiram Conn"], ["created_at", "2023-02-03 14:42:01.791039"], ["updated_at", "2023-02-03 14:42:01.791039"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Jamel Schultz"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.791381"], ["updated_at", "2023-02-03 14:42:01.791381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Daryl Haley"], ["created_at", "2023-02-03 14:42:01.792552"], ["updated_at", "2023-02-03 14:42:01.792552"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Kristi Conroy"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.792850"], ["updated_at", "2023-02-03 14:42:01.792850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.797393"], ["updated_at", "2023-02-03 14:42:01.797393"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.797948"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:01.799518"], ["updated_at", "2023-02-03 14:42:01.799518"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.799947"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:01.800827"], ["updated_at", "2023-02-03 14:42:01.800827"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.801178"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:01.802168"], ["updated_at", "2023-02-03 14:42:01.802168"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.802512"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.809440"], ["updated_at", "2023-02-03 14:42:01.809440"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.809844"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:01.810747"], ["updated_at", "2023-02-03 14:42:01.810747"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.811255"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:01.812131"], ["updated_at", "2023-02-03 14:42:01.812131"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.812515"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:01.813688"], ["updated_at", "2023-02-03 14:42:01.813688"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.814090"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.818476"], ["updated_at", "2023-02-03 14:42:01.818476"], ["name", "The Hon. Cletus O'Connell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:01.820356"], ["updated_at", "2023-02-03 14:42:01.820356"], ["name", "Willene Grady Jr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Taina Turcotte II"], ["description", "Quisquam et illum. Facere ipsa et. Atque illo impedit."], ["attempts_number", 89], ["created_at", "2023-02-03 14:42:01.822727"], ["updated_at", "2023-02-03 14:42:01.822727"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jasper Terry JD"], ["created_at", "2023-02-03 14:42:01.823218"], ["updated_at", "2023-02-03 14:42:01.823218"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Prof. Israel Kutch"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.823512"], ["updated_at", "2023-02-03 14:42:01.823512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mary Toy DC"], ["created_at", "2023-02-03 14:42:01.824892"], ["updated_at", "2023-02-03 14:42:01.824892"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Cletus Spinka"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.825225"], ["updated_at", "2023-02-03 14:42:01.825225"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Tanisha Cruickshank"], ["created_at", "2023-02-03 14:42:01.826447"], ["updated_at", "2023-02-03 14:42:01.826447"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Debra Watsica"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.826772"], ["updated_at", "2023-02-03 14:42:01.826772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Juli Hirthe"], ["created_at", "2023-02-03 14:42:01.828171"], ["updated_at", "2023-02-03 14:42:01.828171"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Tony Kling"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.828581"], ["updated_at", "2023-02-03 14:42:01.828581"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kymberly Powlowski"], ["description", "Dolorum dolore ab. Veritatis deleniti quam. Libero quod quis."], ["attempts_number", 78], ["created_at", "2023-02-03 14:42:01.831211"], ["updated_at", "2023-02-03 14:42:01.831211"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nenita Gerhold"], ["created_at", "2023-02-03 14:42:01.832070"], ["updated_at", "2023-02-03 14:42:01.832070"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Elden Monahan"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.832937"], ["updated_at", "2023-02-03 14:42:01.832937"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Chauncey Osinski"], ["created_at", "2023-02-03 14:42:01.834662"], ["updated_at", "2023-02-03 14:42:01.834662"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Anjelica Heaney"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.835079"], ["updated_at", "2023-02-03 14:42:01.835079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tomas Kerluke III"], ["created_at", "2023-02-03 14:42:01.836432"], ["updated_at", "2023-02-03 14:42:01.836432"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Charlena Frami DC"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.836788"], ["updated_at", "2023-02-03 14:42:01.836788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dorian Braun"], ["created_at", "2023-02-03 14:42:01.838099"], ["updated_at", "2023-02-03 14:42:01.838099"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Eugene Dibbert"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.838503"], ["updated_at", "2023-02-03 14:42:01.838503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Doris Medhurst"], ["created_at", "2023-02-03 14:42:01.839723"], ["updated_at", "2023-02-03 14:42:01.839723"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Stan Ratke III"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.840025"], ["updated_at", "2023-02-03 14:42:01.840025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Terry Bartoletti"], ["created_at", "2023-02-03 14:42:01.841212"], ["updated_at", "2023-02-03 14:42:01.841212"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Fanny Yundt"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.841571"], ["updated_at", "2023-02-03 14:42:01.841571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Flo Grimes"], ["created_at", "2023-02-03 14:42:01.842776"], ["updated_at", "2023-02-03 14:42:01.842776"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Hong Wehner"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.843104"], ["updated_at", "2023-02-03 14:42:01.843104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pura Boyer JD"], ["created_at", "2023-02-03 14:42:01.844324"], ["updated_at", "2023-02-03 14:42:01.844324"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Herbert Feest MD"], ["correct", 1], ["created_at", "2023-02-03 14:42:01.844623"], ["updated_at", "2023-02-03 14:42:01.844623"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:01.849239"], ["updated_at", "2023-02-03 14:42:01.849239"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.849704"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:01.850829"], ["updated_at", "2023-02-03 14:42:01.850829"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.851149"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:01.851919"], ["updated_at", "2023-02-03 14:42:01.851919"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.852224"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:01.853067"], ["updated_at", "2023-02-03 14:42:01.853067"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.853370"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:42:01.859223"], ["updated_at", "2023-02-03 14:42:01.859223"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.859546"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:42:01.860326"], ["updated_at", "2023-02-03 14:42:01.860326"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.860634"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:42:01.861434"], ["updated_at", "2023-02-03 14:42:01.861434"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.861737"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:42:01.862491"], ["updated_at", "2023-02-03 14:42:01.862491"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.862798"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:42:01.863621"], ["updated_at", "2023-02-03 14:42:01.863621"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.863923"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:42:01.864649"], ["updated_at", "2023-02-03 14:42:01.864649"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.864950"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:42:01.865762"], ["updated_at", "2023-02-03 14:42:01.865762"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.866063"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:42:01.866897"], ["updated_at", "2023-02-03 14:42:01.866897"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:01.867216"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.2ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.361936"], ["updated_at", "2023-02-03 14:42:04.361936"], ["name", "Isaac Hauck"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Buster Conn"], ["description", "Saepe ex qui. Consequatur repellat eius. Qui quibusdam quia."], ["attempts_number", 85], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.367095"], ["updated_at", "2023-02-03 14:42:04.367095"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hank Heathcote"], ["created_at", "2023-02-03 14:42:04.380406"], ["updated_at", "2023-02-03 14:42:04.380406"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Verena Schinner"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.383198"], ["updated_at", "2023-02-03 14:42:04.383198"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.386116"], ["updated_at", "2023-02-03 14:42:04.386116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.400405"], ["updated_at", "2023-02-03 14:42:04.400405"], ["name", "Leeanne Lang PhD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Latashia King IV"], ["description", "Esse voluptatibus labore. A harum repudiandae. Numquam quos eligendi."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.401890"], ["updated_at", "2023-02-03 14:42:04.401890"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacquelyn Kshlerin"], ["created_at", "2023-02-03 14:42:04.405233"], ["updated_at", "2023-02-03 14:42:04.405233"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rev. Chang Cummerata"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.406129"], ["updated_at", "2023-02-03 14:42:04.406129"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.407284"], ["updated_at", "2023-02-03 14:42:04.407284"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.409317"], ["updated_at", "2023-02-03 14:42:04.409317"], ["name", "Ronny Thompson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Douglass Lakin Jr."], ["description", "Velit commodi aut. Dolores porro repudiandae. Iste ducimus et."], ["attempts_number", 48], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.410690"], ["updated_at", "2023-02-03 14:42:04.410690"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shannon Bergnaum"], ["created_at", "2023-02-03 14:42:04.412796"], ["updated_at", "2023-02-03 14:42:04.412796"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Velda Heaney"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.413729"], ["updated_at", "2023-02-03 14:42:04.413729"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.415006"], ["updated_at", "2023-02-03 14:42:04.415006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.417684"], ["updated_at", "2023-02-03 14:42:04.417684"], ["name", "Lavonne Mosciski I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Theo Kris"], ["description", "Deserunt modi id. Aliquam dignissimos voluptas. Et et nobis."], ["attempts_number", 86], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.419153"], ["updated_at", "2023-02-03 14:42:04.419153"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Edgardo Grant"], ["created_at", "2023-02-03 14:42:04.421292"], ["updated_at", "2023-02-03 14:42:04.421292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Shayla Larkin"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.422044"], ["updated_at", "2023-02-03 14:42:04.422044"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.423069"], ["updated_at", "2023-02-03 14:42:04.423069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.432026"], ["updated_at", "2023-02-03 14:42:04.432026"], ["name", "Felice Dietrich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sigrid Kassulke"], ["description", "Corporis adipisci quam. Vitae optio amet. Dolorem voluptatem non."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.433624"], ["updated_at", "2023-02-03 14:42:04.433624"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.444063"], ["updated_at", "2023-02-03 14:42:04.444063"], ["name", "Aldo Kiehn JD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Berniece Considine"], ["description", "Omnis nihil at. At cumque facere. In provident dignissimos."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.445592"], ["updated_at", "2023-02-03 14:42:04.445592"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Randolph Mayert"], ["description", "Suscipit officiis at. Officiis assumenda dolore. Aut vitae ipsam."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.459727"], ["updated_at", "2023-02-03 14:42:04.459727"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deandra Kilback"], ["created_at", "2023-02-03 14:42:04.461666"], ["updated_at", "2023-02-03 14:42:04.461666"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Camie Dickinson CPA"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.462807"], ["updated_at", "2023-02-03 14:42:04.462807"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ivory Breitenberg"], ["description", "Optio sit tempore. Aut enim sed. Fugit est nostrum."], ["attempts_number", 68], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.465584"], ["updated_at", "2023-02-03 14:42:04.465584"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Lyda Wolff"], ["created_at", "2023-02-03 14:42:04.467200"], ["updated_at", "2023-02-03 14:42:04.467200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Fr. Taylor Borer"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.468032"], ["updated_at", "2023-02-03 14:42:04.468032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Russ Shields"], ["description", "Quo dolore repellat. Provident harum error. Sint unde numquam."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.472180"], ["updated_at", "2023-02-03 14:42:04.472180"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Altha Larson"], ["created_at", "2023-02-03 14:42:04.473422"], ["updated_at", "2023-02-03 14:42:04.473422"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miss Rudy Rosenbaum"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.474245"], ["updated_at", "2023-02-03 14:42:04.474245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chadwick Koss"], ["description", "Sequi impedit nisi. Eaque debitis voluptatum. Velit modi corporis."], ["attempts_number", 94], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.476687"], ["updated_at", "2023-02-03 14:42:04.476687"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Shayne Ritchie"], ["created_at", "2023-02-03 14:42:04.478245"], ["updated_at", "2023-02-03 14:42:04.478245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jorge Towne"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.479305"], ["updated_at", "2023-02-03 14:42:04.479305"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "The Hon. Marinda Bartell"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.480330"], ["updated_at", "2023-02-03 14:42:04.480330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Francine Bergstrom"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.481135"], ["updated_at", "2023-02-03 14:42:04.481135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Deandre Ferry"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.482112"], ["updated_at", "2023-02-03 14:42:04.482112"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sierra Schumm"], ["description", "Eligendi eveniet atque. Optio animi possimus. Est aspernatur aut."], ["attempts_number", 60], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.488772"], ["updated_at", "2023-02-03 14:42:04.488772"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sau Jacobi"], ["created_at", "2023-02-03 14:42:04.489932"], ["updated_at", "2023-02-03 14:42:04.489932"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Denna Will"], ["description", "Ea et quos. Eum adipisci quia. Possimus veniam accusantium."], ["attempts_number", 78], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.491657"], ["updated_at", "2023-02-03 14:42:04.491657"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miyoko Daniel"], ["created_at", "2023-02-03 14:42:04.492881"], ["updated_at", "2023-02-03 14:42:04.492881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Napoleon Lakin"], ["description", "Quis autem recusandae. Laborum enim placeat. Molestiae est perferendis."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.496969"], ["updated_at", "2023-02-03 14:42:04.496969"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Thomasina Dooley"], ["created_at", "2023-02-03 14:42:04.498507"], ["updated_at", "2023-02-03 14:42:04.498507"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ed Kihn"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.499684"], ["updated_at", "2023-02-03 14:42:04.499684"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Kimbery Hyatt"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.500480"], ["updated_at", "2023-02-03 14:42:04.500480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Marty Lueilwitz"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.501285"], ["updated_at", "2023-02-03 14:42:04.501285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dominque Witting DVM"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.502024"], ["updated_at", "2023-02-03 14:42:04.502024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nestor Stokes"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.502762"], ["updated_at", "2023-02-03 14:42:04.502762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Vanda Gulgowski"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.503900"], ["updated_at", "2023-02-03 14:42:04.503900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dwain Feest DDS"], ["correct", 0], ["created_at", "2023-02-03 14:42:04.504892"], ["updated_at", "2023-02-03 14:42:04.504892"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Erin Stokes"], ["description", "Doloribus alias tenetur. Voluptas non distinctio. Modi eum aperiam."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.515181"], ["updated_at", "2023-02-03 14:42:04.515181"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Bebe White"], ["description", "Cupiditate ratione nam. Minus et et. Excepturi voluptas aperiam."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.518064"], ["updated_at", "2023-02-03 14:42:04.518064"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Latonya Nolan"], ["description", "Excepturi enim esse. Aut quia ut. Nulla aut tenetur."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.520786"], ["updated_at", "2023-02-03 14:42:04.520786"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Gov. Juanita Hoeger"], ["created_at", "2023-02-03 14:42:04.521388"], ["updated_at", "2023-02-03 14:42:04.521388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Imelda Ritchie"], ["created_at", "2023-02-03 14:42:04.522229"], ["updated_at", "2023-02-03 14:42:04.522229"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rosanna O'Kon"], ["created_at", "2023-02-03 14:42:04.522964"], ["updated_at", "2023-02-03 14:42:04.522964"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rufina Streich MD"], ["created_at", "2023-02-03 14:42:04.523745"], ["updated_at", "2023-02-03 14:42:04.523745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Natisha Howell DC"], ["created_at", "2023-02-03 14:42:04.524477"], ["updated_at", "2023-02-03 14:42:04.524477"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.0ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:42:04.525916"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Ladonna Farrell"], ["description", "Qui aut voluptatem. Corrupti aut itaque. Corrupti in optio."], ["attempts_number", 19], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.530605"], ["updated_at", "2023-02-03 14:42:04.530605"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Teodoro Wehner"], ["description", "Quibusdam repellat reprehenderit. Molestiae aut ipsam. Et voluptatem aut."], ["attempts_number", 40], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.532990"], ["updated_at", "2023-02-03 14:42:04.532990"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kimiko Moen"], ["created_at", "2023-02-03 14:42:04.533542"], ["updated_at", "2023-02-03 14:42:04.533542"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nicole Grimes V"], ["created_at", "2023-02-03 14:42:04.534309"], ["updated_at", "2023-02-03 14:42:04.534309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Velva Crist"], ["created_at", "2023-02-03 14:42:04.535018"], ["updated_at", "2023-02-03 14:42:04.535018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Percy Hansen"], ["created_at", "2023-02-03 14:42:04.535733"], ["updated_at", "2023-02-03 14:42:04.535733"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dustin Robel"], ["created_at", "2023-02-03 14:42:04.536614"], ["updated_at", "2023-02-03 14:42:04.536614"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dixie Klocko LLD"], ["created_at", "2023-02-03 14:42:04.537740"], ["updated_at", "2023-02-03 14:42:04.537740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Luise Reinger"], ["description", "Rem veritatis fugiat. Voluptates consequatur asperiores. Ea aut ad."], ["attempts_number", 66], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.540604"], ["updated_at", "2023-02-03 14:42:04.540604"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Herschel Bechtelar"], ["description", "Voluptas quaerat dolor. Excepturi sapiente id. Error quidem porro."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.544028"], ["updated_at", "2023-02-03 14:42:04.544028"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.553871"], ["updated_at", "2023-02-03 14:42:04.553871"], ["name", "Thomas Hoeger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.554859"], ["updated_at", "2023-02-03 14:42:04.554859"], ["name", "Shae Ferry"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Garry Feeney"], ["description", "Porro enim quas. Qui qui est. Autem libero fuga."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.557183"], ["updated_at", "2023-02-03 14:42:04.557183"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Msgr. Shanna Lakin"], ["created_at", "2023-02-03 14:42:04.557762"], ["updated_at", "2023-02-03 14:42:04.557762"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Prof. Warren Klocko"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.558048"], ["updated_at", "2023-02-03 14:42:04.558048"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Neda Hayes"], ["created_at", "2023-02-03 14:42:04.559343"], ["updated_at", "2023-02-03 14:42:04.559343"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Carli Prosacco"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.559658"], ["updated_at", "2023-02-03 14:42:04.559658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lorrine Wolf"], ["created_at", "2023-02-03 14:42:04.560826"], ["updated_at", "2023-02-03 14:42:04.560826"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Sen. Iesha Reilly"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.561132"], ["updated_at", "2023-02-03 14:42:04.561132"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacinto Grady DVM"], ["created_at", "2023-02-03 14:42:04.562293"], ["updated_at", "2023-02-03 14:42:04.562293"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Georgette Boyer"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.562621"], ["updated_at", "2023-02-03 14:42:04.562621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.569079"], ["updated_at", "2023-02-03 14:42:04.569079"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.569493"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:04.570433"], ["updated_at", "2023-02-03 14:42:04.570433"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.570758"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:04.571591"], ["updated_at", "2023-02-03 14:42:04.571591"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.571922"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:04.572789"], ["updated_at", "2023-02-03 14:42:04.572789"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.573089"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.577925"], ["updated_at", "2023-02-03 14:42:04.577925"], ["name", "Flor Cremin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.579391"], ["updated_at", "2023-02-03 14:42:04.579391"], ["name", "Spencer Rau"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roxy Dickens"], ["description", "Eius nam pariatur. Est sed et. Doloribus quo occaecati."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.581969"], ["updated_at", "2023-02-03 14:42:04.581969"], ["survey_type", 2]] + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Leo Gottlieb"], ["created_at", "2023-02-03 14:42:04.582928"], ["updated_at", "2023-02-03 14:42:04.582928"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lemuel Hintz"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.583467"], ["updated_at", "2023-02-03 14:42:04.583467"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Effie Macejkovic"], ["created_at", "2023-02-03 14:42:04.585299"], ["updated_at", "2023-02-03 14:42:04.585299"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Courtney Roberts I"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.585693"], ["updated_at", "2023-02-03 14:42:04.585693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Giuseppe Stokes MD"], ["created_at", "2023-02-03 14:42:04.586896"], ["updated_at", "2023-02-03 14:42:04.586896"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Pres. Stewart Ziemann"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.587211"], ["updated_at", "2023-02-03 14:42:04.587211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mrs. Petronila Streich"], ["created_at", "2023-02-03 14:42:04.588340"], ["updated_at", "2023-02-03 14:42:04.588340"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Phil Kunze"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.588619"], ["updated_at", "2023-02-03 14:42:04.588619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.592773"], ["updated_at", "2023-02-03 14:42:04.592773"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.593103"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:04.593953"], ["updated_at", "2023-02-03 14:42:04.593953"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.594257"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:04.595025"], ["updated_at", "2023-02-03 14:42:04.595025"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.595321"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:04.596120"], ["updated_at", "2023-02-03 14:42:04.596120"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.596468"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.600211"], ["updated_at", "2023-02-03 14:42:04.600211"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.600544"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:04.601362"], ["updated_at", "2023-02-03 14:42:04.601362"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.601657"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:04.602405"], ["updated_at", "2023-02-03 14:42:04.602405"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.602692"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:04.603455"], ["updated_at", "2023-02-03 14:42:04.603455"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.603738"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.607062"], ["updated_at", "2023-02-03 14:42:04.607062"], ["name", "Ms. Adan Larkin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:42:04.608427"], ["updated_at", "2023-02-03 14:42:04.608427"], ["name", "Jonathon Bergnaum"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Kacy McClure"], ["description", "Ea rerum quas. Officiis voluptatem voluptate. Facere sequi sunt."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.610453"], ["updated_at", "2023-02-03 14:42:04.610453"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Quinn Brakus"], ["created_at", "2023-02-03 14:42:04.610863"], ["updated_at", "2023-02-03 14:42:04.610863"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Richard Legros"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.611140"], ["updated_at", "2023-02-03 14:42:04.611140"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gladys Blanda"], ["created_at", "2023-02-03 14:42:04.612412"], ["updated_at", "2023-02-03 14:42:04.612412"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Miss Jeffery Lesch"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.612733"], ["updated_at", "2023-02-03 14:42:04.612733"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maisie Denesik DC"], ["created_at", "2023-02-03 14:42:04.614026"], ["updated_at", "2023-02-03 14:42:04.614026"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Sebastian Bashirian"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.614475"], ["updated_at", "2023-02-03 14:42:04.614475"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Francene Stamm Esq."], ["created_at", "2023-02-03 14:42:04.626571"], ["updated_at", "2023-02-03 14:42:04.626571"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lorilee Jakubowski"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.627127"], ["updated_at", "2023-02-03 14:42:04.627127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Andrew Anderson DO"], ["description", "Odit eaque nesciunt. Iure voluptas eum. Ut adipisci soluta."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:42:04.629032"], ["updated_at", "2023-02-03 14:42:04.629032"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Courtney Simonis Esq."], ["created_at", "2023-02-03 14:42:04.629469"], ["updated_at", "2023-02-03 14:42:04.629469"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Marla Trantow"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.629720"], ["updated_at", "2023-02-03 14:42:04.629720"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Salley Heller"], ["created_at", "2023-02-03 14:42:04.631024"], ["updated_at", "2023-02-03 14:42:04.631024"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Ingeborg Baumbach I"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.631320"], ["updated_at", "2023-02-03 14:42:04.631320"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ron Muller Jr."], ["created_at", "2023-02-03 14:42:04.632392"], ["updated_at", "2023-02-03 14:42:04.632392"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Tomas Buckridge"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.632654"], ["updated_at", "2023-02-03 14:42:04.632654"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rebeca Schuppe IV"], ["created_at", "2023-02-03 14:42:04.633715"], ["updated_at", "2023-02-03 14:42:04.633715"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Jessie Thompson"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.633976"], ["updated_at", "2023-02-03 14:42:04.633976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marquerite Schmeler"], ["created_at", "2023-02-03 14:42:04.635008"], ["updated_at", "2023-02-03 14:42:04.635008"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Jess White"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.635272"], ["updated_at", "2023-02-03 14:42:04.635272"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Daren Padberg"], ["created_at", "2023-02-03 14:42:04.636291"], ["updated_at", "2023-02-03 14:42:04.636291"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Karan Cartwright"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.636550"], ["updated_at", "2023-02-03 14:42:04.636550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Houston Smitham"], ["created_at", "2023-02-03 14:42:04.637578"], ["updated_at", "2023-02-03 14:42:04.637578"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Mrs. Cecile Hintz"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.637843"], ["updated_at", "2023-02-03 14:42:04.637843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jacinta Champlin"], ["created_at", "2023-02-03 14:42:04.638870"], ["updated_at", "2023-02-03 14:42:04.638870"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Rev. Harlan Gottlieb"], ["correct", 1], ["created_at", "2023-02-03 14:42:04.639134"], ["updated_at", "2023-02-03 14:42:04.639134"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:42:04.642852"], ["updated_at", "2023-02-03 14:42:04.642852"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.643170"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:42:04.643983"], ["updated_at", "2023-02-03 14:42:04.643983"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.644271"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:42:04.645024"], ["updated_at", "2023-02-03 14:42:04.645024"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.645303"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:42:04.646048"], ["updated_at", "2023-02-03 14:42:04.646048"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.646332"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:42:04.651798"], ["updated_at", "2023-02-03 14:42:04.651798"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.652092"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:42:04.652889"], ["updated_at", "2023-02-03 14:42:04.652889"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.653173"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:42:04.653906"], ["updated_at", "2023-02-03 14:42:04.653906"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.654187"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:42:04.654905"], ["updated_at", "2023-02-03 14:42:04.654905"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.655204"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:42:04.655922"], ["updated_at", "2023-02-03 14:42:04.655922"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.656199"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:42:04.656915"], ["updated_at", "2023-02-03 14:42:04.656915"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.657249"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:42:04.657963"], ["updated_at", "2023-02-03 14:42:04.657963"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.658238"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:42:04.658945"], ["updated_at", "2023-02-03 14:42:04.658945"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:42:04.659220"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.1ms) SELECT sqlite_version(*) +  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.433712"], ["updated_at", "2023-02-03 14:54:13.433712"], ["name", "Gayle Pagac CPA"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Garrett O'Conner DC"], ["description", "Consequuntur dolores nisi. Eos rem voluptas. Error nisi consequatur."], ["attempts_number", 79], ["created_at", "2023-02-03 14:54:13.440231"], ["updated_at", "2023-02-03 14:54:13.440231"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Robby Price CPA"], ["created_at", "2023-02-03 14:54:13.454028"], ["updated_at", "2023-02-03 14:54:13.454028"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Seth Rutherford"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.457595"], ["updated_at", "2023-02-03 14:54:13.457595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.461383"], ["updated_at", "2023-02-03 14:54:13.461383"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.477481"], ["updated_at", "2023-02-03 14:54:13.477481"], ["name", "Retha Fisher"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Hank Dibbert"], ["description", "Consequatur rerum placeat. Modi odit nam. Consequatur inventore est."], ["attempts_number", 48], ["created_at", "2023-02-03 14:54:13.478965"], ["updated_at", "2023-02-03 14:54:13.478965"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bell Nikolaus"], ["created_at", "2023-02-03 14:54:13.481909"], ["updated_at", "2023-02-03 14:54:13.481909"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Nova Oberbrunner"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.483031"], ["updated_at", "2023-02-03 14:54:13.483031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.484218"], ["updated_at", "2023-02-03 14:54:13.484218"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.486272"], ["updated_at", "2023-02-03 14:54:13.486272"], ["name", "Andre Legros"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Josef Kohler"], ["description", "Aut qui ratione. Unde nulla molestias. Quo reprehenderit blanditiis."], ["attempts_number", 43], ["created_at", "2023-02-03 14:54:13.487578"], ["updated_at", "2023-02-03 14:54:13.487578"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Inger Boyle"], ["created_at", "2023-02-03 14:54:13.489646"], ["updated_at", "2023-02-03 14:54:13.489646"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Trish O'Reilly"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.490401"], ["updated_at", "2023-02-03 14:54:13.490401"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.491402"], ["updated_at", "2023-02-03 14:54:13.491402"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.493293"], ["updated_at", "2023-02-03 14:54:13.493293"], ["name", "Jacinto Johnston"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Prof. Damien Jast"], ["description", "Ab qui nemo. Ut in dolore. Nam maiores eius."], ["attempts_number", 19], ["created_at", "2023-02-03 14:54:13.494561"], ["updated_at", "2023-02-03 14:54:13.494561"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Dorie Morar"], ["created_at", "2023-02-03 14:54:13.496585"], ["updated_at", "2023-02-03 14:54:13.496585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Genevie Hirthe"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.497634"], ["updated_at", "2023-02-03 14:54:13.497634"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.498996"], ["updated_at", "2023-02-03 14:54:13.498996"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.508672"], ["updated_at", "2023-02-03 14:54:13.508672"], ["name", "Myron Tromp"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Osvaldo Okuneva"], ["description", "Ullam beatae et. Esse sint odio. Et ipsam in."], ["attempts_number", 5], ["created_at", "2023-02-03 14:54:13.510110"], ["updated_at", "2023-02-03 14:54:13.510110"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.2ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.522842"], ["updated_at", "2023-02-03 14:54:13.522842"], ["name", "Charles West"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Andrea MacGyver Sr."], ["description", "Repellat facilis quod. Possimus error ad. Dolores velit eos."], ["attempts_number", 5], ["created_at", "2023-02-03 14:54:13.524481"], ["updated_at", "2023-02-03 14:54:13.524481"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Pres. Zina Brown"], ["description", "Est consectetur deleniti. Qui aut voluptatum. Ullam mollitia quaerat."], ["attempts_number", 60], ["created_at", "2023-02-03 14:54:13.539674"], ["updated_at", "2023-02-03 14:54:13.539674"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Keturah Stehr"], ["created_at", "2023-02-03 14:54:13.541241"], ["updated_at", "2023-02-03 14:54:13.541241"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Joaquin Heller CPA"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.542176"], ["updated_at", "2023-02-03 14:54:13.542176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Ahmad Okuneva"], ["description", "Est voluptatem neque. Alias amet rerum. Nam eaque nihil."], ["attempts_number", 88], ["created_at", "2023-02-03 14:54:13.544485"], ["updated_at", "2023-02-03 14:54:13.544485"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carylon Gottlieb"], ["created_at", "2023-02-03 14:54:13.545616"], ["updated_at", "2023-02-03 14:54:13.545616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Kayleen Herman"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.546431"], ["updated_at", "2023-02-03 14:54:13.546431"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lyla Considine"], ["description", "Quas quasi aliquam. Ea ut ut. Voluptas nisi commodi."], ["attempts_number", 54], ["created_at", "2023-02-03 14:54:13.551096"], ["updated_at", "2023-02-03 14:54:13.551096"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Charissa Zemlak"], ["created_at", "2023-02-03 14:54:13.552601"], ["updated_at", "2023-02-03 14:54:13.552601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Oneida Larkin"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.553488"], ["updated_at", "2023-02-03 14:54:13.553488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Carter Fay"], ["description", "Nulla cumque ratione. Libero corporis non. Qui odit tempora."], ["attempts_number", 23], ["created_at", "2023-02-03 14:54:13.556011"], ["updated_at", "2023-02-03 14:54:13.556011"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Angle Schaefer"], ["created_at", "2023-02-03 14:54:13.557530"], ["updated_at", "2023-02-03 14:54:13.557530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "The Hon. Isreal Cummings"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.558797"], ["updated_at", "2023-02-03 14:54:13.558797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Rev. Lewis Gutmann"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.559666"], ["updated_at", "2023-02-03 14:54:13.559666"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Brett Stiedemann"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.560433"], ["updated_at", "2023-02-03 14:54:13.560433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Mrs. Renato Treutel"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.561239"], ["updated_at", "2023-02-03 14:54:13.561239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.9ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Karl Schaden"], ["description", "Vel qui alias. Impedit reprehenderit ut. Sunt quod aut."], ["attempts_number", 25], ["created_at", "2023-02-03 14:54:13.569092"], ["updated_at", "2023-02-03 14:54:13.569092"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sharell Romaguera"], ["created_at", "2023-02-03 14:54:13.570348"], ["updated_at", "2023-02-03 14:54:13.570348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lynn Kertzmann"], ["description", "Ea esse error. Libero dolorum quia. Eligendi enim iste."], ["attempts_number", 29], ["created_at", "2023-02-03 14:54:13.572222"], ["updated_at", "2023-02-03 14:54:13.572222"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Cherrie Greenfelder"], ["created_at", "2023-02-03 14:54:13.573346"], ["updated_at", "2023-02-03 14:54:13.573346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Vito Baumbach I"], ["description", "Ea mollitia aspernatur. Nemo ut ex. Qui dolore explicabo."], ["attempts_number", 50], ["created_at", "2023-02-03 14:54:13.577087"], ["updated_at", "2023-02-03 14:54:13.577087"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ozzie Larkin"], ["created_at", "2023-02-03 14:54:13.578269"], ["updated_at", "2023-02-03 14:54:13.578269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Calvin Kozey"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.579104"], ["updated_at", "2023-02-03 14:54:13.579104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Wen Cole"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.579889"], ["updated_at", "2023-02-03 14:54:13.579889"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Jarred Skiles I"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.580669"], ["updated_at", "2023-02-03 14:54:13.580669"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Christen Boyer DO"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.581501"], ["updated_at", "2023-02-03 14:54:13.581501"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Monty Collier"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.584148"], ["updated_at", "2023-02-03 14:54:13.584148"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Prof. Lia Aufderhar"], ["correct", 0], ["created_at", "2023-02-03 14:54:13.585412"], ["updated_at", "2023-02-03 14:54:13.585412"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Amee Stamm Esq."], ["correct", 0], ["created_at", "2023-02-03 14:54:13.586275"], ["updated_at", "2023-02-03 14:54:13.586275"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rev. Chere Roob"], ["description", "Vitae ut ab. Consequatur sunt incidunt. Aut aut delectus."], ["attempts_number", 35], ["created_at", "2023-02-03 14:54:13.596775"], ["updated_at", "2023-02-03 14:54:13.596775"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Francine Hodkiewicz"], ["description", "Minima quasi rerum. Corporis repudiandae reiciendis. Distinctio itaque labore."], ["attempts_number", 63], ["created_at", "2023-02-03 14:54:13.599287"], ["updated_at", "2023-02-03 14:54:13.599287"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kim Stiedemann"], ["description", "Perferendis accusantium consequuntur. Aliquid temporibus eos. Deserunt mollitia debitis."], ["attempts_number", 67], ["created_at", "2023-02-03 14:54:13.602476"], ["updated_at", "2023-02-03 14:54:13.602476"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mr. Rod Frami"], ["created_at", "2023-02-03 14:54:13.603264"], ["updated_at", "2023-02-03 14:54:13.603264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Merrill Spinka"], ["created_at", "2023-02-03 14:54:13.604232"], ["updated_at", "2023-02-03 14:54:13.604232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sen. Morton Hudson"], ["created_at", "2023-02-03 14:54:13.605041"], ["updated_at", "2023-02-03 14:54:13.605041"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Melvin Weissnat"], ["created_at", "2023-02-03 14:54:13.605810"], ["updated_at", "2023-02-03 14:54:13.605810"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Don Klocko"], ["created_at", "2023-02-03 14:54:13.606588"], ["updated_at", "2023-02-03 14:54:13.606588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.0ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:54:13.607847"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Pa Gusikowski"], ["description", "Odit at laudantium. Libero quibusdam quisquam. Et aut in."], ["attempts_number", 84], ["created_at", "2023-02-03 14:54:13.612383"], ["updated_at", "2023-02-03 14:54:13.612383"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Reuben Kohler"], ["description", "Eos rerum culpa. Dolor ut dolores. Ipsa ut eos."], ["attempts_number", 79], ["created_at", "2023-02-03 14:54:13.614255"], ["updated_at", "2023-02-03 14:54:13.614255"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Joette Pagac"], ["created_at", "2023-02-03 14:54:13.614648"], ["updated_at", "2023-02-03 14:54:13.614648"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lore Parker"], ["created_at", "2023-02-03 14:54:13.615522"], ["updated_at", "2023-02-03 14:54:13.615522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rev. Kasha Bruen"], ["created_at", "2023-02-03 14:54:13.616730"], ["updated_at", "2023-02-03 14:54:13.616730"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Adrianna Hegmann"], ["created_at", "2023-02-03 14:54:13.617615"], ["updated_at", "2023-02-03 14:54:13.617615"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Beverly Langworth"], ["created_at", "2023-02-03 14:54:13.618745"], ["updated_at", "2023-02-03 14:54:13.618745"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mac Farrell"], ["created_at", "2023-02-03 14:54:13.620037"], ["updated_at", "2023-02-03 14:54:13.620037"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lewis Swaniawski"], ["description", "Eum minus magnam. Deserunt perspiciatis in. Et error ea."], ["attempts_number", 21], ["created_at", "2023-02-03 14:54:13.622775"], ["updated_at", "2023-02-03 14:54:13.622775"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Fr. Ron Shields"], ["description", "Quis vero est. Nisi repellat illo. Autem ut qui."], ["attempts_number", 81], ["created_at", "2023-02-03 14:54:13.626197"], ["updated_at", "2023-02-03 14:54:13.626197"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.636175"], ["updated_at", "2023-02-03 14:54:13.636175"], ["name", "Mohamed Trantow"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.637258"], ["updated_at", "2023-02-03 14:54:13.637258"], ["name", "Cyndy Rempel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Cleora Orn"], ["description", "Est vel sit. Atque in consectetur. Eveniet vel et."], ["attempts_number", 92], ["created_at", "2023-02-03 14:54:13.639605"], ["updated_at", "2023-02-03 14:54:13.639605"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Aldo Carter"], ["created_at", "2023-02-03 14:54:13.640127"], ["updated_at", "2023-02-03 14:54:13.640127"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Twila Osinski"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.640433"], ["updated_at", "2023-02-03 14:54:13.640433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mellisa Green Jr."], ["created_at", "2023-02-03 14:54:13.641770"], ["updated_at", "2023-02-03 14:54:13.641770"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Imelda Schowalter"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.642114"], ["updated_at", "2023-02-03 14:54:13.642114"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "The Hon. Walker Wilderman"], ["created_at", "2023-02-03 14:54:13.643432"], ["updated_at", "2023-02-03 14:54:13.643432"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Nadine Pagac"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.643818"], ["updated_at", "2023-02-03 14:54:13.643818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hershel Mitchell"], ["created_at", "2023-02-03 14:54:13.645209"], ["updated_at", "2023-02-03 14:54:13.645209"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Theron Gerlach"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.645815"], ["updated_at", "2023-02-03 14:54:13.645815"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.652119"], ["updated_at", "2023-02-03 14:54:13.652119"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.652570"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:13.653660"], ["updated_at", "2023-02-03 14:54:13.653660"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.654038"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:13.654870"], ["updated_at", "2023-02-03 14:54:13.654870"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.655198"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:13.655975"], ["updated_at", "2023-02-03 14:54:13.655975"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.656303"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.3ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.661617"], ["updated_at", "2023-02-03 14:54:13.661617"], ["name", "Brenton Waters"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.663705"], ["updated_at", "2023-02-03 14:54:13.663705"], ["name", "Burt Hudson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Kevin Reichel"], ["description", "Repellat voluptatem qui. Doloremque est suscipit. Excepturi eum perspiciatis."], ["attempts_number", 48], ["created_at", "2023-02-03 14:54:13.666058"], ["updated_at", "2023-02-03 14:54:13.666058"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Many Jakubowski CPA"], ["created_at", "2023-02-03 14:54:13.666733"], ["updated_at", "2023-02-03 14:54:13.666733"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Rolande Kuhlman DDS"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.667073"], ["updated_at", "2023-02-03 14:54:13.667073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lucile Hagenes"], ["created_at", "2023-02-03 14:54:13.668662"], ["updated_at", "2023-02-03 14:54:13.668662"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Caitlyn West"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.669139"], ["updated_at", "2023-02-03 14:54:13.669139"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Parker Shanahan"], ["created_at", "2023-02-03 14:54:13.670444"], ["updated_at", "2023-02-03 14:54:13.670444"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Dr. Kimbery Kirlin"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.670764"], ["updated_at", "2023-02-03 14:54:13.670764"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Roland Hagenes"], ["created_at", "2023-02-03 14:54:13.672024"], ["updated_at", "2023-02-03 14:54:13.672024"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Roxana Thiel"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.672353"], ["updated_at", "2023-02-03 14:54:13.672353"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.688733"], ["updated_at", "2023-02-03 14:54:13.688733"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.689176"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:13.690303"], ["updated_at", "2023-02-03 14:54:13.690303"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.690661"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:13.691505"], ["updated_at", "2023-02-03 14:54:13.691505"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.691903"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:13.692756"], ["updated_at", "2023-02-03 14:54:13.692756"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.693117"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.697263"], ["updated_at", "2023-02-03 14:54:13.697263"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.697683"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:13.698772"], ["updated_at", "2023-02-03 14:54:13.698772"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.699190"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:13.700219"], ["updated_at", "2023-02-03 14:54:13.700219"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.700592"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:13.701462"], ["updated_at", "2023-02-03 14:54:13.701462"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.701896"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.707040"], ["updated_at", "2023-02-03 14:54:13.707040"], ["name", "Arnulfo Larkin"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:13.709560"], ["updated_at", "2023-02-03 14:54:13.709560"], ["name", "Kathaleen Upton"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rickie Skiles"], ["description", "Impedit dolorem qui. Est omnis at. Quibusdam doloribus expedita."], ["attempts_number", 74], ["created_at", "2023-02-03 14:54:13.712624"], ["updated_at", "2023-02-03 14:54:13.712624"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Boyd Feil"], ["created_at", "2023-02-03 14:54:13.713512"], ["updated_at", "2023-02-03 14:54:13.713512"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Megan Renner JD"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.714010"], ["updated_at", "2023-02-03 14:54:13.714010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Riley Walter"], ["created_at", "2023-02-03 14:54:13.715693"], ["updated_at", "2023-02-03 14:54:13.715693"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Ezequiel Bins"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.716265"], ["updated_at", "2023-02-03 14:54:13.716265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Serafina Krajcik"], ["created_at", "2023-02-03 14:54:13.718259"], ["updated_at", "2023-02-03 14:54:13.718259"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Ezra Waelchi"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.719117"], ["updated_at", "2023-02-03 14:54:13.719117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kurtis Hermiston"], ["created_at", "2023-02-03 14:54:13.721626"], ["updated_at", "2023-02-03 14:54:13.721626"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Cecily Carroll"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.722289"], ["updated_at", "2023-02-03 14:54:13.722289"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Lilliana Bahringer"], ["description", "Nulla veritatis et. Eaque repellendus qui. Nulla porro et."], ["attempts_number", 85], ["created_at", "2023-02-03 14:54:13.724682"], ["updated_at", "2023-02-03 14:54:13.724682"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ellis Funk"], ["created_at", "2023-02-03 14:54:13.725207"], ["updated_at", "2023-02-03 14:54:13.725207"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Zack Carter"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.725471"], ["updated_at", "2023-02-03 14:54:13.725471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Amos Kuvalis"], ["created_at", "2023-02-03 14:54:13.726670"], ["updated_at", "2023-02-03 14:54:13.726670"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Odessa Donnelly"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.726966"], ["updated_at", "2023-02-03 14:54:13.726966"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pasquale Volkman"], ["created_at", "2023-02-03 14:54:13.728064"], ["updated_at", "2023-02-03 14:54:13.728064"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Mary Runolfsdottir"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.728354"], ["updated_at", "2023-02-03 14:54:13.728354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jed Klocko"], ["created_at", "2023-02-03 14:54:13.729467"], ["updated_at", "2023-02-03 14:54:13.729467"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Pres. Sherill Tremblay"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.729760"], ["updated_at", "2023-02-03 14:54:13.729760"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fr. Theo Lindgren"], ["created_at", "2023-02-03 14:54:13.730861"], ["updated_at", "2023-02-03 14:54:13.730861"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Jamey Goyette"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.731166"], ["updated_at", "2023-02-03 14:54:13.731166"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Theola Witting"], ["created_at", "2023-02-03 14:54:13.732292"], ["updated_at", "2023-02-03 14:54:13.732292"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Daryl Gislason"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.732619"], ["updated_at", "2023-02-03 14:54:13.732619"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Breana Reichert"], ["created_at", "2023-02-03 14:54:13.733896"], ["updated_at", "2023-02-03 14:54:13.733896"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Rep. Charita Stanton"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.734427"], ["updated_at", "2023-02-03 14:54:13.734427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Raymond Farrell"], ["created_at", "2023-02-03 14:54:13.735679"], ["updated_at", "2023-02-03 14:54:13.735679"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Stewart Abernathy"], ["correct", 1], ["created_at", "2023-02-03 14:54:13.735997"], ["updated_at", "2023-02-03 14:54:13.735997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:13.739767"], ["updated_at", "2023-02-03 14:54:13.739767"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.740115"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:13.740980"], ["updated_at", "2023-02-03 14:54:13.740980"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.741312"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:13.742303"], ["updated_at", "2023-02-03 14:54:13.742303"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.742672"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:13.743500"], ["updated_at", "2023-02-03 14:54:13.743500"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.743817"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:54:13.749552"], ["updated_at", "2023-02-03 14:54:13.749552"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.749915"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:54:13.750707"], ["updated_at", "2023-02-03 14:54:13.750707"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.751018"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:54:13.751766"], ["updated_at", "2023-02-03 14:54:13.751766"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.752109"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:54:13.752860"], ["updated_at", "2023-02-03 14:54:13.752860"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.753177"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:54:13.753928"], ["updated_at", "2023-02-03 14:54:13.753928"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.754311"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:54:13.755055"], ["updated_at", "2023-02-03 14:54:13.755055"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.755360"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:54:13.756137"], ["updated_at", "2023-02-03 14:54:13.756137"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.756454"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:54:13.757195"], ["updated_at", "2023-02-03 14:54:13.757195"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:13.757500"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (1.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.310535"], ["updated_at", "2023-02-03 14:54:16.310535"], ["name", "Megan Daugherty"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sanjuanita Gerhold"], ["description", "Nostrum qui ab. Est eum vel. Et quos tenetur."], ["attempts_number", 63], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.315842"], ["updated_at", "2023-02-03 14:54:16.315842"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elmo Berge"], ["created_at", "2023-02-03 14:54:16.329342"], ["updated_at", "2023-02-03 14:54:16.329342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ike Metz DO"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.332203"], ["updated_at", "2023-02-03 14:54:16.332203"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.335240"], ["updated_at", "2023-02-03 14:54:16.335240"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.349560"], ["updated_at", "2023-02-03 14:54:16.349560"], ["name", "Corina Kreiger"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pres. Margaret Bayer"], ["description", "Sint enim quia. Error et et. Ipsum reprehenderit a."], ["attempts_number", 31], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.351092"], ["updated_at", "2023-02-03 14:54:16.351092"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Scot Gutmann"], ["created_at", "2023-02-03 14:54:16.353850"], ["updated_at", "2023-02-03 14:54:16.353850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Andria Wolff"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.354755"], ["updated_at", "2023-02-03 14:54:16.354755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.355831"], ["updated_at", "2023-02-03 14:54:16.355831"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.357980"], ["updated_at", "2023-02-03 14:54:16.357980"], ["name", "Thuy Marks"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mark Cremin"], ["description", "Dicta ab laboriosam. Quo unde sunt. Rerum reprehenderit autem."], ["attempts_number", 22], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.359210"], ["updated_at", "2023-02-03 14:54:16.359210"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lesli Hegmann"], ["created_at", "2023-02-03 14:54:16.361182"], ["updated_at", "2023-02-03 14:54:16.361182"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Herbert Luettgen"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.361885"], ["updated_at", "2023-02-03 14:54:16.361885"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.362836"], ["updated_at", "2023-02-03 14:54:16.362836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.364741"], ["updated_at", "2023-02-03 14:54:16.364741"], ["name", "Kelley Grimes"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Hosea Armstrong"], ["description", "Tempora rerum commodi. Dolor eius quaerat. Quos pariatur praesentium."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.366384"], ["updated_at", "2023-02-03 14:54:16.366384"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Edwin Feest"], ["created_at", "2023-02-03 14:54:16.369365"], ["updated_at", "2023-02-03 14:54:16.369365"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Darius Gleichner DVM"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.370210"], ["updated_at", "2023-02-03 14:54:16.370210"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.371270"], ["updated_at", "2023-02-03 14:54:16.371270"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.379815"], ["updated_at", "2023-02-03 14:54:16.379815"], ["name", "Gov. Elfreda Ebert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Song Grant"], ["description", "Perferendis consequatur ipsum. Veniam numquam sed. Similique quam velit."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.381206"], ["updated_at", "2023-02-03 14:54:16.381206"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.9ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.395754"], ["updated_at", "2023-02-03 14:54:16.395754"], ["name", "Leonardo Beier I"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lakenya Lockman"], ["description", "Enim tempora illo. Repudiandae est quia. Corrupti et deleniti."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.397405"], ["updated_at", "2023-02-03 14:54:16.397405"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.6ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terrell Bradtke"], ["description", "Hic a corrupti. Sed cumque qui. Aut vitae consectetur."], ["attempts_number", 92], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.418311"], ["updated_at", "2023-02-03 14:54:16.418311"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Launa Upton DDS"], ["created_at", "2023-02-03 14:54:16.420294"], ["updated_at", "2023-02-03 14:54:16.420294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Lemuel Lockman"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.421316"], ["updated_at", "2023-02-03 14:54:16.421316"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Davis Upton PhD"], ["description", "Qui itaque saepe. Modi sint architecto. Sed laudantium aliquid."], ["attempts_number", 95], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.424059"], ["updated_at", "2023-02-03 14:54:16.424059"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Lemuel Predovic"], ["created_at", "2023-02-03 14:54:16.426061"], ["updated_at", "2023-02-03 14:54:16.426061"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Toby Jacobs"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.427104"], ["updated_at", "2023-02-03 14:54:16.427104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sheron Dare"], ["description", "Veritatis aut magni. Qui in ab. Amet id veritatis."], ["attempts_number", 46], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.431474"], ["updated_at", "2023-02-03 14:54:16.431474"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gerald Balistreri"], ["created_at", "2023-02-03 14:54:16.433091"], ["updated_at", "2023-02-03 14:54:16.433091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Alaina Murray"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.434029"], ["updated_at", "2023-02-03 14:54:16.434029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jaymie Johnson"], ["description", "Quo ut et. Quia et qui. Quia necessitatibus sequi."], ["attempts_number", 38], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.437394"], ["updated_at", "2023-02-03 14:54:16.437394"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Marceline Frami"], ["created_at", "2023-02-03 14:54:16.438732"], ["updated_at", "2023-02-03 14:54:16.438732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Christel Kuhn PhD"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.439575"], ["updated_at", "2023-02-03 14:54:16.439575"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ma Jacobi DDS"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.440381"], ["updated_at", "2023-02-03 14:54:16.440381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gary Okuneva"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.441116"], ["updated_at", "2023-02-03 14:54:16.441116"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Marcos Welch"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.441854"], ["updated_at", "2023-02-03 14:54:16.441854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mr. Nickie Powlowski"], ["description", "Porro saepe ipsam. Minus nam delectus. Maiores quo magnam."], ["attempts_number", 44], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.448528"], ["updated_at", "2023-02-03 14:54:16.448528"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Olimpia Schaden"], ["created_at", "2023-02-03 14:54:16.449935"], ["updated_at", "2023-02-03 14:54:16.449935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Reynaldo McKenzie"], ["description", "Est iure aliquam. Dolores consequatur officiis. Inventore minima eos."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.452445"], ["updated_at", "2023-02-03 14:54:16.452445"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gerard Armstrong"], ["created_at", "2023-02-03 14:54:16.454281"], ["updated_at", "2023-02-03 14:54:16.454281"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.5ms) rollback transaction + TRANSACTION (0.3ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (2.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bertram Kuhlman"], ["description", "Aut ullam sit. Necessitatibus non eos. Eum sed aperiam."], ["attempts_number", 50], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.466775"], ["updated_at", "2023-02-03 14:54:16.466775"], ["survey_type", 0]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Melvin Leuschke"], ["created_at", "2023-02-03 14:54:16.471509"], ["updated_at", "2023-02-03 14:54:16.471509"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Guadalupe Parker"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.473629"], ["updated_at", "2023-02-03 14:54:16.473629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ellis Metz"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.478080"], ["updated_at", "2023-02-03 14:54:16.478080"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Jennie Hilpert"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.481173"], ["updated_at", "2023-02-03 14:54:16.481173"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Miki Quigley"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.483506"], ["updated_at", "2023-02-03 14:54:16.483506"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Sen. Lorenza Heidenreich"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.486274"], ["updated_at", "2023-02-03 14:54:16.486274"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tracy Champlin DDS"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.488334"], ["updated_at", "2023-02-03 14:54:16.488334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Rana Dare"], ["correct", 0], ["created_at", "2023-02-03 14:54:16.489315"], ["updated_at", "2023-02-03 14:54:16.489315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Brooks Fahey V"], ["description", "Dolor commodi nesciunt. Voluptas dolore omnis. Nostrum quod culpa."], ["attempts_number", 23], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.501314"], ["updated_at", "2023-02-03 14:54:16.501314"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Janette Ankunding"], ["description", "Nam omnis quidem. Quisquam cupiditate fugiat. Vel consequatur vitae."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.504699"], ["updated_at", "2023-02-03 14:54:16.504699"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Blake Dietrich"], ["description", "Odio quasi quia. Dignissimos et ut. Tenetur assumenda voluptatem."], ["attempts_number", 91], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.508395"], ["updated_at", "2023-02-03 14:54:16.508395"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ms. Lance Gibson"], ["created_at", "2023-02-03 14:54:16.509040"], ["updated_at", "2023-02-03 14:54:16.509040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Richie Feest"], ["created_at", "2023-02-03 14:54:16.509980"], ["updated_at", "2023-02-03 14:54:16.509980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alejandro Orn"], ["created_at", "2023-02-03 14:54:16.510935"], ["updated_at", "2023-02-03 14:54:16.510935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Doug Veum"], ["created_at", "2023-02-03 14:54:16.511679"], ["updated_at", "2023-02-03 14:54:16.511679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jacquelin Quitzon DVM"], ["created_at", "2023-02-03 14:54:16.512412"], ["updated_at", "2023-02-03 14:54:16.512412"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:54:16.513926"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Zaida Swift"], ["description", "Officia in modi. Beatae velit error. Voluptatem aut ea."], ["attempts_number", 73], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.519522"], ["updated_at", "2023-02-03 14:54:16.519522"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Chauncey Fritsch"], ["description", "Facere est repellat. Sunt porro ea. Sapiente reprehenderit voluptate."], ["attempts_number", 27], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.521475"], ["updated_at", "2023-02-03 14:54:16.521475"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mammie Cormier"], ["created_at", "2023-02-03 14:54:16.521866"], ["updated_at", "2023-02-03 14:54:16.521866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Soo Schamberger"], ["created_at", "2023-02-03 14:54:16.522645"], ["updated_at", "2023-02-03 14:54:16.522645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nicolasa Schimmel"], ["created_at", "2023-02-03 14:54:16.523634"], ["updated_at", "2023-02-03 14:54:16.523634"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Reanna Hagenes"], ["created_at", "2023-02-03 14:54:16.524504"], ["updated_at", "2023-02-03 14:54:16.524504"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Angelo Crooks"], ["created_at", "2023-02-03 14:54:16.525215"], ["updated_at", "2023-02-03 14:54:16.525215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cedrick Ferry"], ["created_at", "2023-02-03 14:54:16.525965"], ["updated_at", "2023-02-03 14:54:16.525965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loni Larson"], ["description", "Nihil vero sunt. Et dolores aut. Consequatur qui blanditiis."], ["attempts_number", 62], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.528611"], ["updated_at", "2023-02-03 14:54:16.528611"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Felix Hudson I"], ["description", "Officia sunt accusantium. Ab exercitationem eum. Perspiciatis dolorum qui."], ["attempts_number", 76], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.532414"], ["updated_at", "2023-02-03 14:54:16.532414"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.541996"], ["updated_at", "2023-02-03 14:54:16.541996"], ["name", "Mildred Jones"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.542989"], ["updated_at", "2023-02-03 14:54:16.542989"], ["name", "Stewart Zboncak"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Edelmira Hettinger"], ["description", "Quis saepe et. Est quaerat aspernatur. Qui et sint."], ["attempts_number", 96], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.544856"], ["updated_at", "2023-02-03 14:54:16.544856"], ["survey_type", 0]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Rudolf Conroy"], ["created_at", "2023-02-03 14:54:16.545237"], ["updated_at", "2023-02-03 14:54:16.545237"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Bertram Lockman"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.545505"], ["updated_at", "2023-02-03 14:54:16.545505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Annemarie O'Hara V"], ["created_at", "2023-02-03 14:54:16.546796"], ["updated_at", "2023-02-03 14:54:16.546796"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Lanny Bernhard V"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.547091"], ["updated_at", "2023-02-03 14:54:16.547091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gus Cummings Sr."], ["created_at", "2023-02-03 14:54:16.548380"], ["updated_at", "2023-02-03 14:54:16.548380"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Kary Wisoky"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.549020"], ["updated_at", "2023-02-03 14:54:16.549020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Morris Herzog"], ["created_at", "2023-02-03 14:54:16.551222"], ["updated_at", "2023-02-03 14:54:16.551222"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Fr. Joan Macejkovic"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.552541"], ["updated_at", "2023-02-03 14:54:16.552541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.558625"], ["updated_at", "2023-02-03 14:54:16.558625"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.559140"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:16.560319"], ["updated_at", "2023-02-03 14:54:16.560319"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.560665"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:16.561519"], ["updated_at", "2023-02-03 14:54:16.561519"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.561847"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:16.562690"], ["updated_at", "2023-02-03 14:54:16.562690"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.563007"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.569194"], ["updated_at", "2023-02-03 14:54:16.569194"], ["name", "Terrell Armstrong"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.570228"], ["updated_at", "2023-02-03 14:54:16.570228"], ["name", "Janis Bradtke DVM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Yi Koepp"], ["description", "Voluptatem est illum. Voluptatum est voluptas. Voluptatum qui porro."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.572094"], ["updated_at", "2023-02-03 14:54:16.572094"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sparkle Kunde"], ["created_at", "2023-02-03 14:54:16.572466"], ["updated_at", "2023-02-03 14:54:16.572466"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "The Hon. Pamila Green"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.572737"], ["updated_at", "2023-02-03 14:54:16.572737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Jerrold McKenzie"], ["created_at", "2023-02-03 14:54:16.573989"], ["updated_at", "2023-02-03 14:54:16.573989"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Amy Olson"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.574306"], ["updated_at", "2023-02-03 14:54:16.574306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Chester Graham"], ["created_at", "2023-02-03 14:54:16.575630"], ["updated_at", "2023-02-03 14:54:16.575630"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Audrea Bruen"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.576030"], ["updated_at", "2023-02-03 14:54:16.576030"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Anastacia Brakus"], ["created_at", "2023-02-03 14:54:16.577231"], ["updated_at", "2023-02-03 14:54:16.577231"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Hermelinda Bergstrom"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.577544"], ["updated_at", "2023-02-03 14:54:16.577544"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.581545"], ["updated_at", "2023-02-03 14:54:16.581545"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.581942"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:16.583010"], ["updated_at", "2023-02-03 14:54:16.583010"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.583393"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:16.584656"], ["updated_at", "2023-02-03 14:54:16.584656"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.585051"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:16.585902"], ["updated_at", "2023-02-03 14:54:16.585902"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.586204"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.589646"], ["updated_at", "2023-02-03 14:54:16.589646"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.589956"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:16.590776"], ["updated_at", "2023-02-03 14:54:16.590776"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.591077"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:16.591835"], ["updated_at", "2023-02-03 14:54:16.591835"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.592129"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:16.592904"], ["updated_at", "2023-02-03 14:54:16.592904"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.593196"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.596340"], ["updated_at", "2023-02-03 14:54:16.596340"], ["name", "Rudy Watsica"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:16.598171"], ["updated_at", "2023-02-03 14:54:16.598171"], ["name", "Ellis Hudson"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dr. Clifton Bradtke"], ["description", "Sit qui nihil. Consectetur id temporibus. Ullam omnis labore."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.600670"], ["updated_at", "2023-02-03 14:54:16.600670"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Jeanene Lehner"], ["created_at", "2023-02-03 14:54:16.601409"], ["updated_at", "2023-02-03 14:54:16.601409"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Kellee Grady"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.601818"], ["updated_at", "2023-02-03 14:54:16.601818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Fr. Xiomara Lubowitz"], ["created_at", "2023-02-03 14:54:16.603434"], ["updated_at", "2023-02-03 14:54:16.603434"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Charlene Bayer"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.603778"], ["updated_at", "2023-02-03 14:54:16.603778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sharda Prohaska"], ["created_at", "2023-02-03 14:54:16.604949"], ["updated_at", "2023-02-03 14:54:16.604949"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Dorian Wolf"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.605258"], ["updated_at", "2023-02-03 14:54:16.605258"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pres. Wilton Schinner"], ["created_at", "2023-02-03 14:54:16.617190"], ["updated_at", "2023-02-03 14:54:16.617190"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Pres. Cynthia Green"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.617795"], ["updated_at", "2023-02-03 14:54:16.617795"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fr. Horacio Turner"], ["description", "Sed fugiat voluptatibus. Eius ratione possimus. Alias laborum ut."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:16.619920"], ["updated_at", "2023-02-03 14:54:16.619920"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Richie Luettgen"], ["created_at", "2023-02-03 14:54:16.620270"], ["updated_at", "2023-02-03 14:54:16.620270"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Alfredia Hermiston DC"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.620491"], ["updated_at", "2023-02-03 14:54:16.620491"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Tobi Jenkins I"], ["created_at", "2023-02-03 14:54:16.621609"], ["updated_at", "2023-02-03 14:54:16.621609"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Youlanda Armstrong"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.621870"], ["updated_at", "2023-02-03 14:54:16.621870"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Harris Leannon"], ["created_at", "2023-02-03 14:54:16.622935"], ["updated_at", "2023-02-03 14:54:16.622935"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Nila Upton Sr."], ["correct", 1], ["created_at", "2023-02-03 14:54:16.623255"], ["updated_at", "2023-02-03 14:54:16.623255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ashanti O'Conner"], ["created_at", "2023-02-03 14:54:16.624319"], ["updated_at", "2023-02-03 14:54:16.624319"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Estell Von"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.624590"], ["updated_at", "2023-02-03 14:54:16.624590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bret McLaughlin DVM"], ["created_at", "2023-02-03 14:54:16.625663"], ["updated_at", "2023-02-03 14:54:16.625663"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Bonnie Block"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.625921"], ["updated_at", "2023-02-03 14:54:16.625921"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jewell Thiel"], ["created_at", "2023-02-03 14:54:16.626950"], ["updated_at", "2023-02-03 14:54:16.626950"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Michiko Stark LLD"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.627209"], ["updated_at", "2023-02-03 14:54:16.627209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Boyd Olson"], ["created_at", "2023-02-03 14:54:16.628210"], ["updated_at", "2023-02-03 14:54:16.628210"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Lenna Olson"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.628465"], ["updated_at", "2023-02-03 14:54:16.628465"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Augustine Hegmann"], ["created_at", "2023-02-03 14:54:16.629468"], ["updated_at", "2023-02-03 14:54:16.629468"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Jazmin Padberg"], ["correct", 1], ["created_at", "2023-02-03 14:54:16.629727"], ["updated_at", "2023-02-03 14:54:16.629727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:16.633444"], ["updated_at", "2023-02-03 14:54:16.633444"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.633812"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:16.634639"], ["updated_at", "2023-02-03 14:54:16.634639"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.634927"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:16.635662"], ["updated_at", "2023-02-03 14:54:16.635662"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.635969"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:16.636688"], ["updated_at", "2023-02-03 14:54:16.636688"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.636969"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:54:16.642484"], ["updated_at", "2023-02-03 14:54:16.642484"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.642783"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:54:16.643548"], ["updated_at", "2023-02-03 14:54:16.643548"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.643832"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:54:16.644580"], ["updated_at", "2023-02-03 14:54:16.644580"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.644856"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:54:16.645579"], ["updated_at", "2023-02-03 14:54:16.645579"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.645852"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:54:16.646589"], ["updated_at", "2023-02-03 14:54:16.646589"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.646864"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:54:16.647582"], ["updated_at", "2023-02-03 14:54:16.647582"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.647956"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:54:16.648812"], ["updated_at", "2023-02-03 14:54:16.648812"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.649106"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:54:16.649869"], ["updated_at", "2023-02-03 14:54:16.649869"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:16.650156"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.1ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (1.2ms) SELECT sqlite_version(*) +  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.2ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.211870"], ["updated_at", "2023-02-03 14:54:33.211870"], ["name", "Galen Welch"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Rasheeda Rohan II"], ["description", "Voluptatem dolor perspiciatis. Qui error autem. Odit et aspernatur."], ["attempts_number", 62], ["created_at", "2023-02-03 14:54:33.219657"], ["updated_at", "2023-02-03 14:54:33.219657"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Quintin Thiel"], ["created_at", "2023-02-03 14:54:33.235286"], ["updated_at", "2023-02-03 14:54:33.235286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Setsuko Mayert"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.239232"], ["updated_at", "2023-02-03 14:54:33.239232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.243151"], ["updated_at", "2023-02-03 14:54:33.243151"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.260077"], ["updated_at", "2023-02-03 14:54:33.260077"], ["name", "Fr. Ron Feil"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "The Hon. Raphael Hoppe"], ["description", "Ut blanditiis aperiam. Quaerat sint sapiente. Aut animi itaque."], ["attempts_number", 77], ["created_at", "2023-02-03 14:54:33.261660"], ["updated_at", "2023-02-03 14:54:33.261660"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Flora Kihn"], ["created_at", "2023-02-03 14:54:33.263890"], ["updated_at", "2023-02-03 14:54:33.263890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Tod Stokes"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.264725"], ["updated_at", "2023-02-03 14:54:33.264725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.266032"], ["updated_at", "2023-02-03 14:54:33.266032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.268674"], ["updated_at", "2023-02-03 14:54:33.268674"], ["name", "Rico Walker"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Heath Friesen DO"], ["description", "Est et rerum. Magnam enim asperiores. Illum neque tempora."], ["attempts_number", 95], ["created_at", "2023-02-03 14:54:33.270733"], ["updated_at", "2023-02-03 14:54:33.270733"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Maria Walter"], ["created_at", "2023-02-03 14:54:33.272867"], ["updated_at", "2023-02-03 14:54:33.272867"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Mitchell Weber"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.273649"], ["updated_at", "2023-02-03 14:54:33.273649"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.274729"], ["updated_at", "2023-02-03 14:54:33.274729"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.276857"], ["updated_at", "2023-02-03 14:54:33.276857"], ["name", "Darren Keebler"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Nolan Hauck Jr."], ["description", "Consequatur rerum qui. Ea nihil excepturi. Est enim quis."], ["attempts_number", 29], ["created_at", "2023-02-03 14:54:33.287735"], ["updated_at", "2023-02-03 14:54:33.287735"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Hobert Koch"], ["created_at", "2023-02-03 14:54:33.290491"], ["updated_at", "2023-02-03 14:54:33.290491"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Reena Hoppe"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.291577"], ["updated_at", "2023-02-03 14:54:33.291577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.292664"], ["updated_at", "2023-02-03 14:54:33.292664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.302220"], ["updated_at", "2023-02-03 14:54:33.302220"], ["name", "Bailey Rowe VM"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Pres. Adelina Wuckert"], ["description", "Delectus est quia. Quae et est. Dolorem magnam animi."], ["attempts_number", 5], ["created_at", "2023-02-03 14:54:33.304127"], ["updated_at", "2023-02-03 14:54:33.304127"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.3ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.313723"], ["updated_at", "2023-02-03 14:54:33.313723"], ["name", "Lakesha Emmerich"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Daisey Kerluke DVM"], ["description", "Repudiandae numquam expedita. Eum aut sed. Commodi ut quo."], ["attempts_number", 5], ["created_at", "2023-02-03 14:54:33.315197"], ["updated_at", "2023-02-03 14:54:33.315197"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Shon Goldner Sr."], ["description", "Quibusdam et repellat. Est veritatis vel. Sint tempore ratione."], ["attempts_number", 78], ["created_at", "2023-02-03 14:54:33.330119"], ["updated_at", "2023-02-03 14:54:33.330119"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Bao Pfeffer CPA"], ["created_at", "2023-02-03 14:54:33.331558"], ["updated_at", "2023-02-03 14:54:33.331558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Joselyn Brekke"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.332546"], ["updated_at", "2023-02-03 14:54:33.332546"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Tena Mayert"], ["description", "Quisquam dignissimos dolorem. Labore delectus repellat. Pariatur qui et."], ["attempts_number", 43], ["created_at", "2023-02-03 14:54:33.335141"], ["updated_at", "2023-02-03 14:54:33.335141"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Mr. Ila Konopelski"], ["created_at", "2023-02-03 14:54:33.336952"], ["updated_at", "2023-02-03 14:54:33.336952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Moshe Cormier"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.338039"], ["updated_at", "2023-02-03 14:54:33.338039"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Terence Glover LLD"], ["description", "Et necessitatibus nam. Neque rerum velit. Expedita sint quam."], ["attempts_number", 11], ["created_at", "2023-02-03 14:54:33.341948"], ["updated_at", "2023-02-03 14:54:33.341948"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Pasquale Batz"], ["created_at", "2023-02-03 14:54:33.343146"], ["updated_at", "2023-02-03 14:54:33.343146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Precious Kiehn"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.343940"], ["updated_at", "2023-02-03 14:54:33.343940"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Will Corwin JD"], ["description", "Voluptates rerum voluptatum. Reprehenderit illo aperiam. Et dolores et."], ["attempts_number", 14], ["created_at", "2023-02-03 14:54:33.346349"], ["updated_at", "2023-02-03 14:54:33.346349"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carter Hand"], ["created_at", "2023-02-03 14:54:33.347900"], ["updated_at", "2023-02-03 14:54:33.347900"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Erminia Hoeger"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.349033"], ["updated_at", "2023-02-03 14:54:33.349033"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Ms. Johnathon Hirthe"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.349911"], ["updated_at", "2023-02-03 14:54:33.349911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Lynetta Kulas"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.350887"], ["updated_at", "2023-02-03 14:54:33.350887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Keith Nolan"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.351948"], ["updated_at", "2023-02-03 14:54:33.351948"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Carly Herman"], ["description", "Sit repellat et. Inventore natus omnis. In voluptas sint."], ["attempts_number", 32], ["created_at", "2023-02-03 14:54:33.359118"], ["updated_at", "2023-02-03 14:54:33.359118"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carol Schoen"], ["created_at", "2023-02-03 14:54:33.360315"], ["updated_at", "2023-02-03 14:54:33.360315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Joey Hilll"], ["description", "Ut ut quam. Vel explicabo hic. Reprehenderit ipsam qui."], ["attempts_number", 59], ["created_at", "2023-02-03 14:54:33.362043"], ["updated_at", "2023-02-03 14:54:33.362043"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Deadra Schiller"], ["created_at", "2023-02-03 14:54:33.363117"], ["updated_at", "2023-02-03 14:54:33.363117"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Shana Pacocha"], ["description", "Delectus voluptas perferendis. Voluptatem quia quae. Repellat qui dolorem."], ["attempts_number", 74], ["created_at", "2023-02-03 14:54:33.366916"], ["updated_at", "2023-02-03 14:54:33.366916"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Samatha Volkman"], ["created_at", "2023-02-03 14:54:33.368370"], ["updated_at", "2023-02-03 14:54:33.368370"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Garfield Daugherty"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.369792"], ["updated_at", "2023-02-03 14:54:33.369792"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Phillip Bauch"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.371077"], ["updated_at", "2023-02-03 14:54:33.371077"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Coral Lehner MD"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.371954"], ["updated_at", "2023-02-03 14:54:33.371954"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Mr. Vance Morissette"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.372758"], ["updated_at", "2023-02-03 14:54:33.372758"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Isreal Mohr"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.373478"], ["updated_at", "2023-02-03 14:54:33.373478"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Shery Hickle"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.374239"], ["updated_at", "2023-02-03 14:54:33.374239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["question_id", 1], ["text", "Keila Blanda"], ["correct", 0], ["created_at", "2023-02-03 14:54:33.375119"], ["updated_at", "2023-02-03 14:54:33.375119"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.4ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.4ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Luther Renner"], ["description", "Omnis velit fugiat. Officia dolor maxime. Consequuntur ut molestiae."], ["attempts_number", 66], ["created_at", "2023-02-03 14:54:33.386654"], ["updated_at", "2023-02-03 14:54:33.386654"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Bert Homenick Sr."], ["description", "Fugiat est numquam. Similique tenetur dolore. Iusto accusamus non."], ["attempts_number", 35], ["created_at", "2023-02-03 14:54:33.390094"], ["updated_at", "2023-02-03 14:54:33.390094"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.5ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Marco Kertzmann"], ["description", "Dolores in numquam. Omnis et officia. Molestiae aut alias."], ["attempts_number", 81], ["created_at", "2023-02-03 14:54:33.393174"], ["updated_at", "2023-02-03 14:54:33.393174"], ["survey_type", 0]] + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dr. Philip Wintheiser"], ["created_at", "2023-02-03 14:54:33.395266"], ["updated_at", "2023-02-03 14:54:33.395266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Fallon Bernhard"], ["created_at", "2023-02-03 14:54:33.396978"], ["updated_at", "2023-02-03 14:54:33.396978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Boyce Ritchie II"], ["created_at", "2023-02-03 14:54:33.398157"], ["updated_at", "2023-02-03 14:54:33.398157"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Caleb Erdman"], ["created_at", "2023-02-03 14:54:33.399110"], ["updated_at", "2023-02-03 14:54:33.399110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dora Pagac"], ["created_at", "2023-02-03 14:54:33.399952"], ["updated_at", "2023-02-03 14:54:33.399952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.4ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:54:33.401540"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Eli Rice VM"], ["description", "Nihil ea et. Repudiandae qui vitae. Enim minima fugiat."], ["attempts_number", 69], ["created_at", "2023-02-03 14:54:33.407343"], ["updated_at", "2023-02-03 14:54:33.407343"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.8ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Jasmin Hyatt"], ["description", "Numquam autem consequuntur. Ad omnis molestias. Perferendis asperiores cupiditate."], ["attempts_number", 56], ["created_at", "2023-02-03 14:54:33.410834"], ["updated_at", "2023-02-03 14:54:33.410834"], ["survey_type", 1]] + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Jennette Kautzer"], ["created_at", "2023-02-03 14:54:33.413884"], ["updated_at", "2023-02-03 14:54:33.413884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Ruben Collins"], ["created_at", "2023-02-03 14:54:33.415638"], ["updated_at", "2023-02-03 14:54:33.415638"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Denis Koch IV"], ["created_at", "2023-02-03 14:54:33.416771"], ["updated_at", "2023-02-03 14:54:33.416771"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elwanda Schmidt"], ["created_at", "2023-02-03 14:54:33.417768"], ["updated_at", "2023-02-03 14:54:33.417768"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.2ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Bob Stehr"], ["created_at", "2023-02-03 14:54:33.420751"], ["updated_at", "2023-02-03 14:54:33.420751"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Marcellus Durgan"], ["created_at", "2023-02-03 14:54:33.424433"], ["updated_at", "2023-02-03 14:54:33.424433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Veronika Weber"], ["description", "Nisi aut totam. Cum esse rerum. Ipsum quia recusandae."], ["attempts_number", 19], ["created_at", "2023-02-03 14:54:33.428115"], ["updated_at", "2023-02-03 14:54:33.428115"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.4ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Arnetta Muller"], ["description", "Laboriosam dolor eveniet. Fuga blanditiis id. Totam iste quia."], ["attempts_number", 15], ["created_at", "2023-02-03 14:54:33.432515"], ["updated_at", "2023-02-03 14:54:33.432515"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (1.0ms) rollback transaction +  (0.4ms) PRAGMA foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.5ms) TRUNCATE TABLE "survey_answers" +  (2.6ms) DELETE FROM "survey_answers" +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.449779"], ["updated_at", "2023-02-03 14:54:33.449779"], ["name", "Birdie Mayert"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.451018"], ["updated_at", "2023-02-03 14:54:33.451018"], ["name", "Hilary Gottlieb DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Sandy Powlowski"], ["description", "Quam laboriosam delectus. Officia consectetur natus. Enim et sint."], ["attempts_number", 63], ["created_at", "2023-02-03 14:54:33.454261"], ["updated_at", "2023-02-03 14:54:33.454261"], ["survey_type", 2]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Carrie Dickinson DDS"], ["created_at", "2023-02-03 14:54:33.455152"], ["updated_at", "2023-02-03 14:54:33.455152"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Waltraud Schowalter"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.455489"], ["updated_at", "2023-02-03 14:54:33.455489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Clemmie Barton V"], ["created_at", "2023-02-03 14:54:33.457391"], ["updated_at", "2023-02-03 14:54:33.457391"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Marna Hills"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.458673"], ["updated_at", "2023-02-03 14:54:33.458673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Flavia Trantow IV"], ["created_at", "2023-02-03 14:54:33.461054"], ["updated_at", "2023-02-03 14:54:33.461054"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Krystyna Braun"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.462021"], ["updated_at", "2023-02-03 14:54:33.462021"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Amb. Agripina Mann"], ["created_at", "2023-02-03 14:54:33.465333"], ["updated_at", "2023-02-03 14:54:33.465333"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Lyle Hackett"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.466102"], ["updated_at", "2023-02-03 14:54:33.466102"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.2ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.472819"], ["updated_at", "2023-02-03 14:54:33.472819"]] + Survey::Answer Update (1.2ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.473451"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.3ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:33.480517"], ["updated_at", "2023-02-03 14:54:33.480517"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.481444"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:33.482809"], ["updated_at", "2023-02-03 14:54:33.482809"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.483256"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:33.484681"], ["updated_at", "2023-02-03 14:54:33.484681"]] + Survey::Answer Update (0.1ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.485496"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.6ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.492974"], ["updated_at", "2023-02-03 14:54:33.492974"], ["name", "Lura Daniel"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.494116"], ["updated_at", "2023-02-03 14:54:33.494116"], ["name", "Arlena Mosciski DO"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Gov. Fredricka Herzog"], ["description", "Ipsa voluptatem eum. Et ex sint. Non illum natus."], ["attempts_number", 42], ["created_at", "2023-02-03 14:54:33.496033"], ["updated_at", "2023-02-03 14:54:33.496033"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacob Orn MD"], ["created_at", "2023-02-03 14:54:33.496574"], ["updated_at", "2023-02-03 14:54:33.496574"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Shery Feil"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.496872"], ["updated_at", "2023-02-03 14:54:33.496872"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Angelo Walter"], ["created_at", "2023-02-03 14:54:33.498283"], ["updated_at", "2023-02-03 14:54:33.498283"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Malcolm Bernhard"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.498847"], ["updated_at", "2023-02-03 14:54:33.498847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gov. Catheryn Dare"], ["created_at", "2023-02-03 14:54:33.501086"], ["updated_at", "2023-02-03 14:54:33.501086"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Bea Ruecker LLD"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.502010"], ["updated_at", "2023-02-03 14:54:33.502010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kaye Hodkiewicz"], ["created_at", "2023-02-03 14:54:33.503498"], ["updated_at", "2023-02-03 14:54:33.503498"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Rochell Satterfield"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.503856"], ["updated_at", "2023-02-03 14:54:33.503856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.2ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.508220"], ["updated_at", "2023-02-03 14:54:33.508220"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.508802"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:33.509938"], ["updated_at", "2023-02-03 14:54:33.509938"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.510308"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:33.511215"], ["updated_at", "2023-02-03 14:54:33.511215"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.511559"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:33.516034"], ["updated_at", "2023-02-03 14:54:33.516034"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.516562"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.521861"], ["updated_at", "2023-02-03 14:54:33.521861"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.522295"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:33.523278"], ["updated_at", "2023-02-03 14:54:33.523278"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.523631"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:33.524633"], ["updated_at", "2023-02-03 14:54:33.524633"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.524978"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:33.525803"], ["updated_at", "2023-02-03 14:54:33.525803"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.526328"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.530291"], ["updated_at", "2023-02-03 14:54:33.530291"], ["name", "Rico Hilll Sr."]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:33.531503"], ["updated_at", "2023-02-03 14:54:33.531503"], ["name", "Benjamin Mraz DC"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Mittie Tromp"], ["description", "Ab voluptatem qui. Magni quia illum. Quam et sit."], ["attempts_number", 56], ["created_at", "2023-02-03 14:54:33.533624"], ["updated_at", "2023-02-03 14:54:33.533624"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Martina Rodriguez"], ["created_at", "2023-02-03 14:54:33.534422"], ["updated_at", "2023-02-03 14:54:33.534422"]] + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Leigh Reichel DVM"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.535172"], ["updated_at", "2023-02-03 14:54:33.535172"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Evette Botsford Ret."], ["created_at", "2023-02-03 14:54:33.537217"], ["updated_at", "2023-02-03 14:54:33.537217"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Amb. Williams Kirlin"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.537621"], ["updated_at", "2023-02-03 14:54:33.537621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Annis Zulauf"], ["created_at", "2023-02-03 14:54:33.539195"], ["updated_at", "2023-02-03 14:54:33.539195"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Lamont Ondricka"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.539882"], ["updated_at", "2023-02-03 14:54:33.539882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jacquetta Dickens"], ["created_at", "2023-02-03 14:54:33.541419"], ["updated_at", "2023-02-03 14:54:33.541419"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Cordia Ankunding Esq."], ["correct", 1], ["created_at", "2023-02-03 14:54:33.541783"], ["updated_at", "2023-02-03 14:54:33.541783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.0ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?) [["name", "Calista Schultz"], ["description", "Sit laborum vero. Dolor dolorem ratione. Repellendus voluptatem non."], ["attempts_number", 16], ["created_at", "2023-02-03 14:54:33.544061"], ["updated_at", "2023-02-03 14:54:33.544061"], ["survey_type", 2]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Dewayne Parisian"], ["created_at", "2023-02-03 14:54:33.544450"], ["updated_at", "2023-02-03 14:54:33.544450"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Wanita Beer Jr."], ["correct", 1], ["created_at", "2023-02-03 14:54:33.544717"], ["updated_at", "2023-02-03 14:54:33.544717"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Msgr. Shane Kerluke"], ["created_at", "2023-02-03 14:54:33.546064"], ["updated_at", "2023-02-03 14:54:33.546064"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Tracee Kunde"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.546398"], ["updated_at", "2023-02-03 14:54:33.546398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Wilford Skiles V"], ["created_at", "2023-02-03 14:54:33.547759"], ["updated_at", "2023-02-03 14:54:33.547759"]] + Survey::Option Create (0.2ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "Dallas D'Amore"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.548321"], ["updated_at", "2023-02-03 14:54:33.548321"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Star Reinger"], ["created_at", "2023-02-03 14:54:33.550148"], ["updated_at", "2023-02-03 14:54:33.550148"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Ingrid Roberts"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.550922"], ["updated_at", "2023-02-03 14:54:33.550922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Alice Dare"], ["created_at", "2023-02-03 14:54:33.552494"], ["updated_at", "2023-02-03 14:54:33.552494"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Jackie Halvorson"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.552851"], ["updated_at", "2023-02-03 14:54:33.552851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Lizbeth Quitzon DC"], ["created_at", "2023-02-03 14:54:33.554133"], ["updated_at", "2023-02-03 14:54:33.554133"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Milan Kerluke I"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.554458"], ["updated_at", "2023-02-03 14:54:33.554458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cuc Cremin"], ["created_at", "2023-02-03 14:54:33.555671"], ["updated_at", "2023-02-03 14:54:33.555671"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Randell Harber"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.555997"], ["updated_at", "2023-02-03 14:54:33.555997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Darnell Von"], ["created_at", "2023-02-03 14:54:33.557197"], ["updated_at", "2023-02-03 14:54:33.557197"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Sebastian Dare"], ["correct", 1], ["created_at", "2023-02-03 14:54:33.557565"], ["updated_at", "2023-02-03 14:54:33.557565"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:33.561467"], ["updated_at", "2023-02-03 14:54:33.561467"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.561816"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:33.562649"], ["updated_at", "2023-02-03 14:54:33.562649"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.562964"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:33.563799"], ["updated_at", "2023-02-03 14:54:33.563799"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.564115"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:33.564907"], ["updated_at", "2023-02-03 14:54:33.564907"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.565215"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.1ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:54:33.571611"], ["updated_at", "2023-02-03 14:54:33.571611"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.571982"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:54:33.572922"], ["updated_at", "2023-02-03 14:54:33.572922"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.573238"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:54:33.573993"], ["updated_at", "2023-02-03 14:54:33.573993"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.574396"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:54:33.575142"], ["updated_at", "2023-02-03 14:54:33.575142"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.575455"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:54:33.576209"], ["updated_at", "2023-02-03 14:54:33.576209"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.576563"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:54:33.577298"], ["updated_at", "2023-02-03 14:54:33.577298"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.577617"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:54:33.578435"], ["updated_at", "2023-02-03 14:54:33.578435"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.578742"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:54:33.579477"], ["updated_at", "2023-02-03 14:54:33.579477"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:33.579793"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.2ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.109968"], ["updated_at", "2023-02-03 14:54:36.109968"], ["name", "Miss Noe Upton"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cristopher Ferry"], ["description", "Vitae sequi temporibus. Incidunt beatae dignissimos. Molestiae ipsa nihil."], ["attempts_number", 41], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.115053"], ["updated_at", "2023-02-03 14:54:36.115053"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Alfred Bruen"], ["created_at", "2023-02-03 14:54:36.131853"], ["updated_at", "2023-02-03 14:54:36.131853"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Dr. Shirley Kuvalis"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.135159"], ["updated_at", "2023-02-03 14:54:36.135159"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.138236"], ["updated_at", "2023-02-03 14:54:36.138236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."id" != ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.152616"], ["updated_at", "2023-02-03 14:54:36.152616"], ["name", "Lakeesha Jakubowski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Stormy Marks DC"], ["description", "Omnis et qui. Laborum excepturi quos. Veniam consequuntur distinctio."], ["attempts_number", 34], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.154040"], ["updated_at", "2023-02-03 14:54:36.154040"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Terrence Gusikowski"], ["created_at", "2023-02-03 14:54:36.156655"], ["updated_at", "2023-02-03 14:54:36.156655"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Trevor Cartwright"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.157935"], ["updated_at", "2023-02-03 14:54:36.157935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.159107"], ["updated_at", "2023-02-03 14:54:36.159107"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.161174"], ["updated_at", "2023-02-03 14:54:36.161174"], ["name", "Orval Turcotte JD"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Deetta Halvorson"], ["description", "Doloremque sunt qui. Aut aliquam esse. Et et iure."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.162402"], ["updated_at", "2023-02-03 14:54:36.162402"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Gary Hilpert"], ["created_at", "2023-02-03 14:54:36.164498"], ["updated_at", "2023-02-03 14:54:36.164498"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Marlon Leuschke"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.165364"], ["updated_at", "2023-02-03 14:54:36.165364"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.166510"], ["updated_at", "2023-02-03 14:54:36.166510"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" IS NULL AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" IS NULL LIMIT ? [["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.169381"], ["updated_at", "2023-02-03 14:54:36.169381"], ["name", "Rev. Jarrett Mayer"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jacques Stehr"], ["description", "Qui et ut. Doloremque nesciunt aut. Atque molestiae laboriosam."], ["attempts_number", 79], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.170851"], ["updated_at", "2023-02-03 14:54:36.170851"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ernesto Kilback I"], ["created_at", "2023-02-03 14:54:36.172933"], ["updated_at", "2023-02-03 14:54:36.172933"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Milford Bernier"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.173694"], ["updated_at", "2023-02-03 14:54:36.173694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.174752"], ["updated_at", "2023-02-03 14:54:36.174752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["attempt_id", 1], ["question_id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction +  (0.4ms) PRAGMA foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.4ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.186757"], ["updated_at", "2023-02-03 14:54:36.186757"], ["name", "Mattie Bechtelar"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Terry Hagenes"], ["description", "Sit voluptatem natus. Ea minus iusto. Sit mollitia earum."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.189433"], ["updated_at", "2023-02-03 14:54:36.189433"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.201575"], ["updated_at", "2023-02-03 14:54:36.201575"], ["name", "Temika Gutkowski"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Haywood Williamson"], ["description", "Et et reiciendis. Sapiente dolores eum. Architecto quod quis."], ["attempts_number", 5], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.203032"], ["updated_at", "2023-02-03 14:54:36.203032"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? AND "survey_attempts"."survey_id" = ? [["participant_id", 1], ["participant_type", "User"], ["survey_id", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.3ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.4ms) DELETE FROM "survey_questions" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.3ms) TRUNCATE TABLE "survey_surveys" +  (0.7ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.3ms) TRUNCATE TABLE "users" +  (0.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Demarcus Maggio"], ["description", "Est omnis reprehenderit. Atque doloremque repellat. Beatae rerum aut."], ["attempts_number", 98], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.220744"], ["updated_at", "2023-02-03 14:54:36.220744"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Gisele Pagac"], ["created_at", "2023-02-03 14:54:36.222215"], ["updated_at", "2023-02-03 14:54:36.222215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Danial Auer"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.223040"], ["updated_at", "2023-02-03 14:54:36.223040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Guillermo Moen"], ["description", "Nemo illo alias. Enim nulla velit. Animi nulla dolores."], ["attempts_number", 99], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.224903"], ["updated_at", "2023-02-03 14:54:36.224903"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kevin Wisoky"], ["created_at", "2023-02-03 14:54:36.226030"], ["updated_at", "2023-02-03 14:54:36.226030"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Option Create (1.7ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Adrian Zieme"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.227441"], ["updated_at", "2023-02-03 14:54:36.227441"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Loretta Hackett"], ["description", "Quo recusandae et. Qui aut magnam. Nostrum explicabo maiores."], ["attempts_number", 70], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.234396"], ["updated_at", "2023-02-03 14:54:36.234396"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Leonore Stroman DDS"], ["created_at", "2023-02-03 14:54:36.236066"], ["updated_at", "2023-02-03 14:54:36.236066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Nita Hand"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.236895"], ["updated_at", "2023-02-03 14:54:36.236895"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Tommy Boyle"], ["description", "Consequatur incidunt quidem. Necessitatibus omnis facere. Vel enim ratione."], ["attempts_number", 21], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.240135"], ["updated_at", "2023-02-03 14:54:36.240135"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sen. Leroy Huels"], ["created_at", "2023-02-03 14:54:36.241452"], ["updated_at", "2023-02-03 14:54:36.241452"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ms. Garland Ullrich"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.242273"], ["updated_at", "2023-02-03 14:54:36.242273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Ina Franecki"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.243031"], ["updated_at", "2023-02-03 14:54:36.243031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Yuki Volkman Jr."], ["correct", 1], ["created_at", "2023-02-03 14:54:36.243780"], ["updated_at", "2023-02-03 14:54:36.243780"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 5], ["text", "Carmon Glover"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.244512"], ["updated_at", "2023-02-03 14:54:36.244512"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.3ms) TRUNCATE TABLE "survey_attempts" +  (0.5ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.5ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Malcom Monahan"], ["description", "Dolorem iste repellat. Voluptatibus non nobis. Magni sequi rem."], ["attempts_number", 33], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.252692"], ["updated_at", "2023-02-03 14:54:36.252692"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Jesse Bartoletti"], ["created_at", "2023-02-03 14:54:36.254080"], ["updated_at", "2023-02-03 14:54:36.254080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Cordell Doyle"], ["description", "Repellendus porro aut. A necessitatibus quisquam. Est soluta aut."], ["attempts_number", 67], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.256467"], ["updated_at", "2023-02-03 14:54:36.256467"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Natashia Bartoletti"], ["created_at", "2023-02-03 14:54:36.257858"], ["updated_at", "2023-02-03 14:54:36.257858"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Lowell Bogisich II"], ["description", "Soluta facere autem. Saepe voluptatem perspiciatis. Vitae sit qui."], ["attempts_number", 83], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.261584"], ["updated_at", "2023-02-03 14:54:36.261584"], ["survey_type", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Miss Lois Runte"], ["created_at", "2023-02-03 14:54:36.262715"], ["updated_at", "2023-02-03 14:54:36.262715"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Ester Quigley II"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.263525"], ["updated_at", "2023-02-03 14:54:36.263525"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Chris Bogisich"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.264304"], ["updated_at", "2023-02-03 14:54:36.264304"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Tabatha Willms"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.265876"], ["updated_at", "2023-02-03 14:54:36.265876"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Gwenn Rippin"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.267200"], ["updated_at", "2023-02-03 14:54:36.267200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.1ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Royal Hilll"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.268514"], ["updated_at", "2023-02-03 14:54:36.268514"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Paris Lowe"], ["correct", 0], ["created_at", "2023-02-03 14:54:36.269556"], ["updated_at", "2023-02-03 14:54:36.269556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 0], ["text", "Mina Schamberger Ret."], ["correct", 0], ["created_at", "2023-02-03 14:54:36.270346"], ["updated_at", "2023-02-03 14:54:36.270346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Exists? (0.1ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 1], ["LIMIT", 1]] + Survey::Option Count (0.0ms) SELECT COUNT(*) FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Load (0.2ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? [["question_id", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 2], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 3], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 4], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 5], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 6], ["LIMIT", 1]] + Survey::Option Exists? (0.0ms) SELECT 1 AS one FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? AND "survey_options"."id" = ? LIMIT ? [["question_id", 1], ["correct", 1], ["id", 7], ["LIMIT", 1]] + TRANSACTION (0.4ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.4ms) DELETE FROM "survey_answers" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.3ms) DELETE FROM "survey_attempts" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.3ms) DELETE FROM "survey_surveys" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Genesis Jacobs"], ["description", "Blanditiis non soluta. Ipsum dolore unde. Molestiae temporibus non."], ["attempts_number", 64], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.281143"], ["updated_at", "2023-02-03 14:54:36.281143"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Miss Leila Bosco"], ["description", "Facere eveniet repellat. Aut aut id. Reiciendis vitae iusto."], ["attempts_number", 25], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.283641"], ["updated_at", "2023-02-03 14:54:36.283641"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Josefa D'Amore II"], ["description", "Quaerat sit perferendis. Perferendis illum earum. Eum nemo perspiciatis."], ["attempts_number", 90], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.289036"], ["updated_at", "2023-02-03 14:54:36.289036"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Matt Murphy"], ["created_at", "2023-02-03 14:54:36.289657"], ["updated_at", "2023-02-03 14:54:36.289657"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Laveta Ryan"], ["created_at", "2023-02-03 14:54:36.290427"], ["updated_at", "2023-02-03 14:54:36.290427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Devon McLaughlin VM"], ["created_at", "2023-02-03 14:54:36.291168"], ["updated_at", "2023-02-03 14:54:36.291168"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Nidia Harber"], ["created_at", "2023-02-03 14:54:36.291866"], ["updated_at", "2023-02-03 14:54:36.291866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Glenn Pagac"], ["created_at", "2023-02-03 14:54:36.292556"], ["updated_at", "2023-02-03 14:54:36.292556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + Survey::Survey Update (0.1ms) UPDATE "survey_surveys" SET "active" = ?, "updated_at" = ? WHERE "survey_surveys"."id" = ? [["active", 1], ["updated_at", "2023-02-03 14:54:36.294020"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Exists? (0.1ms) SELECT 1 AS one FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Sen. Ulysses Ratke"], ["description", "Modi est nihil. Ratione nihil nulla. Qui molestiae nisi."], ["attempts_number", 49], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.298392"], ["updated_at", "2023-02-03 14:54:36.298392"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Armando Langosh II"], ["description", "Quisquam ut magni. Sed quo magnam. Minima tempora rerum."], ["attempts_number", 61], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.300357"], ["updated_at", "2023-02-03 14:54:36.300357"], ["survey_type", 0]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brock O'Hara"], ["created_at", "2023-02-03 14:54:36.300829"], ["updated_at", "2023-02-03 14:54:36.300829"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Demetra Johns"], ["created_at", "2023-02-03 14:54:36.301802"], ["updated_at", "2023-02-03 14:54:36.301802"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Brant Ritchie"], ["created_at", "2023-02-03 14:54:36.303193"], ["updated_at", "2023-02-03 14:54:36.303193"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Elma Effertz MD"], ["created_at", "2023-02-03 14:54:36.304485"], ["updated_at", "2023-02-03 14:54:36.304485"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Peter Hermiston"], ["created_at", "2023-02-03 14:54:36.305515"], ["updated_at", "2023-02-03 14:54:36.305515"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kendall Fadel"], ["created_at", "2023-02-03 14:54:36.306419"], ["updated_at", "2023-02-03 14:54:36.306419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Count (0.1ms) SELECT COUNT(*) FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.2ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Truman Rath"], ["description", "Fugiat molestias quidem. Perferendis corporis unde. Sit aut fugiat."], ["attempts_number", 26], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.309063"], ["updated_at", "2023-02-03 14:54:36.309063"], ["survey_type", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.3ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Alexandra Reinger"], ["description", "Qui libero ea. Assumenda dicta cumque. Repudiandae quo distinctio."], ["attempts_number", 47], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.312792"], ["updated_at", "2023-02-03 14:54:36.312792"], ["survey_type", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "survey_answers" +  (0.5ms) DELETE FROM "survey_answers" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_answers'; +  (0.1ms) TRUNCATE TABLE "survey_attempts" +  (0.4ms) DELETE FROM "survey_attempts" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_attempts'; +  (0.1ms) TRUNCATE TABLE "survey_options" +  (0.3ms) DELETE FROM "survey_options" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_options'; +  (0.1ms) TRUNCATE TABLE "survey_questions" +  (0.3ms) DELETE FROM "survey_questions" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_questions'; +  (0.1ms) TRUNCATE TABLE "survey_surveys" +  (0.2ms) DELETE FROM "survey_surveys" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'survey_surveys'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.2ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.323409"], ["updated_at", "2023-02-03 14:54:36.323409"], ["name", "Mandie Macejkovic"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.324396"], ["updated_at", "2023-02-03 14:54:36.324396"], ["name", "Valentine Wilkinson II"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Prof. Sharie McLaughlin"], ["description", "Rerum corporis sed. Ut ut provident. Dicta saepe aut."], ["attempts_number", 39], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.326473"], ["updated_at", "2023-02-03 14:54:36.326473"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Abraham Parisian"], ["created_at", "2023-02-03 14:54:36.326999"], ["updated_at", "2023-02-03 14:54:36.326999"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Gilma Trantow DC"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.327293"], ["updated_at", "2023-02-03 14:54:36.327293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Lakisha Sporer"], ["created_at", "2023-02-03 14:54:36.329341"], ["updated_at", "2023-02-03 14:54:36.329341"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Miss Dennis Sanford"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.330110"], ["updated_at", "2023-02-03 14:54:36.330110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Prof. Kurtis Kassulke"], ["created_at", "2023-02-03 14:54:36.331590"], ["updated_at", "2023-02-03 14:54:36.331590"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Deloras Ferry"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.331973"], ["updated_at", "2023-02-03 14:54:36.331973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Dr. Sharita Lindgren"], ["created_at", "2023-02-03 14:54:36.333273"], ["updated_at", "2023-02-03 14:54:36.333273"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Kris Nader"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.333630"], ["updated_at", "2023-02-03 14:54:36.333630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.1ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.339932"], ["updated_at", "2023-02-03 14:54:36.339932"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.340364"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:36.341475"], ["updated_at", "2023-02-03 14:54:36.341475"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.341801"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:36.342642"], ["updated_at", "2023-02-03 14:54:36.342642"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.342951"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:36.343782"], ["updated_at", "2023-02-03 14:54:36.343782"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.344094"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.349220"], ["updated_at", "2023-02-03 14:54:36.349220"], ["name", "Cruz Mitchell"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.351448"], ["updated_at", "2023-02-03 14:54:36.351448"], ["name", "Brandie Runolfsdottir"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jude Purdy II"], ["description", "Eaque quia soluta. Quae sed nisi. Amet ducimus modi."], ["attempts_number", 43], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.353670"], ["updated_at", "2023-02-03 14:54:36.353670"], ["survey_type", 1]] + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Sherrill Hansen"], ["created_at", "2023-02-03 14:54:36.354089"], ["updated_at", "2023-02-03 14:54:36.354089"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Willian Kiehn"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.354366"], ["updated_at", "2023-02-03 14:54:36.354366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Cleopatra Beatty"], ["created_at", "2023-02-03 14:54:36.355586"], ["updated_at", "2023-02-03 14:54:36.355586"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Jan Von"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.355894"], ["updated_at", "2023-02-03 14:54:36.355894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Jordan Russel"], ["created_at", "2023-02-03 14:54:36.357030"], ["updated_at", "2023-02-03 14:54:36.357030"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Arlen Sanford"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.357327"], ["updated_at", "2023-02-03 14:54:36.357327"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Ms. Queenie Bayer"], ["created_at", "2023-02-03 14:54:36.358454"], ["updated_at", "2023-02-03 14:54:36.358454"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Yuriko Reichel"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.358740"], ["updated_at", "2023-02-03 14:54:36.358740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.1ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.1ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.362493"], ["updated_at", "2023-02-03 14:54:36.362493"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.362845"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:36.363702"], ["updated_at", "2023-02-03 14:54:36.363702"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.364000"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:36.364787"], ["updated_at", "2023-02-03 14:54:36.364787"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.365105"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:36.366004"], ["updated_at", "2023-02-03 14:54:36.366004"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.366323"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.1ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.370348"], ["updated_at", "2023-02-03 14:54:36.370348"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.370710"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 2], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:36.371538"], ["updated_at", "2023-02-03 14:54:36.371538"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.371841"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 2], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:36.372593"], ["updated_at", "2023-02-03 14:54:36.372593"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.372883"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 2], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 2], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:36.373619"], ["updated_at", "2023-02-03 14:54:36.373619"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.373905"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.377077"], ["updated_at", "2023-02-03 14:54:36.377077"], ["name", "Lee Hahn"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "name") VALUES (?, ?, ?) [["created_at", "2023-02-03 14:54:36.378293"], ["updated_at", "2023-02-03 14:54:36.378293"], ["name", "Ted Leuschke"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Donnie Gleichner"], ["description", "Fugit odit asperiores. Earum error nobis. Amet temporibus sed."], ["attempts_number", 11], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.380348"], ["updated_at", "2023-02-03 14:54:36.380348"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Daniel Feest"], ["created_at", "2023-02-03 14:54:36.380783"], ["updated_at", "2023-02-03 14:54:36.380783"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 1], ["weight", 1], ["text", "Brynn Kub"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.381052"], ["updated_at", "2023-02-03 14:54:36.381052"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Kasey Schinner II"], ["created_at", "2023-02-03 14:54:36.382376"], ["updated_at", "2023-02-03 14:54:36.382376"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 2], ["weight", 1], ["text", "Hans Sipes"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.382785"], ["updated_at", "2023-02-03 14:54:36.382785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Elliott Strosin CPA"], ["created_at", "2023-02-03 14:54:36.384137"], ["updated_at", "2023-02-03 14:54:36.384137"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 3], ["weight", 1], ["text", "Suanne Howell DVM"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.384679"], ["updated_at", "2023-02-03 14:54:36.384679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Survey::Question Create (0.1ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 1], ["text", "Donita Haag"], ["created_at", "2023-02-03 14:54:36.396314"], ["updated_at", "2023-02-03 14:54:36.396314"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 4], ["weight", 1], ["text", "Yasuko Lind"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.396905"], ["updated_at", "2023-02-03 14:54:36.396905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Survey Create (0.1ms) INSERT INTO "survey_surveys" ("name", "description", "attempts_number", "finished", "active", "created_at", "updated_at", "survey_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hilde Willms"], ["description", "Aut tempora dolores. Et in non. Facere nihil accusantium."], ["attempts_number", 74], ["finished", 0], ["active", 0], ["created_at", "2023-02-03 14:54:36.398977"], ["updated_at", "2023-02-03 14:54:36.398977"], ["survey_type", 1]] + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Sharyn Lang"], ["created_at", "2023-02-03 14:54:36.399479"], ["updated_at", "2023-02-03 14:54:36.399479"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 5], ["weight", 1], ["text", "Nadia Bartell"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.399733"], ["updated_at", "2023-02-03 14:54:36.399733"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Cheri Russel"], ["created_at", "2023-02-03 14:54:36.401033"], ["updated_at", "2023-02-03 14:54:36.401033"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 6], ["weight", 1], ["text", "Sen. Caterina Stoltenberg"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.401310"], ["updated_at", "2023-02-03 14:54:36.401310"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rep. Kurt Hackett"], ["created_at", "2023-02-03 14:54:36.402472"], ["updated_at", "2023-02-03 14:54:36.402472"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 7], ["weight", 1], ["text", "The Hon. Wendell Gottlieb"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.402750"], ["updated_at", "2023-02-03 14:54:36.402750"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Kirby Gutmann"], ["created_at", "2023-02-03 14:54:36.403792"], ["updated_at", "2023-02-03 14:54:36.403792"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 8], ["weight", 1], ["text", "Joel Stracke"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.404058"], ["updated_at", "2023-02-03 14:54:36.404058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Rashad Kuhic"], ["created_at", "2023-02-03 14:54:36.405197"], ["updated_at", "2023-02-03 14:54:36.405197"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 9], ["weight", 1], ["text", "Rep. Kurtis Schroeder"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.405543"], ["updated_at", "2023-02-03 14:54:36.405543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Deetta McLaughlin PhD"], ["created_at", "2023-02-03 14:54:36.406686"], ["updated_at", "2023-02-03 14:54:36.406686"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 10], ["weight", 1], ["text", "Edward Schimmel"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.406974"], ["updated_at", "2023-02-03 14:54:36.406974"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Mrs. Mariah Okuneva"], ["created_at", "2023-02-03 14:54:36.408029"], ["updated_at", "2023-02-03 14:54:36.408029"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 11], ["weight", 1], ["text", "Malik Berge"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.408295"], ["updated_at", "2023-02-03 14:54:36.408295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Question Create (0.0ms) INSERT INTO "survey_questions" ("survey_id", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["survey_id", 2], ["text", "Pres. Barrie Howe"], ["created_at", "2023-02-03 14:54:36.409361"], ["updated_at", "2023-02-03 14:54:36.409361"]] + Survey::Option Create (0.0ms) INSERT INTO "survey_options" ("question_id", "weight", "text", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["question_id", 12], ["weight", 1], ["text", "Ms. Maryanne Schaden"], ["correct", 1], ["created_at", "2023-02-03 14:54:36.409627"], ["updated_at", "2023-02-03 14:54:36.409627"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 1], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 2], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 3], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 4], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 1], ["question_id", 1], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.1ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 1], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 1], ["option_id", 1], ["correct", 0], ["created_at", "2023-02-03 14:54:36.413323"], ["updated_at", "2023-02-03 14:54:36.413323"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.413637"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 2], ["attempt_id", 1], ["question_id", 2], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 2], ["option_id", 2], ["correct", 0], ["created_at", "2023-02-03 14:54:36.414465"], ["updated_at", "2023-02-03 14:54:36.414465"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.414756"], ["id", 2]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 3], ["attempt_id", 1], ["question_id", 3], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 3], ["option_id", 3], ["correct", 0], ["created_at", "2023-02-03 14:54:36.415549"], ["updated_at", "2023-02-03 14:54:36.415549"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.415833"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 4], ["attempt_id", 1], ["question_id", 4], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 1], ["question_id", 4], ["option_id", 4], ["correct", 0], ["created_at", "2023-02-03 14:54:36.416557"], ["updated_at", "2023-02-03 14:54:36.416557"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.416833"], ["id", 4]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 4], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 1], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 1], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Question Load (0.0ms) SELECT "survey_questions".* FROM "survey_questions" WHERE "survey_questions"."survey_id" = ? [["survey_id", 2]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 5], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 6], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 7], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 8], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 9], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 10], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 11], ["correct", 1]] + Survey::Option Load (0.0ms) SELECT "survey_options".* FROM "survey_options" WHERE "survey_options"."question_id" = ? AND "survey_options"."correct" = ? [["question_id", 12], ["correct", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" IS NULL AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 5], ["question_id", 5], ["LIMIT", 1]] + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 2], ["survey_id", 2], ["winner", 0], ["score", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 5], ["option_id", 5], ["correct", 0], ["created_at", "2023-02-03 14:54:36.422334"], ["updated_at", "2023-02-03 14:54:36.422334"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.422623"], ["id", 5]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 6], ["attempt_id", 3], ["question_id", 6], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 6], ["option_id", 6], ["correct", 0], ["created_at", "2023-02-03 14:54:36.423391"], ["updated_at", "2023-02-03 14:54:36.423391"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.423671"], ["id", 6]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 7], ["attempt_id", 3], ["question_id", 7], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 7], ["option_id", 7], ["correct", 0], ["created_at", "2023-02-03 14:54:36.424430"], ["updated_at", "2023-02-03 14:54:36.424430"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.424707"], ["id", 7]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 8], ["attempt_id", 3], ["question_id", 8], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 8], ["option_id", 8], ["correct", 0], ["created_at", "2023-02-03 14:54:36.425426"], ["updated_at", "2023-02-03 14:54:36.425426"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.425722"], ["id", 8]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 9], ["attempt_id", 3], ["question_id", 9], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 9], ["option_id", 9], ["correct", 0], ["created_at", "2023-02-03 14:54:36.426469"], ["updated_at", "2023-02-03 14:54:36.426469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.426745"], ["id", 9]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 10], ["attempt_id", 3], ["question_id", 10], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 10], ["option_id", 10], ["correct", 0], ["created_at", "2023-02-03 14:54:36.427461"], ["updated_at", "2023-02-03 14:54:36.427461"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.427734"], ["id", 10]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 11], ["attempt_id", 3], ["question_id", 11], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 11], ["option_id", 11], ["correct", 0], ["created_at", "2023-02-03 14:54:36.428485"], ["updated_at", "2023-02-03 14:54:36.428485"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.428758"], ["id", 11]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Answer Exists? (0.0ms) SELECT 1 AS one FROM "survey_answers" WHERE "survey_answers"."option_id" = ? AND "survey_answers"."attempt_id" = ? AND "survey_answers"."question_id" = ? LIMIT ? [["option_id", 12], ["attempt_id", 3], ["question_id", 12], ["LIMIT", 1]] + Survey::Answer Create (0.0ms) INSERT INTO "survey_answers" ("attempt_id", "question_id", "option_id", "correct", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attempt_id", 3], ["question_id", 12], ["option_id", 12], ["correct", 0], ["created_at", "2023-02-03 14:54:36.429469"], ["updated_at", "2023-02-03 14:54:36.429469"]] + Survey::Answer Update (0.0ms) UPDATE "survey_answers" SET "correct" = ?, "updated_at" = ? WHERE "survey_answers"."id" = ? [["correct", 1], ["updated_at", "2023-02-03 14:54:36.429743"], ["id", 12]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 2], ["participant_type", "User"]] + Survey::Attempt Update (0.0ms) UPDATE "survey_attempts" SET "score" = ? WHERE "survey_attempts"."id" = ? [["score", 8], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Survey::Attempt Count (0.0ms) SELECT COUNT(*) FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? AND "survey_attempts"."participant_id" = ? AND "survey_attempts"."participant_type" = ? [["survey_id", 2], ["participant_id", 1], ["participant_type", "User"]] + Survey::Attempt Create (0.0ms) INSERT INTO "survey_attempts" ("participant_type", "participant_id", "survey_id", "winner", "score") VALUES (?, ?, ?, ?, ?) [["participant_type", "User"], ["participant_id", 1], ["survey_id", 2], ["winner", 0], ["score", 0]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Survey::Attempt Load (0.1ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score DESC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Survey::Attempt Load (0.0ms) SELECT "survey_attempts".* FROM "survey_attempts" WHERE "survey_attempts"."survey_id" = ? ORDER BY score ASC LIMIT ? [["survey_id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.8ms) SELECT sqlite_version(*) +  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.2ms) SELECT sqlite_version(*) +  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.2ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction +  (1.3ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.8ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (1.0ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) SELECT sqlite_version(*) +  (0.9ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.9ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.9ms) SELECT sqlite_version(*) +  (0.8ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (1.2ms) SELECT sqlite_version(*) +  (0.8ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.9ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.5ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.8ms) SELECT sqlite_version(*) +  (0.7ms) SELECT sqlite_version(*) +  (0.0ms) SELECT sqlite_version(*) +  (0.1ms) SELECT sqlite_version(*) +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) rollback transaction +  (0.9ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]] +  (0.0ms) SELECT sqlite_version(*) +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "sites" +  (0.4ms) DELETE FROM "sites" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.4ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_1"], ["created_at", "2023-02-03 15:25:17.952623"], ["updated_at", "2023-02-03 15:25:17.952623"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "another_site"], ["created_at", "2023-02-03 15:25:17.954673"], ["updated_at", "2023-02-03 15:25:17.954673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Admin::AdminController#show as HTML + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 2256) + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.2ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_2"], ["created_at", "2023-02-03 15:25:17.980966"], ["updated_at", "2023-02-03 15:25:17.980966"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "another_site"], ["created_at", "2023-02-03 15:25:17.981878"], ["updated_at", "2023-02-03 15:25:17.981878"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Admin::AdminController#switch_site as HTML + Parameters: {"site_id"=>"2"} + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Redirected to http://test.host/admin/admin +Completed 302 Found in 1ms (ActiveRecord: 0.1ms | Allocations: 613) +Processing by Admin::AdminController#show as HTML + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 452) + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "sites" +  (0.4ms) DELETE FROM "sites" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.3ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.2ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_3"], ["created_at", "2023-02-03 15:25:17.991803"], ["updated_at", "2023-02-03 15:25:17.991803"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_4"], ["created_at", "2023-02-03 15:25:17.992848"], ["updated_at", "2023-02-03 15:25:17.992848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Richie Huels"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.853896"], ["updated_at", "2023-02-03 15:25:18.853896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Wayne Wunsch"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.855487"], ["updated_at", "2023-02-03 15:25:18.855487"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Venetta Wehner"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.858239"], ["updated_at", "2023-02-03 15:25:18.858239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (1.4ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Kent Lakin"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.859257"], ["updated_at", "2023-02-03 15:25:18.859257"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Amb. Keisha Mraz"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.862798"], ["updated_at", "2023-02-03 15:25:18.862798"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Bernadette Lesch"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.867611"], ["updated_at", "2023-02-03 15:25:18.867611"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Otha King"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.869307"], ["updated_at", "2023-02-03 15:25:18.869307"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Lynna Hilpert"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.870202"], ["updated_at", "2023-02-03 15:25:18.870202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Amb. Tess Farrell"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.873155"], ["updated_at", "2023-02-03 15:25:18.873155"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Cedrick Gusikowski"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.874509"], ["updated_at", "2023-02-03 15:25:18.874509"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Rosemarie Watsica"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.875462"], ["updated_at", "2023-02-03 15:25:18.875462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Bernie Jones"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.876433"], ["updated_at", "2023-02-03 15:25:18.876433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Lia Ledner"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.878470"], ["updated_at", "2023-02-03 15:25:18.878470"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Christina Rippin"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.880538"], ["updated_at", "2023-02-03 15:25:18.880538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Vincent Reichert JD"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.882317"], ["updated_at", "2023-02-03 15:25:18.882317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Elicia Kunde"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.883804"], ["updated_at", "2023-02-03 15:25:18.883804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Gov. Gladys Hermann"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.884709"], ["updated_at", "2023-02-03 15:25:18.884709"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Janene Schoen"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.886433"], ["updated_at", "2023-02-03 15:25:18.886433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Tangela Cormier"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.887768"], ["updated_at", "2023-02-03 15:25:18.887768"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Pres. Odelia Schamberger"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.888880"], ["updated_at", "2023-02-03 15:25:18.888880"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by UsersController#index as HTML + Parameters: {"multi_site"=>"url_3"} + Site Load (0.2ms) SELECT "sites".* FROM "sites" WHERE "sites"."url" = ? ORDER BY "sites"."id" ASC LIMIT ? [["url", "url_3"], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms | Allocations: 697) + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Processing by UsersController#index as HTML + Parameters: {"multi_site"=>"url_4"} + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."url" = ? ORDER BY "sites"."id" ASC LIMIT ? [["url", "url_4"], ["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms | Allocations: 310) + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "sites" +  (0.4ms) DELETE FROM "sites" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.3ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_5"], ["created_at", "2023-02-03 15:25:18.900211"], ["updated_at", "2023-02-03 15:25:18.900211"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_6"], ["created_at", "2023-02-03 15:25:18.901495"], ["updated_at", "2023-02-03 15:25:18.901495"]] + TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_7"], ["created_at", "2023-02-03 15:25:18.903149"], ["updated_at", "2023-02-03 15:25:18.903149"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Amb. Talitha Roberts"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.904609"], ["updated_at", "2023-02-03 15:25:18.904609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Sherlene Cruickshank"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.905828"], ["updated_at", "2023-02-03 15:25:18.905828"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Doyle Bechtelar"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.906860"], ["updated_at", "2023-02-03 15:25:18.906860"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Ned Bergnaum DC"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.907876"], ["updated_at", "2023-02-03 15:25:18.907876"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Carter Braun"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.908991"], ["updated_at", "2023-02-03 15:25:18.908991"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Geoffrey Strosin"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.910462"], ["updated_at", "2023-02-03 15:25:18.910462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Arden Ortiz"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.913879"], ["updated_at", "2023-02-03 15:25:18.913879"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Sang Quitzon"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.916167"], ["updated_at", "2023-02-03 15:25:18.916167"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Mr. Forrest Hegmann"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.917314"], ["updated_at", "2023-02-03 15:25:18.917314"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Winford Mante"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.918480"], ["updated_at", "2023-02-03 15:25:18.918480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Bradly Spinka Esq."], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.919387"], ["updated_at", "2023-02-03 15:25:18.919387"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Jerrell Boyle"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.920549"], ["updated_at", "2023-02-03 15:25:18.920549"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Josh O'Connell"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.921627"], ["updated_at", "2023-02-03 15:25:18.921627"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Clement Osinski"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.922838"], ["updated_at", "2023-02-03 15:25:18.922838"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Rob Ondricka"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.923891"], ["updated_at", "2023-02-03 15:25:18.923891"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Gustavo Mayer"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.924618"], ["updated_at", "2023-02-03 15:25:18.924618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Isabelle Cassin"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.925405"], ["updated_at", "2023-02-03 15:25:18.925405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Prof. Sebrina Cremin"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.926162"], ["updated_at", "2023-02-03 15:25:18.926162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Fernando Kirlin"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.926925"], ["updated_at", "2023-02-03 15:25:18.926925"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Deangelo Hirthe"], ["site_id", 1], ["created_at", "2023-02-03 15:25:18.927588"], ["updated_at", "2023-02-03 15:25:18.927588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Alisha D'Amore"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.928357"], ["updated_at", "2023-02-03 15:25:18.928357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Vincent Hayes"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.929074"], ["updated_at", "2023-02-03 15:25:18.929074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Shelby Greenfelder"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.929776"], ["updated_at", "2023-02-03 15:25:18.929776"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Mrs. Brett Kemmer"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.930484"], ["updated_at", "2023-02-03 15:25:18.930484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Bertie Kessler"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.931169"], ["updated_at", "2023-02-03 15:25:18.931169"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Dorian Keebler DVM"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.931953"], ["updated_at", "2023-02-03 15:25:18.931953"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Pres. Emery Bergnaum"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.932776"], ["updated_at", "2023-02-03 15:25:18.932776"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Gay Ziemann"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.936475"], ["updated_at", "2023-02-03 15:25:18.936475"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Ned Botsford"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.941608"], ["updated_at", "2023-02-03 15:25:18.941608"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Miss Delphia Jenkins"], ["site_id", 2], ["created_at", "2023-02-03 15:25:18.943153"], ["updated_at", "2023-02-03 15:25:18.943153"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 3]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction + ActiveRecord::InternalMetadata Pluck (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]] + ActiveRecord::SchemaMigration Pluck (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "sites" +  (0.4ms) DELETE FROM "sites" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.3ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_1"], ["created_at", "2023-02-03 15:25:20.581126"], ["updated_at", "2023-02-03 15:25:20.581126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.0ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "another_site"], ["created_at", "2023-02-03 15:25:20.582809"], ["updated_at", "2023-02-03 15:25:20.582809"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Admin::AdminController#show as HTML + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms | Allocations: 2318) + TRANSACTION (0.3ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Site Create (0.4ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_2"], ["created_at", "2023-02-03 15:25:20.621696"], ["updated_at", "2023-02-03 15:25:20.621696"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "another_site"], ["created_at", "2023-02-03 15:25:20.623360"], ["updated_at", "2023-02-03 15:25:20.623360"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Admin::AdminController#switch_site as HTML + Parameters: {"site_id"=>"2"} + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Redirected to http://test.host/admin/admin +Completed 302 Found in 1ms (ActiveRecord: 0.1ms | Allocations: 696) +Processing by Admin::AdminController#show as HTML + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 448) + TRANSACTION (0.3ms) rollback transaction +  (0.1ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "sites" +  (0.5ms) DELETE FROM "sites" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.1ms) begin transaction + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + Site Create (0.3ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_3"], ["created_at", "2023-02-03 15:25:20.639270"], ["updated_at", "2023-02-03 15:25:20.639270"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_4"], ["created_at", "2023-02-03 15:25:20.640733"], ["updated_at", "2023-02-03 15:25:20.640733"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Forest Shields"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.567631"], ["updated_at", "2023-02-03 15:25:21.567631"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "The Hon. Tracey Howe"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.569265"], ["updated_at", "2023-02-03 15:25:21.569265"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Msgr. Joe Frami"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.570335"], ["updated_at", "2023-02-03 15:25:21.570335"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Barrie Borer"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.571099"], ["updated_at", "2023-02-03 15:25:21.571099"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Denver Armstrong"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.571788"], ["updated_at", "2023-02-03 15:25:21.571788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Daron Nader"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.572462"], ["updated_at", "2023-02-03 15:25:21.572462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Fr. Carson Hamill"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.573171"], ["updated_at", "2023-02-03 15:25:21.573171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Syble Gutmann"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.573864"], ["updated_at", "2023-02-03 15:25:21.573864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Ms. Leopoldo Bogisich"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.574633"], ["updated_at", "2023-02-03 15:25:21.574633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Dante Kuhic"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.575325"], ["updated_at", "2023-02-03 15:25:21.575325"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Barton Mitchell Ret."], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.576053"], ["updated_at", "2023-02-03 15:25:21.576053"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Cora Sauer"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.576730"], ["updated_at", "2023-02-03 15:25:21.576730"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Gerard Welch"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.577388"], ["updated_at", "2023-02-03 15:25:21.577388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Anibal Towne"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.578043"], ["updated_at", "2023-02-03 15:25:21.578043"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Andrea Baumbach JD"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.578741"], ["updated_at", "2023-02-03 15:25:21.578741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Dante Gusikowski"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.579399"], ["updated_at", "2023-02-03 15:25:21.579399"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Dr. Tanner Brakus"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.580099"], ["updated_at", "2023-02-03 15:25:21.580099"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Candy Schowalter"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.580764"], ["updated_at", "2023-02-03 15:25:21.580764"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Christie Borer"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.581440"], ["updated_at", "2023-02-03 15:25:21.581440"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Josette Orn"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.582108"], ["updated_at", "2023-02-03 15:25:21.582108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by UsersController#index as HTML + Parameters: {"multi_site"=>"url_3"} + Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."url" = ? ORDER BY "sites"."id" ASC LIMIT ? [["url", "url_3"], ["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms | Allocations: 649) + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Processing by UsersController#index as HTML + Parameters: {"multi_site"=>"url_4"} + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."url" = ? ORDER BY "sites"."id" ASC LIMIT ? [["url", "url_4"], ["LIMIT", 1]] +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 293) + Site Load (0.0ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + TRANSACTION (0.2ms) rollback transaction +  (0.0ms) PRAGMA foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "sites" +  (0.5ms) DELETE FROM "sites" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'sites'; +  (0.1ms) TRUNCATE TABLE "users" +  (0.3ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.3ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_5"], ["created_at", "2023-02-03 15:25:21.589878"], ["updated_at", "2023-02-03 15:25:21.589878"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.1ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_6"], ["created_at", "2023-02-03 15:25:21.591191"], ["updated_at", "2023-02-03 15:25:21.591191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + Site Create (0.0ms) INSERT INTO "sites" ("url", "created_at", "updated_at") VALUES (?, ?, ?) [["url", "url_7"], ["created_at", "2023-02-03 15:25:21.591928"], ["updated_at", "2023-02-03 15:25:21.591928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Tiffanie Grant II"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.592866"], ["updated_at", "2023-02-03 15:25:21.592866"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Donna Pfeffer"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.593652"], ["updated_at", "2023-02-03 15:25:21.593652"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Deon Glover"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.594373"], ["updated_at", "2023-02-03 15:25:21.594373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Jessenia Connelly CPA"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.595091"], ["updated_at", "2023-02-03 15:25:21.595091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Laree Spinka"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.595791"], ["updated_at", "2023-02-03 15:25:21.595791"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Reginia Kassulke Sr."], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.596570"], ["updated_at", "2023-02-03 15:25:21.596570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Cuc Funk"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.597258"], ["updated_at", "2023-02-03 15:25:21.597258"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Bryon Zemlak DVM"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.597984"], ["updated_at", "2023-02-03 15:25:21.597984"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Joe Johnston"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.598693"], ["updated_at", "2023-02-03 15:25:21.598693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Riley Baumbach"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.599376"], ["updated_at", "2023-02-03 15:25:21.599376"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Maureen Schiller"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.600052"], ["updated_at", "2023-02-03 15:25:21.600052"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Josefina Kerluke DDS"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.600753"], ["updated_at", "2023-02-03 15:25:21.600753"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Pres. Arden Walter"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.601469"], ["updated_at", "2023-02-03 15:25:21.601469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Shayna Abshire"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.602133"], ["updated_at", "2023-02-03 15:25:21.602133"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Dr. Etha Green"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.602857"], ["updated_at", "2023-02-03 15:25:21.602857"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Ben Kessler"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.603568"], ["updated_at", "2023-02-03 15:25:21.603568"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Eugene Hahn"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.604264"], ["updated_at", "2023-02-03 15:25:21.604264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Krysten Schoen"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.604980"], ["updated_at", "2023-02-03 15:25:21.604980"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Agnes Brown"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.605911"], ["updated_at", "2023-02-03 15:25:21.605911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Kerry Senger"], ["site_id", 1], ["created_at", "2023-02-03 15:25:21.606735"], ["updated_at", "2023-02-03 15:25:21.606735"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Pa Swaniawski"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.607448"], ["updated_at", "2023-02-03 15:25:21.607448"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Prof. Claudio Lang"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.608143"], ["updated_at", "2023-02-03 15:25:21.608143"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Yee Kertzmann"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.608813"], ["updated_at", "2023-02-03 15:25:21.608813"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Amb. Nieves Kuhn"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.609505"], ["updated_at", "2023-02-03 15:25:21.609505"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Edgardo Deckow II"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.610186"], ["updated_at", "2023-02-03 15:25:21.610186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Contessa Ward"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.610846"], ["updated_at", "2023-02-03 15:25:21.610846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Margorie Roberts MD"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.611534"], ["updated_at", "2023-02-03 15:25:21.611534"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Mandi Jenkins"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.612226"], ["updated_at", "2023-02-03 15:25:21.612226"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Edmond Kihn"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.612906"], ["updated_at", "2023-02-03 15:25:21.612906"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.0ms) INSERT INTO "users" ("login", "site_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["login", "Tammie Collier I"], ["site_id", 2], ["created_at", "2023-02-03 15:25:21.613632"], ["updated_at", "2023-02-03 15:25:21.613632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Count (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 1]] + User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 1]] + User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 2]] + User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 2]] + User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."site_id" = ? [["site_id", 3]] + TRANSACTION (0.2ms) rollback transaction + TRANSACTION (0.0ms) begin transaction + TRANSACTION (0.0ms) rollback transaction diff --git a/spec/dummy/public/404.html b/spec/dummy/public/404.html index a0daa0c..2be3af2 100644 --- a/spec/dummy/public/404.html +++ b/spec/dummy/public/404.html @@ -2,17 +2,23 @@ The page you were looking for doesn't exist (404) + - +
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

-

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/public/422.html b/spec/dummy/public/422.html index fbb4b84..c08eac0 100644 --- a/spec/dummy/public/422.html +++ b/spec/dummy/public/422.html @@ -2,17 +2,23 @@ The change you wanted was rejected (422) + - +
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

-

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/public/500.html b/spec/dummy/public/500.html index e9052d3..78a030a 100644 --- a/spec/dummy/public/500.html +++ b/spec/dummy/public/500.html @@ -2,17 +2,23 @@ We're sorry, but something went wrong (500) + - +
-

We're sorry, but something went wrong.

+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

-

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/app/mailers/.keep b/spec/dummy/public/apple-touch-icon-precomposed.png similarity index 100% rename from spec/dummy/app/mailers/.keep rename to spec/dummy/public/apple-touch-icon-precomposed.png diff --git a/spec/dummy/app/models/.keep b/spec/dummy/public/apple-touch-icon.png similarity index 100% rename from spec/dummy/app/models/.keep rename to spec/dummy/public/apple-touch-icon.png diff --git a/spec/dummy/public/robots.txt b/spec/dummy/public/robots.txt deleted file mode 100644 index 1a3a5e4..0000000 --- a/spec/dummy/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/spec/dummy/lib/tasks/.keep b/spec/dummy/storage/.keep similarity index 100% rename from spec/dummy/lib/tasks/.keep rename to spec/dummy/storage/.keep diff --git a/spec/dummy/vendor/assets/javascripts/.keep b/spec/dummy/tmp/.keep similarity index 100% rename from spec/dummy/vendor/assets/javascripts/.keep rename to spec/dummy/tmp/.keep diff --git a/spec/dummy/tmp/development_secret.txt b/spec/dummy/tmp/development_secret.txt new file mode 100644 index 0000000..fb2bf20 --- /dev/null +++ b/spec/dummy/tmp/development_secret.txt @@ -0,0 +1 @@ +fd9c516074043ad27a7ec780f964c2bb146fd2ab6399108179c0a7e3bf69998df32366644082e166076843c5b388c96bfaddf393d271dd469b2324e1e1c0b363 \ No newline at end of file diff --git a/spec/dummy/vendor/assets/stylesheets/.keep b/spec/dummy/tmp/pids/.keep similarity index 100% rename from spec/dummy/vendor/assets/stylesheets/.keep rename to spec/dummy/tmp/pids/.keep diff --git a/spec/dummy/tmp/storage/.keep b/spec/dummy/tmp/storage/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/factories/site.rb b/spec/factories/site.rb index 040bde9..e78c201 100644 --- a/spec/factories/site.rb +++ b/spec/factories/site.rb @@ -1,10 +1,10 @@ -require 'factory_girl' +# frozen_string_literal: true -FactoryGirl.define do +FactoryBot.define do sequence :url do |n| "url_#{n}" end factory :site do url end -end \ No newline at end of file +end diff --git a/spec/factories/user.rb b/spec/factories/user.rb index cfca7df..83cd864 100644 --- a/spec/factories/user.rb +++ b/spec/factories/user.rb @@ -1,8 +1,8 @@ -require 'factory_girl' +# frozen_string_literal: true -FactoryGirl.define do +FactoryBot.define do factory :user do - association :site, :factory => :site - name Faker::Name.name + association :site, factory: :site + login { Faker::Name.name } end -end \ No newline at end of file +end diff --git a/spec/multi_site_spec.rb b/spec/multi_site_spec.rb index e82f892..c791729 100644 --- a/spec/multi_site_spec.rb +++ b/spec/multi_site_spec.rb @@ -1,29 +1,29 @@ -require 'spec_helper' +require 'rails_helper' -describe "MultiSite" do - it "should be true if the number of users shown in the site scope is the same doing a where query" do - site_1 = FactoryGirl.create(:site) - site_2 = FactoryGirl.create(:site) - site_3 = FactoryGirl.create(:site) +describe 'MultiSite' do + it 'should be true if the number of users shown in the site scope is the same doing a where query' do + site1 = create(:site) + site2 = create(:site) + site3 = create(:site) - 20.times { FactoryGirl.create(:user, :site => site_1) } - 10.times { FactoryGirl.create(:user, :site => site_2) } + 20.times { create(:user, site: site1) } + 10.times { create(:user, site: site2) } - MultiSite.current_site = site_1 - User.on_site.count.should == User.where(:site_id => site_1.id).count + MultiSite.current_site = site1 + expect(User.on_site.count).to eq(User.where(site_id: site1.id).count) - MultiSite.current_site = site_2 - User.on_site.count.should == User.where(:site_id => site_2.id).count + MultiSite.current_site = site2 + expect(User.on_site.count).to eq(User.where(site_id: site2.id).count) - MultiSite.current_site = site_3 - User.on_site.count.should == 0 + MultiSite.current_site = site3 + expect(User.on_site.count).to eq(0) end - it "should return true if users is scoped by site" do + it 'should return true if users is scoped by site' do answer = User.is_scoped_by_site? - answer.should == true + expect(answer).to eq(true) answer = Site.is_scoped_by_site? - answer.should == false + expect(answer).to eq(false) end end diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb new file mode 100644 index 0000000..55486a6 --- /dev/null +++ b/spec/rails_helper.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +require 'rails' +require 'spec_helper' +ENV['RAILS_ENV'] ||= 'test' +require 'faker' +require 'factory_bot' +require 'database_cleaner' +require_relative 'dummy/config/environment' +require 'rspec/rails' + +begin + ActiveRecord::Migration.maintain_test_schema! +rescue ActiveRecord::PendingMigrationError => e + abort e.to_s.strip +end + +RSpec.configure do |config| + config.include FactoryBot::Syntax::Methods + + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.use_transactional_fixtures = true + config.infer_spec_type_from_file_location! + config.filter_rails_from_backtrace! + + config.before(:suite) do + FactoryBot.find_definitions + end + + config.before(:all) do + DatabaseCleaner.strategy = :transaction + DatabaseCleaner.clean_with(:truncation) + end + + config.after(:all) do + DatabaseCleaner.clean + end +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 83c083e..a7d360f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,25 +1,13 @@ -# Configure Rails Envinronment -ENV["RAILS_ENV"] = "test" - -require File.expand_path("../dummy/config/environment.rb", __FILE__) -require 'rspec/rails' -require 'faker' -# Run any available migration -ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) -Rails.backtrace_cleaner.remove_silencers! - -require 'factory_girl' - -Site.delete_all - -FactoryGirl.find_definitions +# frozen_string_literal: true RSpec.configure do |config| - require 'rspec/expectations' + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end - config.include RSpec::Matchers - config.use_transactional_examples = true - config.expect_with :rspec do |c| - c.syntax = [:should] + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true end + + config.shared_context_metadata_behavior = :apply_to_host_groups end