rapidfire 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +120 -96
- data/app/assets/config/manifest.js +3 -0
- data/app/controllers/rapidfire/application_controller.rb +6 -2
- data/app/controllers/rapidfire/attempts_controller.rb +2 -2
- data/app/controllers/rapidfire/questions_controller.rb +1 -1
- data/app/controllers/rapidfire/surveys_controller.rb +30 -13
- data/app/helpers/rapidfire/application_helper.rb +25 -0
- data/app/models/rapidfire/answer.rb +6 -1
- data/app/models/rapidfire/attempt.rb +1 -1
- data/app/models/rapidfire/question.rb +33 -3
- data/app/models/rapidfire/questions/checkbox.rb +1 -1
- data/app/models/rapidfire/questions/file.rb +6 -0
- data/app/models/rapidfire/questions/information.rb +6 -0
- data/app/models/rapidfire/questions/multi_file.rb +6 -0
- data/app/models/rapidfire/survey.rb +42 -2
- data/app/services/rapidfire/attempt_builder.rb +14 -2
- data/app/services/rapidfire/question_form.rb +5 -1
- data/app/services/rapidfire/survey_results.rb +38 -4
- data/app/views/rapidfire/answers/_checkbox.html.erb +1 -1
- data/app/views/rapidfire/answers/_date.html.erb +1 -1
- data/app/views/rapidfire/answers/_file.html.erb +5 -0
- data/app/views/rapidfire/answers/_information.html.erb +4 -0
- data/app/views/rapidfire/answers/_long.html.erb +1 -1
- data/app/views/rapidfire/answers/_multifile.html.erb +5 -0
- data/app/views/rapidfire/answers/_numeric.html.erb +1 -1
- data/app/views/rapidfire/answers/_radio.html.erb +1 -1
- data/app/views/rapidfire/answers/_select.html.erb +1 -1
- data/app/views/rapidfire/answers/_short.html.erb +1 -1
- data/app/views/rapidfire/attempts/_form.html.erb +1 -1
- data/app/views/rapidfire/attempts/edit.html.erb +1 -1
- data/app/views/rapidfire/attempts/new.html.erb +1 -1
- data/app/views/rapidfire/questions/_form.html.erb +1 -1
- data/app/views/rapidfire/surveys/_survey.html.erb +6 -0
- data/app/views/rapidfire/surveys/index.html.erb +7 -2
- data/app/views/rapidfire/surveys/results.html.erb +3 -1
- data/db/migrate/20190701274749_add_active_to_surveys.rb +12 -0
- data/lib/generators/rapidfire/active_survey_migration_generator.rb +18 -0
- data/lib/generators/rapidfire/templates/migrations/add_active_to_survey.rb +5 -0
- data/lib/rapidfire/version.rb +1 -1
- data/lib/tasks/change_delimiter_to_srsn.rake +1 -1
- data/lib/tasks/rapidfire.rake +10 -0
- data/spec/dummy/README.rdoc +1 -1
- data/spec/dummy/app/assets/config/mainfest.js +2 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -2
- data/spec/dummy/config/application.rb +22 -3
- data/spec/dummy/config/environments/test.rb +5 -0
- data/spec/dummy/config/storage.yml +7 -0
- data/spec/dummy/db/migrate/20170701191422_create_users.rb +15 -0
- data/spec/dummy/db/migrate/20230402174122_create_active_storage_tables.active_storage.rb +67 -0
- data/spec/dummy/db/schema.rb +53 -17
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +76140 -14034
- data/spec/dummy/tmp/capybara/capybara-202304042341376066162578.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042343302647462912.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042343539524195351.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042344039569698410.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042344107081227684.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042346131668826835.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042346251478672095.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042346382011987550.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-20230404234755589239852.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042348377947112508.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042348502970551073.html +55 -0
- data/spec/dummy/tmp/capybara/capybara-202304042351403473706214.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042352069122239363.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042353148433036065.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042353383278368450.html +29 -0
- data/spec/dummy/tmp/capybara/capybara-202304042358431743077504.html +20 -0
- data/spec/dummy/tmp/capybara/capybara-202304042358433434523512.html +20 -0
- data/spec/dummy/tmp/capybara/capybara-202304042358434379121493.html +20 -0
- data/spec/dummy/tmp/capybara/capybara-202304042358492996621343.html +20 -0
- data/spec/dummy/tmp/storage/2e/vk/2evksypp3ct4p9cjihfxwomru17i +1 -0
- data/spec/dummy/tmp/storage/9k/xt/9kxth5brdkw4huy7lciesekum0pt +1 -0
- data/spec/dummy/tmp/storage/cu/44/cu4452jrce4gd0ebcqop1d22kwbs +1 -0
- data/spec/dummy/tmp/storage/dl/oy/dloy0dbuquwe0f48bhugjca71pbv +1 -0
- data/spec/dummy/tmp/storage/h5/vc/h5vcb12f2cviqinrckfmmz4wtsa7 +1 -0
- data/spec/dummy/tmp/storage/ht/4x/ht4xma120asy3gd0fpeseddjzb2l +1 -0
- data/spec/dummy/tmp/storage/ip/au/ipauutuc5vy678hrwz4jx3rvm0n6 +1 -0
- data/spec/dummy/tmp/storage/j1/uy/j1uyrkrosby81sgq1mf59bs7oqee +1 -0
- data/spec/dummy/tmp/storage/nj/vv/njvvpx93zptrmlwbwiuxmxyh1jnf +1 -0
- data/spec/dummy/tmp/storage/nv/nx/nvnxlyvw3vd8xsq2sa4eazqepgbn +1 -0
- data/spec/dummy/tmp/storage/of/b4/ofb41sjj1mp33qs3wsivadhuts3p +1 -0
- data/spec/dummy/tmp/storage/og/ee/ogeerywp2y4szmnlrc5fnuya2evl +1 -0
- data/spec/dummy/tmp/storage/wz/oc/wzocvk4ahpp7kwc951u7f78nj259 +1 -0
- data/spec/dummy/tmp/storage/z3/vx/z3vxuitmnxld08m0qvt9057uyglc +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/1b/cx/1bcxhbuf0bwp8uduq76gye1v11al +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/40/x5/40x5xe5nmit9ngld2lngzfjp6r6x +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/7h/za/7hza4otjknyyo14szs2az8wiu7ai +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/ad/ct/adct5ysy5mq6kyptqk5q3fzfpwui +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/bl/yo/blyo13wkf0l9igpyq4anaqbomz0h +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/cc/g8/ccg8282dt6ixi4yvvwjt4noqa6pj +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/d3/gj/d3gjt0qoinigrbao1anp4hmvedjm +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/f2/bv/f2bvz6ws3xfrk17dpzhyacx3kys2 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/f8/3z/f83z2f041tfpu39ygi0gu32wai8x +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/gt/rc/gtrco13ij0i2vi27t6wm1jhcve5p +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/k8/br/k8br0vtpgmpqxrl8mdsceymh3c8d +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/mw/le/mwle6olsgsk8h2pxvklj5q0yr9sc +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/n7/ja/n7jacvu07s9z9ai7acjq8kovdh02 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o1/2w/o12whqlkt6rc0yaq3b6fsowmewdp +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o9/2g/o92go6wavds5oht0dso6m1ybvbh4 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/om/7f/om7frlle7xz8pybxbydeq1q20hro +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/q6/78/q678f1u8v1nv07dbtm85knmw3b9q +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/qq/kc/qqkciwi2vymum1556755n85po1j9 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/r4/wp/r4wpzje2mix0dtl8r2f4akh18fm1 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/v1/h9/v1h9cuuwtwvz8p6fl574qum6k4ig +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/vb/mw/vbmwrl014lccj3jo61vojqscfxha +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/wn/q4/wnq49hhhxvh4gnc2782lf4zzlz46 +1 -0
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/ya/go/yago1kn4o7p8jfob0cxetrif714s +1 -0
- data/spec/factories/questions_factory.rb +6 -0
- data/spec/factories/users_factory.rb +5 -0
- data/spec/features/rapidfire/answering_questions_spec.rb +47 -7
- data/spec/fixtures/files/one.txt +1 -0
- data/spec/fixtures/files/two.txt +1 -0
- data/spec/models/rapidfire/attempt_spec.rb +5 -1
- data/spec/models/rapidfire/questions/file_spec.rb +57 -0
- data/spec/models/rapidfire/questions/multi_file_spec.rb +60 -0
- data/spec/services/rapidfire/attempt_builder_spec.rb +61 -13
- metadata +184 -232
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -200
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-N/-Nnl5LNk36kVPJf_3kuN5xu7Ebj5HCbnrsyxphSIsdg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-o/-ojJ77Tf5UKdeHBEDmWtQ_3tnTJqQ0nd-YsKamqADUE.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2b/2bErzwvSRmQv4cAljE5MLyihOZ0NcAw3J8cE3Lt0e4Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4C/4CJwpaeIKdXtjEAju7_wQgXuYrzr55ARwRJeVKN7CPM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4U/4UispN4bfPqEzViX3T416Fr-T-7awbayU5fSryvLFNw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4k/4kH3sikLuE3o4jE_TNDlBNrlF7XAo_qYtBA6ckHGa5I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7d/7drzegBZRzthT8NYQjAVcg1mCXgXUj5USwB8GQ1o23Y.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/80/80TT8hyotZ8-XWzQe7ELHNN8U6Mp2oGKwqa6Ckoksx0.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8F/8FRx5PWf5mlaMlBnq_oPScrqvzB2csCEVlQ-FbB7Jy8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8M/8MNahq2o0fNDjjgT-erC9ZV3sFYg4ifFZqlLkcifOSA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8W/8WURt7NXtVdx9vbcRVtNXo2mqrL-0LPzw609oR1ZXnk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8k/8kFdViWjxSCYCA00vzJCIk-Hl7Dv6xCJ_Ce3jZALweg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9-/9-6v3_GF1yDfksWqHBJ96NiduUWyrW5R3k6MQzVpork.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/94/94L1rKpX0k77vTIGtqElUDP4dpQXrCmvpI9CmQcZ_aM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9s/9s2S3Z_vncpN-gwuV05kcjhELi_kX-saO8shiQRx8cU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AS/AS1POBxm-FJcvGXfKUC02RI960YWQRZP6B5bJ9Pc8qU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AS/Asy0YwmSFpm-OyM4_Lb9v5CTPAePa74fljOfWyS3SJY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AY/AYSNFEx7wRHtwbVh3cNGid6wCMdfgyk9ocorMLfRqx4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bk/BkxzEgJOpM-iCKaxrcsZlyRZeZKYVDlUj0C-sPXVGPc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CW/CW8uYbA8W5LQ0T8Bo2ygunrwYuaHB0kJJuXlPlGA5F8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Co/CooYsvCeOgtDx9ZKSzQADfurwS4WGsVpyNXMlWum68U.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DC/DCdg25PhcFibsQItx9ofgOr68CacLQumta_lSKJCoOg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Db/DbmLC3wtG7ztEvkzmVAubW8vf37XdD0bT3Kh73oed1A.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Db/dBQCcGB2fmK2CTrjrkLGxVmGKqBC2AZAx2C6TUMa1XY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dn/Dn7Jw00mRZVDDxhjSg9300HJb_1875nlul_DHMMinn8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHV1NrIJaxcdliBIo7Z7i28Nqm-8xd7RplmATbQZysI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ie/IemA55SqXkoyW_cD7FDwSk834ZydXI6UJpy7QsD-H5Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7SHc_erMPqr16VuAuVxvKfOUmN9Xf9zCR5Mmr6jOTo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KG/KGhjc0Py_DB3csmx7Y7NGPUOfnsPXP_KJc94bFEIZls.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lz/LzA8Mm_F0jmw6BK_4ca5scIcIGc6RjWV54G-BeQv8cA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MP/MPTz2thdBdQPKUgb5k1oYWT6cmJYgRTEz_NEYDQt7E0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mt/MtTjUV8qKCTEH961LJhYQWADgVragV9D9xWWiCmxyNc.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/O9/O9WxLI48Zh1ES7ZCQC-cX2C7A_-Wg_c_kUOsIHodXW0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qo/QoZwnBtkSf3joyR1_5FKACUOgfoO35xMFOfLJkJqFD8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R6/R6G-TFFztlxL5XDMIFX62wKkfUfmib6oV93z-xCZWsU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ry/Ry0Py6y0kHcEYq6qNWzUVQaMeP_p4kGPbD3ZchhmvEA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SD/SDy6hVbUInn62jE9aAJObZ8NmVkGE5sF7KxhzNEwjys.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SD/sdxeRQBFEvjbUw-k3jsefKcslmEkm88PryW_XDPfOWU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SH/SHUtigN8XJz-0yTSrOMb-kFlv8iOSvIKmMU76EwSoY0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tg/TgTcVvqf5KTGti25aDSVdPzdEFSzFCA7TIgv36nVcSw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tj/TjvztGCZ2bx84O9DtrIqlbV9f36XZWuZRucFAwvdgJI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tw/Twx5_JY_0JVEAdweDWUNH8zBfK8PB6OnwROdMaXHv98.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UD/UD9ueo8syy1g__X14lIaWY51JAsI5nkxjvn4iz7-B68.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VY/VYOSVFxELVZ_dWFjIfo96exB1iYypEPPaE0U-NYUk3I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vq/VqF69IHPfaZOy6Wd3s10PIQmt2iWbU7UKgi7gGhoY6c.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W3/W3k3ezbkIWPsSAffgGGMKKSe_1CPV2jCUAXtFPSKTjE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XY/XYnyPDtRIxqi5PSIcR0DKovMSyfgt-vquXm2oF4YcYU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xe/Xez_IMQeyfLa4U_cntyZgtqAxc9P-spYMcKOwgwqfUk.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xp/XpKq_V1bVRTt2Dm9n2LFly2fc7rc63m5n0TkruAIT9U.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YQ/YQ07c7yZvQDkWCDNv-r_m3MczWVJMkpDlY6mItSQvDI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_D/_Du4UKNyRoKp1L8GangzMxQuHGRXv9UNLRFzUUG-8Mo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_i/_ioj978qaHpKe71YAPRTMr52bYBz1jBQH_a9jnVNxto.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/a9/a9w-3USbjccL8aE_56A0EsenyNCD6btCxgmr4_s-LVk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c6/c6TDdHnqxfaHueLdYt538jXw_7RBFpECFkp7A4pWUfs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dH/dH4Xkqb5rV9DHHmRa_ODseSEFnlwS0AXeHgoCYqkkZ8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dU/dUHj3xc9qlZfXc7VP69mfddx5l1sXwlfejSWXIdb1JQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/de/derm8VJMOzbaRf2rY8Vz6WSHk5w-XAKJIsAIHU5Ng58.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e6/e6jkUzONoMPGAC7nyZsGla8Zm7wPlhXwijdHIYF-FTo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fJ/fJ5wsH-IHhi_3Wg-4Yk01_O8Bw8SpcxPh-PaN6n38CQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g3/g3XXzOg1WKmExnfECaHxaHbjrF8feoJ60TwJJQzWlhI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g4/g4tbfWjrt8uCm6WfFre4E1yEp4WC9rV9pFrA_9VHQys.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gm/gmSFGhfFSAm1wrLyyGXOUXMn-kygBbG7Zf3unPKzEWw.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gz/gz6bIRfuHgLuNBVVsocUuzLbEU4gEneTbmvzi27eoho.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hM/hMgVzrZus4Z8I8AXg5NPYgizKLI5WwSbt5NKdK00slk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iw/iwQwbZENFRwrGzETXtK_2_3aqWyAENDNwJAdJu1RoBg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kJ/kJSsmIsKQHNWdfJ2rMMpTZQ6DeAipIUyiXdftUlXr4I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ky/ky_7gNCiNp9E5HHXqszipoMZuSpcxD9ceXe46g_5VzI.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lJ/lJf_GZ6JzbMPq2WIEKNQKFh5vI9T8ylMDcZQMcgj1fg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lo/lo0mbuMJiW9QksbTzvZ6N6aknuNrk1sJCprfNsMJw50.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m8/m801v81Cvh2CcUpw7286U_9CC2tO0z4XBKhfVx8OabE.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mY/mYUyrqDItAnpMyLO7mNA7gPs93yNLb7Hr66jqh-aJmk.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oT/oT7WJVi5xRK0iTbo-MPPVRF3__YNxLiK-kG2oSzeHgA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pr/prpHKLWY8kH_ZR0CBQBubKTbYRVzUx-u2RzceRwSedM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/py/py8m2jF8ezxgbkf0QTl2FPU21gpWQgvz96UpLr4JCbQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q3/q3AuG3GbIVzhGBdYCriWe8FktR40JLxYfJyauA0-CCs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q7/q7yl5Q_Rk3hQdNI2dKzooG6EkbWvfGaywsvHDtNBX3E.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rc/rcasFMX-bUWsjC8vmfqpoKL6LDbNyRqjBOBJn6KxQrM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rh/rh0ehR00zu0AmhmksJoUmSMhi6eKb30JpiSLU1Y7vGY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/t6/t6ve2uEx0ZpKYVPLJkiSm3_3nVj8hVs0ouPs-j1Y-Lw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tF/tFs-J47Vhauit7rJvH6_RG3NydHacSvI1Wn_BPK8OBs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uU/uUfexZe40_0TvILVKPsXUS5gjsc4iul3OZCrWoXS0Qo.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vF/vFj_rUSzkEPWTAvaVnIUzkZIbfolIXH2bitACRZYWAU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vk/vk-e_ORxd49RmmTia4r2ajyVw0p-xcUuz8uz8Nx_LUw.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wa/wab9PO75nglTE-rq2pVPg22CRkZW_yTq_WcZ6BEp8T0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wd/wdHNDzQjfQYx2VQbObEoz4iNxGhcuum4uypNBmnuNpA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wu/wuO0z3wuhphrqHOHqZdrZd6lFv2u0_Gq7BkDoc_8cEw.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xg/xge95XbE6Me8MVp8Pnz9FbKOZhvzndxHzh-uOjZV5_s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xz/Xz-wkd5XTDRNs5mNRhBpx4RSe0LN9ajplnuDcli51jE.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xz/xzFhuo3m7qD5I9Xc85aP9j6kR-iAOB0najl9uu7hdMc.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yn/ynGH6ruy4vPfFCwXOH8rgd3f-UWmo05h37jjH0cii8E.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yw/yw6SDVVxzUeXqN9VX1eCGWTN809mt05p0JnedEBCZ7w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zg/zg53gL5TWyca4nbWc_d4pFhJ7huiu6zm1BTDcALsP8c.cache +0 -1
data/spec/dummy/db/schema.rb
CHANGED
@@ -2,22 +2,46 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
# from scratch.
|
9
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 2023_04_02_174122) do
|
14
|
+
create_table "active_storage_attachments", force: :cascade do |t|
|
15
|
+
t.string "name", null: false
|
16
|
+
t.string "record_type", null: false
|
17
|
+
t.bigint "record_id", null: false
|
18
|
+
t.bigint "blob_id", null: false
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
21
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table "active_storage_blobs", force: :cascade do |t|
|
25
|
+
t.string "key", null: false
|
26
|
+
t.string "filename", null: false
|
27
|
+
t.string "content_type"
|
28
|
+
t.text "metadata"
|
29
|
+
t.string "service_name", null: false
|
30
|
+
t.bigint "byte_size", null: false
|
31
|
+
t.string "checksum"
|
32
|
+
t.datetime "created_at", null: false
|
33
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
34
|
+
end
|
14
35
|
|
15
|
-
|
16
|
-
|
36
|
+
create_table "active_storage_variant_records", force: :cascade do |t|
|
37
|
+
t.bigint "blob_id", null: false
|
38
|
+
t.string "variation_digest", null: false
|
39
|
+
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
40
|
+
end
|
17
41
|
|
18
42
|
create_table "rapidfire_answers", force: :cascade do |t|
|
19
|
-
t.
|
20
|
-
t.
|
43
|
+
t.integer "attempt_id"
|
44
|
+
t.integer "question_id"
|
21
45
|
t.text "answer_text"
|
22
46
|
t.datetime "created_at", null: false
|
23
47
|
t.datetime "updated_at", null: false
|
@@ -26,17 +50,18 @@ ActiveRecord::Schema.define(version: 20170701191411) do
|
|
26
50
|
end
|
27
51
|
|
28
52
|
create_table "rapidfire_attempts", force: :cascade do |t|
|
29
|
-
t.
|
53
|
+
t.integer "survey_id"
|
30
54
|
t.string "user_type"
|
31
|
-
t.
|
55
|
+
t.integer "user_id"
|
32
56
|
t.datetime "created_at", null: false
|
33
57
|
t.datetime "updated_at", null: false
|
34
58
|
t.index ["survey_id"], name: "index_rapidfire_attempts_on_survey_id"
|
35
|
-
t.index ["
|
59
|
+
t.index ["user_id", "user_type"], name: "index_rapidfire_attempts_on_user_id_and_user_type"
|
60
|
+
t.index ["user_type", "user_id"], name: "index_rapidfire_attempts_on_user"
|
36
61
|
end
|
37
62
|
|
38
63
|
create_table "rapidfire_questions", force: :cascade do |t|
|
39
|
-
t.
|
64
|
+
t.integer "survey_id"
|
40
65
|
t.string "type"
|
41
66
|
t.string "question_text"
|
42
67
|
t.string "default_text"
|
@@ -50,11 +75,22 @@ ActiveRecord::Schema.define(version: 20170701191411) do
|
|
50
75
|
end
|
51
76
|
|
52
77
|
create_table "rapidfire_surveys", force: :cascade do |t|
|
53
|
-
t.string
|
54
|
-
t.text
|
78
|
+
t.string "name"
|
79
|
+
t.text "introduction"
|
80
|
+
t.datetime "created_at", null: false
|
81
|
+
t.datetime "updated_at", null: false
|
82
|
+
t.integer "owner_id"
|
83
|
+
t.string "owner_type"
|
84
|
+
t.text "after_survey_content"
|
85
|
+
t.boolean "active"
|
86
|
+
end
|
87
|
+
|
88
|
+
create_table "users", force: :cascade do |t|
|
89
|
+
t.string "name"
|
55
90
|
t.datetime "created_at", null: false
|
56
91
|
t.datetime "updated_at", null: false
|
57
|
-
t.text "after_survey_content"
|
58
92
|
end
|
59
93
|
|
94
|
+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
95
|
+
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
60
96
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|