rapidfire 5.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/app/models/rapidfire/question.rb +1 -1
  4. data/app/models/rapidfire/survey.rb +1 -1
  5. data/app/services/rapidfire/attempt_builder.rb +2 -1
  6. data/app/views/rapidfire/attempts/_form.html.erb +8 -0
  7. data/lib/rapidfire/version.rb +1 -1
  8. data/spec/controllers/rapidfire/attempts_controller_spec.rb +1 -1
  9. data/spec/dummy/config/environments/development.rb +1 -1
  10. data/spec/dummy/db/development.sqlite3 +0 -0
  11. data/spec/dummy/db/schema.rb +1 -3
  12. data/spec/dummy/db/test.sqlite3 +0 -0
  13. data/spec/dummy/log/development.log +90 -0
  14. data/spec/dummy/log/test.log +7067 -70435
  15. data/spec/factories/answers_factory.rb +4 -4
  16. data/spec/factories/attempts_factory.rb +2 -2
  17. data/spec/factories/questions_factory.rb +7 -7
  18. data/spec/factories/surveys_factory.rb +3 -3
  19. data/spec/factories/users_factory.rb +2 -2
  20. data/spec/features/rapidfire/answering_questions_spec.rb +25 -8
  21. data/spec/features/rapidfire/editing_answers_spec.rb +6 -6
  22. data/spec/features/rapidfire/managing_questions_spec.rb +3 -3
  23. data/spec/features/rapidfire/managing_surveys_spec.rb +18 -3
  24. data/spec/models/rapidfire/answer_spec.rb +2 -2
  25. data/spec/models/rapidfire/question_spec.rb +3 -3
  26. data/spec/models/rapidfire/questions/checkbox_spec.rb +3 -3
  27. data/spec/models/rapidfire/questions/date_spec.rb +2 -2
  28. data/spec/models/rapidfire/questions/file_spec.rb +2 -2
  29. data/spec/models/rapidfire/questions/multi_file_spec.rb +2 -2
  30. data/spec/models/rapidfire/questions/numeric_spec.rb +2 -2
  31. data/spec/models/rapidfire/questions/select_spec.rb +3 -3
  32. data/spec/models/rapidfire/survey_spec.rb +1 -1
  33. data/spec/serializers/rapidfire/question_result_serializer_spec.rb +1 -1
  34. data/spec/services/rapidfire/attempt_builder_spec.rb +5 -5
  35. data/spec/services/rapidfire/question_form_spec.rb +3 -3
  36. data/spec/services/rapidfire/survey_results_spec.rb +1 -1
  37. data/spec/spec_helper.rb +1 -1
  38. data/spec/support/rapidfire/answer_spec_helper.rb +12 -12
  39. data/spec/support/rapidfire/question_spec_helper.rb +7 -7
  40. data/spec/tasks/change_delimiter_from_comma_to_srsn_spec.rb +8 -8
  41. metadata +39 -125
  42. data/spec/dummy/tmp/capybara/capybara-202304042341376066162578.html +0 -29
  43. data/spec/dummy/tmp/capybara/capybara-202304042343302647462912.html +0 -29
  44. data/spec/dummy/tmp/capybara/capybara-202304042343539524195351.html +0 -29
  45. data/spec/dummy/tmp/capybara/capybara-202304042344039569698410.html +0 -29
  46. data/spec/dummy/tmp/capybara/capybara-202304042344107081227684.html +0 -29
  47. data/spec/dummy/tmp/capybara/capybara-202304042346131668826835.html +0 -29
  48. data/spec/dummy/tmp/capybara/capybara-202304042346251478672095.html +0 -29
  49. data/spec/dummy/tmp/capybara/capybara-202304042346382011987550.html +0 -29
  50. data/spec/dummy/tmp/capybara/capybara-20230404234755589239852.html +0 -29
  51. data/spec/dummy/tmp/capybara/capybara-202304042348377947112508.html +0 -29
  52. data/spec/dummy/tmp/capybara/capybara-202304042348502970551073.html +0 -55
  53. data/spec/dummy/tmp/capybara/capybara-202304042351403473706214.html +0 -29
  54. data/spec/dummy/tmp/capybara/capybara-202304042352069122239363.html +0 -29
  55. data/spec/dummy/tmp/capybara/capybara-202304042353148433036065.html +0 -29
  56. data/spec/dummy/tmp/capybara/capybara-202304042353383278368450.html +0 -29
  57. data/spec/dummy/tmp/capybara/capybara-202304042358431743077504.html +0 -20
  58. data/spec/dummy/tmp/capybara/capybara-202304042358433434523512.html +0 -20
  59. data/spec/dummy/tmp/capybara/capybara-202304042358434379121493.html +0 -20
  60. data/spec/dummy/tmp/capybara/capybara-202304042358492996621343.html +0 -20
  61. data/spec/dummy/tmp/storage/2e/vk/2evksypp3ct4p9cjihfxwomru17i +0 -1
  62. data/spec/dummy/tmp/storage/9k/xt/9kxth5brdkw4huy7lciesekum0pt +0 -1
  63. data/spec/dummy/tmp/storage/cu/44/cu4452jrce4gd0ebcqop1d22kwbs +0 -1
  64. data/spec/dummy/tmp/storage/dl/oy/dloy0dbuquwe0f48bhugjca71pbv +0 -1
  65. data/spec/dummy/tmp/storage/h5/vc/h5vcb12f2cviqinrckfmmz4wtsa7 +0 -1
  66. data/spec/dummy/tmp/storage/ht/4x/ht4xma120asy3gd0fpeseddjzb2l +0 -1
  67. data/spec/dummy/tmp/storage/ip/au/ipauutuc5vy678hrwz4jx3rvm0n6 +0 -1
  68. data/spec/dummy/tmp/storage/j1/uy/j1uyrkrosby81sgq1mf59bs7oqee +0 -1
  69. data/spec/dummy/tmp/storage/nj/vv/njvvpx93zptrmlwbwiuxmxyh1jnf +0 -1
  70. data/spec/dummy/tmp/storage/nv/nx/nvnxlyvw3vd8xsq2sa4eazqepgbn +0 -1
  71. data/spec/dummy/tmp/storage/of/b4/ofb41sjj1mp33qs3wsivadhuts3p +0 -1
  72. data/spec/dummy/tmp/storage/og/ee/ogeerywp2y4szmnlrc5fnuya2evl +0 -1
  73. data/spec/dummy/tmp/storage/wz/oc/wzocvk4ahpp7kwc951u7f78nj259 +0 -1
  74. data/spec/dummy/tmp/storage/z3/vx/z3vxuitmnxld08m0qvt9057uyglc +0 -1
  75. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/k8/br/k8br0vtpgmpqxrl8mdsceymh3c8d +0 -1
  76. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/mw/le/mwle6olsgsk8h2pxvklj5q0yr9sc +0 -1
  77. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o1/2w/o12whqlkt6rc0yaq3b6fsowmewdp +0 -1
  78. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o9/2g/o92go6wavds5oht0dso6m1ybvbh4 +0 -1
  79. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/om/7f/om7frlle7xz8pybxbydeq1q20hro +0 -1
  80. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/q6/78/q678f1u8v1nv07dbtm85knmw3b9q +0 -1
  81. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/r4/wp/r4wpzje2mix0dtl8r2f4akh18fm1 +0 -1
  82. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/v1/h9/v1h9cuuwtwvz8p6fl574qum6k4ig +0 -1
  83. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/vb/mw/vbmwrl014lccj3jo61vojqscfxha +0 -1
  84. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/wn/q4/wnq49hhhxvh4gnc2782lf4zzlz46 +0 -1
  85. data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/ya/go/yago1kn4o7p8jfob0cxetrif714s +0 -1
  86. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/40/x5/40x5xe5nmit9ngld2lngzfjp6r6x → storage--ruby-3.3.5/81/2n/812ne4iy4c40lvvdigsg8z02b1v1} +0 -0
  87. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/7h/za/7hza4otjknyyo14szs2az8wiu7ai → storage--ruby-3.3.5/85/bs/85bsmaecej0491dey4t9jpci9yw3} +0 -0
  88. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/1b/cx/1bcxhbuf0bwp8uduq76gye1v11al → storage--ruby-3.3.5/8y/7b/8y7bhqwxh5cad8xau7nfhtukxcsc} +0 -0
  89. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/ad/ct/adct5ysy5mq6kyptqk5q3fzfpwui → storage--ruby-3.3.5/93/z6/93z6nje4f921vgdwa3lkuf49xocr} +0 -0
  90. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/bl/yo/blyo13wkf0l9igpyq4anaqbomz0h → storage--ruby-3.3.5/at/qk/atqksrev4s0ic4srii57aspu4o6z} +0 -0
  91. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/cc/g8/ccg8282dt6ixi4yvvwjt4noqa6pj → storage--ruby-3.3.5/bi/j3/bij3puzjsfm39colnpqstpu6ggv7} +0 -0
  92. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/d3/gj/d3gjt0qoinigrbao1anp4hmvedjm → storage--ruby-3.3.5/cx/4p/cx4pp9ugdv2xndwll28mo8jhjgig} +0 -0
  93. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/n7/ja/n7jacvu07s9z9ai7acjq8kovdh02 → storage--ruby-3.3.5/gv/9c/gv9cand9rqcew9sceoirbfm9l2bl} +0 -0
  94. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/f2/bv/f2bvz6ws3xfrk17dpzhyacx3kys2 → storage--ruby-3.3.5/m2/ce/m2cehdwpmdl0s5vgylxc1tcbxlr2} +0 -0
  95. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/f8/3z/f83z2f041tfpu39ygi0gu32wai8x → storage--ruby-3.3.5/md/rj/mdrjgxirkdtyfijfwdxn37dswspm} +0 -0
  96. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/gt/rc/gtrco13ij0i2vi27t6wm1jhcve5p → storage--ruby-3.3.5/xv/oi/xvoijswvk9a0blrua7x5yl94a6qw} +0 -0
  97. /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/qq/kc/qqkciwi2vymum1556755n85po1j9 → storage--ruby-3.3.5/z6/cw/z6cw41euxe15z3ao5wkypp0y9liw} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dabe714dbf4a6938fc95b0f9f598326f9414649515a0be018967c98a8da384f9
4
- data.tar.gz: 8c801984adc0c4b902ee562e2e6d716a117b820a2ee5f377bfa580cc1f8ca3f6
3
+ metadata.gz: fcb725054d9ab842d48820c4ed9bdf01ac58ebaa48e7d49b4c5a1d6cb7cfaae5
4
+ data.tar.gz: 7cd69d44cd3905355dda875aee51639d772b9b72dd626feb366842a4fe702e72
5
5
  SHA512:
6
- metadata.gz: 6800183f4c4638eb513aa4b4826d5a584bf8b86cbbe99c013f6620594b26f4ce31546504aa5cf5518c4203ec6d54dd57f7d5c6892dc1277993026edcc09efa69
7
- data.tar.gz: 1bff2e121df60d98f55e992b73429bc2bd252fe1a7cc306b95f240f792c8e9e6c5c9b50b0b56819e3f3c797c701278f5dea01bfffbfa9914ce60449e2f3147f1
6
+ metadata.gz: eab9da6b041b2cc5f5975b943908754c2a8b212f7116f47432af4923c8ff78cb4eb7a36f7279ac597e408422247475832113f869da552f3c0e7f66e85889988c
7
+ data.tar.gz: e4c751bb2fdcbc44df09f2b01ef6ecd3d6fe267b466ae9ddbce07e17f3476d6fffec6b161577cd91f32525135165b9cd6f25bf89da560b8ec8be777cb9e5105d
data/README.md CHANGED
@@ -4,8 +4,8 @@ One stop solution for all survey related requirements! Its tad easy!
4
4
 
5
5
  This gem supports:
6
6
 
7
- - **rails**: 4.2, 5.0, 5.1, 5.2, 6.0, 6.1 and 7.0
8
- - **ruby**: 2.4, 2.5, 2.6, 2.7, 3.0, 3.1 and 3.2
7
+ - **rails**: 7.0, 7.1, 7.2 and 8.0
8
+ - **ruby**: 3.1, 3.2 and 3.3
9
9
 
10
10
  NOTE: Some combinations won't be supported. Please check CI for the ignored ones.
11
11
 
@@ -148,7 +148,7 @@ GET /rapidfire/surveys/<survey-id>/results
148
148
 
149
149
  This new api supports two formats: `html` and `json`. The `json` format can be used with any
150
150
  javascript based chart solutions like Chart.js. An example can be seen
151
- [here](https://github.com/code-mancers/rapidfire-app).
151
+ [here](https://github.com/codemancers/rapidfire-app).
152
152
 
153
153
  Diving into details of `json` format, all the questions can be categorized into
154
154
  one of the two categories:
@@ -7,7 +7,7 @@ module Rapidfire
7
7
 
8
8
  validates :survey, :question_text, :presence => true
9
9
  validate :type_can_change
10
- serialize :validation_rules
10
+ serialize :validation_rules, coder: YAML
11
11
 
12
12
  def self.inherited(child)
13
13
  child.instance_eval do
@@ -16,7 +16,7 @@ module Rapidfire
16
16
  end
17
17
 
18
18
  def self.csv_user_attributes
19
- @@csv_user_attributes || []
19
+ @@csv_user_attributes ||= []
20
20
  end
21
21
 
22
22
  def results_to_csv(filter)
@@ -46,7 +46,8 @@ module Rapidfire
46
46
 
47
47
  def save(options = {})
48
48
  save!(options)
49
- rescue ActiveRecord::ActiveRecordError => _e
49
+ rescue ActiveRecord::ActiveRecordError => e
50
+ errors.add(:base, e.message)
50
51
  # repopulate answers here in case of failure as they are not getting updated
51
52
  @answers = @survey.questions.collect do |question|
52
53
  @attempt.answers.find { |a| a.question_id == question.id }
@@ -4,6 +4,14 @@
4
4
  <p><%= @survey.introduction %></p>
5
5
 
6
6
  <%= form_for([@survey, @attempt_builder], method: method) do |f| %>
7
+ <%- if @attempt_builder.errors.present? %>
8
+ <ul>
9
+ <%- @attempt_builder.errors.full_messages.each do |message| %>
10
+ <li><%= message %></li>
11
+ <% end %>
12
+ </ul>
13
+ <% end %>
14
+
7
15
  <%- @attempt_builder.answers.each do |answer| %>
8
16
  <%= f.fields_for("#{answer.question.id}", answer) do |answer_form| %>
9
17
  <%= render_answer_form_helper(answer, answer_form) %>
@@ -1,3 +1,3 @@
1
1
  module Rapidfire
2
- VERSION = '5.0.0'
2
+ VERSION = '8.0.0'
3
3
  end
@@ -10,7 +10,7 @@ describe Rapidfire::AttemptsController do
10
10
  # any default value.
11
11
  context 'when no parameters are passed' do
12
12
  it 'initializes answer builder with empty args' do
13
- survey = FactoryGirl.create(:survey)
13
+ survey = FactoryBot.create(:survey)
14
14
 
15
15
  if Rails::VERSION::MAJOR >= 5
16
16
  expect {
@@ -21,5 +21,5 @@ Dummy::Application.configure do
21
21
  config.whiny_nils = false
22
22
 
23
23
  # Expands the lines which load the assets
24
- config.assets.debug = true
24
+ # config.assets.debug = true
25
25
  end
Binary file
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema[7.0].define(version: 2023_04_02_174122) do
13
+ ActiveRecord::Schema[8.0].define(version: 2023_04_02_174122) do
14
14
  create_table "active_storage_attachments", force: :cascade do |t|
15
15
  t.string "name", null: false
16
16
  t.string "record_type", null: false
@@ -79,8 +79,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_02_174122) do
79
79
  t.text "introduction"
80
80
  t.datetime "created_at", null: false
81
81
  t.datetime "updated_at", null: false
82
- t.integer "owner_id"
83
- t.string "owner_type"
84
82
  t.text "after_survey_content"
85
83
  t.boolean "active"
86
84
  end
Binary file
@@ -0,0 +1,90 @@
1
+  (0.0ms) DROP TABLE IF EXISTS "active_storage_attachments"
2
+  (0.2ms) CREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL)
3
+  (0.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
4
+  (0.0ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
5
+  (0.0ms) DROP TABLE IF EXISTS "active_storage_blobs"
6
+  (0.0ms) CREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "service_name" varchar NOT NULL, "byte_size" bigint NOT NULL, "checksum" varchar, "created_at" datetime(6) NOT NULL)
7
+  (0.0ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
8
+  (0.0ms) DROP TABLE IF EXISTS "active_storage_variant_records"
9
+  (0.0ms) CREATE TABLE "active_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL)
10
+  (0.0ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest")
11
+  (0.0ms) DROP TABLE IF EXISTS "rapidfire_answers"
12
+  (0.0ms) CREATE TABLE "rapidfire_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "answer_text" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
13
+  (0.0ms) CREATE INDEX "index_rapidfire_answers_on_attempt_id" ON "rapidfire_answers" ("attempt_id")
14
+  (0.0ms) CREATE INDEX "index_rapidfire_answers_on_question_id" ON "rapidfire_answers" ("question_id")
15
+  (0.0ms) DROP TABLE IF EXISTS "rapidfire_attempts"
16
+  (0.0ms) CREATE TABLE "rapidfire_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "user_type" varchar, "user_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
17
+  (0.0ms) CREATE INDEX "index_rapidfire_attempts_on_survey_id" ON "rapidfire_attempts" ("survey_id")
18
+  (0.0ms) CREATE INDEX "index_rapidfire_attempts_on_user_id_and_user_type" ON "rapidfire_attempts" ("user_id", "user_type")
19
+  (0.0ms) CREATE INDEX "index_rapidfire_attempts_on_user" ON "rapidfire_attempts" ("user_type", "user_id")
20
+  (0.0ms) DROP TABLE IF EXISTS "rapidfire_questions"
21
+  (0.0ms) CREATE TABLE "rapidfire_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "type" varchar, "question_text" varchar, "default_text" varchar, "placeholder" varchar, "position" integer, "answer_options" text, "validation_rules" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
22
+  (0.0ms) CREATE INDEX "index_rapidfire_questions_on_survey_id" ON "rapidfire_questions" ("survey_id")
23
+  (0.0ms) DROP TABLE IF EXISTS "rapidfire_surveys"
24
+  (0.0ms) CREATE TABLE "rapidfire_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "introduction" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "after_survey_content" text, "active" boolean)
25
+  (0.0ms) DROP TABLE IF EXISTS "users"
26
+  (0.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
27
+ TRANSACTION (0.0ms) BEGIN immediate TRANSACTION
28
+ SQL (0.0ms) PRAGMA foreign_keys
29
+ SQL (0.0ms) PRAGMA defer_foreign_keys
30
+  (0.0ms) PRAGMA defer_foreign_keys = ON
31
+  (0.0ms) PRAGMA foreign_keys = OFF
32
+  (0.0ms) CREATE TEMPORARY TABLE "aactive_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL)
33
+  (0.0ms) CREATE UNIQUE INDEX "tindex_aactive_storage_attachments_uniqueness" ON "aactive_storage_attachments" ("record_type", "record_id", "name", "blob_id")
34
+  (0.0ms) CREATE INDEX "tindex_aactive_storage_attachments_on_blob_id" ON "aactive_storage_attachments" ("blob_id")
35
+ SQL (0.0ms) INSERT INTO "aactive_storage_attachments" ("id","name","record_type","record_id","blob_id","created_at")
36
+ SELECT "id","name","record_type","record_id","blob_id","created_at" FROM "active_storage_attachments"
37
+  (0.0ms) DROP TABLE "active_storage_attachments"
38
+  (0.0ms) CREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_c3b3935057"
39
+ FOREIGN KEY ("blob_id")
40
+ REFERENCES "active_storage_blobs" ("id")
41
+ )
42
+  (0.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
43
+  (0.0ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
44
+ SQL (0.0ms) INSERT INTO "active_storage_attachments" ("id","name","record_type","record_id","blob_id","created_at")
45
+ SELECT "id","name","record_type","record_id","blob_id","created_at" FROM "aactive_storage_attachments"
46
+  (0.0ms) DROP TABLE "aactive_storage_attachments"
47
+  (0.0ms) PRAGMA defer_foreign_keys = 0
48
+  (0.0ms) PRAGMA foreign_keys = 1
49
+ TRANSACTION (0.0ms) COMMIT TRANSACTION
50
+ TRANSACTION (0.0ms) BEGIN immediate TRANSACTION
51
+ SQL (0.0ms) PRAGMA foreign_keys
52
+ SQL (0.0ms) PRAGMA defer_foreign_keys
53
+  (0.0ms) PRAGMA defer_foreign_keys = ON
54
+  (0.0ms) PRAGMA foreign_keys = OFF
55
+  (0.0ms) CREATE TEMPORARY TABLE "aactive_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL)
56
+  (0.0ms) CREATE UNIQUE INDEX "tindex_aactive_storage_variant_records_uniqueness" ON "aactive_storage_variant_records" ("blob_id", "variation_digest")
57
+ SQL (0.0ms) INSERT INTO "aactive_storage_variant_records" ("id","blob_id","variation_digest")
58
+ SELECT "id","blob_id","variation_digest" FROM "active_storage_variant_records"
59
+  (0.0ms) DROP TABLE "active_storage_variant_records"
60
+  (0.0ms) CREATE TABLE "active_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL, CONSTRAINT "fk_rails_993965df05"
61
+ FOREIGN KEY ("blob_id")
62
+ REFERENCES "active_storage_blobs" ("id")
63
+ )
64
+  (0.0ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest")
65
+ SQL (0.0ms) INSERT INTO "active_storage_variant_records" ("id","blob_id","variation_digest")
66
+ SELECT "id","blob_id","variation_digest" FROM "aactive_storage_variant_records"
67
+  (0.0ms) DROP TABLE "aactive_storage_variant_records"
68
+  (0.0ms) PRAGMA defer_foreign_keys = 0
69
+  (0.0ms) PRAGMA foreign_keys = 1
70
+ TRANSACTION (0.0ms) COMMIT TRANSACTION
71
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
72
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
73
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES (20230402174122)
74
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES
75
+ (20190701274749),
76
+ (20170701191422),
77
+ (20170701191411),
78
+ (20130502170733);
79
+  (0.1ms) 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)
80
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
81
+ ActiveRecord::InternalMetadata Create (0.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2024-11-21 19:28:01.413628', '2024-11-21 19:28:01.413629') RETURNING "key"
82
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
83
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
84
+ ActiveRecord::InternalMetadata Create (0.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '4a7e67e5b5e8e3f157a3358c4a4e2408915b5292', '2024-11-21 19:28:01.413883', '2024-11-21 19:28:01.413883') RETURNING "key"
85
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
86
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
87
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
88
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
89
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
90
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC