diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:34:22 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:34:22 -0400 |
| commit | e9f3ed0795b1827472337e9bd0b108dec8d7cdea (patch) | |
| tree | 4956a4c359e3840c068f2c8625812bd2efd864ab | |
| parent | 94e2fa2ac32a88dfd802653f30f536c45845159b (diff) | |
| download | thoughts-e9f3ed0795b1827472337e9bd0b108dec8d7cdea.tar.gz thoughts-e9f3ed0795b1827472337e9bd0b108dec8d7cdea.tar.bz2 thoughts-e9f3ed0795b1827472337e9bd0b108dec8d7cdea.zip | |
Installed Wittle
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | Gemfile | 3 | ||||
| -rw-r--r-- | Gemfile.lock | 206 | ||||
| -rw-r--r-- | config/routes.rb | 1 | ||||
| -rw-r--r-- | db/migrate/20231030181439_create_wittle_puzzles.wittle.rb | 12 | ||||
| -rw-r--r-- | db/migrate/20231030181440_create_wittle_scores.wittle.rb | 13 | ||||
| -rw-r--r-- | db/schema.rb | 20 |
7 files changed, 174 insertions, 84 deletions
| diff --git a/.gitignore b/.gitignore index 7e20915..7e4fe23 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -8,8 +8,7 @@ | |||
| 8 | /.bundle | 8 | /.bundle |
| 9 | 9 | ||
| 10 | # Ignore the default SQLite database. | 10 | # Ignore the default SQLite database. |
| 11 | /db/*.sqlite3 | 11 | /db/*.sqlite3* |
| 12 | /db/*.sqlite3-journal | ||
| 13 | 12 | ||
| 14 | # Ignore all logfiles and tempfiles. | 13 | # Ignore all logfiles and tempfiles. |
| 15 | /log/* | 14 | /log/* |
| diff --git a/Gemfile b/Gemfile index fd377fe..88a4899 100644 --- a/Gemfile +++ b/Gemfile | |||
| @@ -7,7 +7,7 @@ end | |||
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | 9 | # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' |
| 10 | gem 'rails', '~> 7.0.3' | 10 | gem 'rails', '~> 7.1.0' |
| 11 | # Use sqlite3 as the database for Active Record | 11 | # Use sqlite3 as the database for Active Record |
| 12 | gem 'sqlite3' | 12 | gem 'sqlite3' |
| 13 | # Use Puma as the app server | 13 | # Use Puma as the app server |
| @@ -84,3 +84,4 @@ gem 'active_storage_validations' | |||
| 84 | gem "image_processing", ">= 1.2" | 84 | gem "image_processing", ">= 1.2" |
| 85 | gem "meta-tags" | 85 | gem "meta-tags" |
| 86 | gem 'rails_autolink' | 86 | gem 'rails_autolink' |
| 87 | gem 'wittle', git: "https://git.fourisland.com/wittle", branch: "main" | ||
| diff --git a/Gemfile.lock b/Gemfile.lock index 07908ec..29af576 100644 --- a/Gemfile.lock +++ b/Gemfile.lock | |||
| @@ -11,7 +11,7 @@ GIT | |||
| 11 | 11 | ||
| 12 | GIT | 12 | GIT |
| 13 | remote: https://git.fourisland.com/pokeviewer | 13 | remote: https://git.fourisland.com/pokeviewer |
| 14 | revision: e28f6b73ab7f2e59605ebd800e921a6146fc49ae | 14 | revision: c1b0443ba2aebdbd39291ddab0c189f3f4831320 |
| 15 | specs: | 15 | specs: |
| 16 | pokeviewer (0.1.0) | 16 | pokeviewer (0.1.0) |
| 17 | activerecord-diff | 17 | activerecord-diff |
| @@ -20,87 +20,108 @@ GIT | |||
| 20 | haml | 20 | haml |
| 21 | jquery-rails | 21 | jquery-rails |
| 22 | normalize-rails | 22 | normalize-rails |
| 23 | rails (~> 7.0.3) | 23 | rails (~> 7.1.0) |
| 24 | sassc-rails | 24 | sassc-rails |
| 25 | sequenced | 25 | sequenced |
| 26 | victor | 26 | victor |
| 27 | 27 | ||
| 28 | GIT | ||
| 29 | remote: https://git.fourisland.com/wittle | ||
| 30 | revision: a53bb4be6925439f9fead619292c662ea6e38748 | ||
| 31 | branch: main | ||
| 32 | specs: | ||
| 33 | wittle (0.1.0) | ||
| 34 | enumerize | ||
| 35 | haml | ||
| 36 | jquery-rails | ||
| 37 | rails (>= 7.1.1) | ||
| 38 | rice | ||
| 39 | sassc-rails | ||
| 40 | |||
| 28 | GEM | 41 | GEM |
| 29 | remote: https://rubygems.org/ | 42 | remote: https://rubygems.org/ |
| 30 | specs: | 43 | specs: |
| 31 | actioncable (7.0.8) | 44 | actioncable (7.1.1) |
| 32 | actionpack (= 7.0.8) | 45 | actionpack (= 7.1.1) |
| 33 | activesupport (= 7.0.8) | 46 | activesupport (= 7.1.1) |
| 34 | nio4r (~> 2.0) | 47 | nio4r (~> 2.0) |
| 35 | websocket-driver (>= 0.6.1) | 48 | websocket-driver (>= 0.6.1) |
| 36 | actionmailbox (7.0.8) | 49 | zeitwerk (~> 2.6) |
| 37 | actionpack (= 7.0.8) | 50 | actionmailbox (7.1.1) |
| 38 | activejob (= 7.0.8) | 51 | actionpack (= 7.1.1) |
| 39 | activerecord (= 7.0.8) | 52 | activejob (= 7.1.1) |
| 40 | activestorage (= 7.0.8) | 53 | activerecord (= 7.1.1) |
| 41 | activesupport (= 7.0.8) | 54 | activestorage (= 7.1.1) |
| 55 | activesupport (= 7.1.1) | ||
| 42 | mail (>= 2.7.1) | 56 | mail (>= 2.7.1) |
| 43 | net-imap | 57 | net-imap |
| 44 | net-pop | 58 | net-pop |
| 45 | net-smtp | 59 | net-smtp |
| 46 | actionmailer (7.0.8) | 60 | actionmailer (7.1.1) |
| 47 | actionpack (= 7.0.8) | 61 | actionpack (= 7.1.1) |
| 48 | actionview (= 7.0.8) | 62 | actionview (= 7.1.1) |
| 49 | activejob (= 7.0.8) | 63 | activejob (= 7.1.1) |
| 50 | activesupport (= 7.0.8) | 64 | activesupport (= 7.1.1) |
| 51 | mail (~> 2.5, >= 2.5.4) | 65 | mail (~> 2.5, >= 2.5.4) |
| 52 | net-imap | 66 | net-imap |
| 53 | net-pop | 67 | net-pop |
| 54 | net-smtp | 68 | net-smtp |
| 55 | rails-dom-testing (~> 2.0) | 69 | rails-dom-testing (~> 2.2) |
| 56 | actionpack (7.0.8) | 70 | actionpack (7.1.1) |
| 57 | actionview (= 7.0.8) | 71 | actionview (= 7.1.1) |
| 58 | activesupport (= 7.0.8) | 72 | activesupport (= 7.1.1) |
| 59 | rack (~> 2.0, >= 2.2.4) | 73 | nokogiri (>= 1.8.5) |
| 74 | rack (>= 2.2.4) | ||
| 75 | rack-session (>= 1.0.1) | ||
| 60 | rack-test (>= 0.6.3) | 76 | rack-test (>= 0.6.3) |
| 61 | rails-dom-testing (~> 2.0) | 77 | rails-dom-testing (~> 2.2) |
| 62 | rails-html-sanitizer (~> 1.0, >= 1.2.0) | 78 | rails-html-sanitizer (~> 1.6) |
| 63 | actiontext (7.0.8) | 79 | actiontext (7.1.1) |
| 64 | actionpack (= 7.0.8) | 80 | actionpack (= 7.1.1) |
| 65 | activerecord (= 7.0.8) | 81 | activerecord (= 7.1.1) |
| 66 | activestorage (= 7.0.8) | 82 | activestorage (= 7.1.1) |
| 67 | activesupport (= 7.0.8) | 83 | activesupport (= 7.1.1) |
| 68 | globalid (>= 0.6.0) | 84 | globalid (>= 0.6.0) |
| 69 | nokogiri (>= 1.8.5) | 85 | nokogiri (>= 1.8.5) |
| 70 | actionview (7.0.8) | 86 | actionview (7.1.1) |
| 71 | activesupport (= 7.0.8) | 87 | activesupport (= 7.1.1) |
| 72 | builder (~> 3.1) | 88 | builder (~> 3.1) |
| 73 | erubi (~> 1.4) | 89 | erubi (~> 1.11) |
| 74 | rails-dom-testing (~> 2.0) | 90 | rails-dom-testing (~> 2.2) |
| 75 | rails-html-sanitizer (~> 1.1, >= 1.2.0) | 91 | rails-html-sanitizer (~> 1.6) |
| 76 | active_storage_validations (1.0.4) | 92 | active_storage_validations (1.1.1) |
| 77 | activejob (>= 5.2.0) | 93 | activejob (>= 5.2.0) |
| 78 | activemodel (>= 5.2.0) | 94 | activemodel (>= 5.2.0) |
| 79 | activestorage (>= 5.2.0) | 95 | activestorage (>= 5.2.0) |
| 80 | activesupport (>= 5.2.0) | 96 | activesupport (>= 5.2.0) |
| 81 | activejob (7.0.8) | 97 | activejob (7.1.1) |
| 82 | activesupport (= 7.0.8) | 98 | activesupport (= 7.1.1) |
| 83 | globalid (>= 0.3.6) | 99 | globalid (>= 0.3.6) |
| 84 | activemodel (7.0.8) | 100 | activemodel (7.1.1) |
| 85 | activesupport (= 7.0.8) | 101 | activesupport (= 7.1.1) |
| 86 | activerecord (7.0.8) | 102 | activerecord (7.1.1) |
| 87 | activemodel (= 7.0.8) | 103 | activemodel (= 7.1.1) |
| 88 | activesupport (= 7.0.8) | 104 | activesupport (= 7.1.1) |
| 105 | timeout (>= 0.4.0) | ||
| 89 | activerecord-diff (2.0.0) | 106 | activerecord-diff (2.0.0) |
| 90 | activestorage (7.0.8) | 107 | activestorage (7.1.1) |
| 91 | actionpack (= 7.0.8) | 108 | actionpack (= 7.1.1) |
| 92 | activejob (= 7.0.8) | 109 | activejob (= 7.1.1) |
| 93 | activerecord (= 7.0.8) | 110 | activerecord (= 7.1.1) |
| 94 | activesupport (= 7.0.8) | 111 | activesupport (= 7.1.1) |
| 95 | marcel (~> 1.0) | 112 | marcel (~> 1.0) |
| 96 | mini_mime (>= 1.1.0) | 113 | activesupport (7.1.1) |
| 97 | activesupport (7.0.8) | 114 | base64 |
| 115 | bigdecimal | ||
| 98 | concurrent-ruby (~> 1.0, >= 1.0.2) | 116 | concurrent-ruby (~> 1.0, >= 1.0.2) |
| 117 | connection_pool (>= 2.2.5) | ||
| 118 | drb | ||
| 99 | i18n (>= 1.6, < 2) | 119 | i18n (>= 1.6, < 2) |
| 100 | minitest (>= 5.1) | 120 | minitest (>= 5.1) |
| 121 | mutex_m | ||
| 101 | tzinfo (~> 2.0) | 122 | tzinfo (~> 2.0) |
| 102 | acts-as-taggable-on (9.0.1) | 123 | acts-as-taggable-on (10.0.0) |
| 103 | activerecord (>= 6.0, < 7.1) | 124 | activerecord (>= 6.1, < 7.2) |
| 104 | addressable (2.8.5) | 125 | addressable (2.8.5) |
| 105 | public_suffix (>= 2.0.2, < 6.0) | 126 | public_suffix (>= 2.0.2, < 6.0) |
| 106 | airbrussh (1.5.0) | 127 | airbrussh (1.5.0) |
| @@ -109,11 +130,13 @@ GEM | |||
| 109 | audited (5.4.0) | 130 | audited (5.4.0) |
| 110 | activerecord (>= 5.0, < 7.2) | 131 | activerecord (>= 5.0, < 7.2) |
| 111 | request_store (~> 1.2) | 132 | request_store (~> 1.2) |
| 133 | base64 (0.1.1) | ||
| 112 | bcrypt (3.1.19) | 134 | bcrypt (3.1.19) |
| 135 | bigdecimal (3.1.4) | ||
| 113 | bindex (0.8.1) | 136 | bindex (0.8.1) |
| 114 | builder (3.2.4) | 137 | builder (3.2.4) |
| 115 | byebug (11.1.3) | 138 | byebug (11.1.3) |
| 116 | capistrano (3.17.3) | 139 | capistrano (3.18.0) |
| 117 | airbrussh (>= 1.0.0) | 140 | airbrussh (>= 1.0.0) |
| 118 | i18n | 141 | i18n |
| 119 | rake (>= 10.0.0) | 142 | rake (>= 10.0.0) |
| @@ -144,14 +167,17 @@ GEM | |||
| 144 | execjs | 167 | execjs |
| 145 | coffee-script-source (1.12.2) | 168 | coffee-script-source (1.12.2) |
| 146 | concurrent-ruby (1.2.2) | 169 | concurrent-ruby (1.2.2) |
| 170 | connection_pool (2.4.1) | ||
| 147 | crass (1.0.6) | 171 | crass (1.0.6) |
| 148 | date (3.3.3) | 172 | date (3.3.3) |
| 149 | devise (4.9.2) | 173 | devise (4.9.3) |
| 150 | bcrypt (~> 3.0) | 174 | bcrypt (~> 3.0) |
| 151 | orm_adapter (~> 0.1) | 175 | orm_adapter (~> 0.1) |
| 152 | railties (>= 4.1.0) | 176 | railties (>= 4.1.0) |
| 153 | responders | 177 | responders |
| 154 | warden (~> 1.2.3) | 178 | warden (~> 1.2.3) |
| 179 | drb (2.1.1) | ||
| 180 | ruby2_keywords | ||
| 155 | enumerize (2.7.0) | 181 | enumerize (2.7.0) |
| 156 | activesupport (>= 3.2) | 182 | activesupport (>= 3.2) |
| 157 | erubi (1.12.0) | 183 | erubi (1.12.0) |
| @@ -174,6 +200,10 @@ GEM | |||
| 174 | image_processing (1.12.2) | 200 | image_processing (1.12.2) |
| 175 | mini_magick (>= 4.9.5, < 5) | 201 | mini_magick (>= 4.9.5, < 5) |
| 176 | ruby-vips (>= 2.0.17, < 3) | 202 | ruby-vips (>= 2.0.17, < 3) |
| 203 | io-console (0.6.0) | ||
| 204 | irb (1.8.3) | ||
| 205 | rdoc | ||
| 206 | reline (>= 0.3.8) | ||
| 177 | jbuilder (2.11.5) | 207 | jbuilder (2.11.5) |
| 178 | actionview (>= 5.0.0) | 208 | actionview (>= 5.0.0) |
| 179 | activesupport (>= 5.0.0) | 209 | activesupport (>= 5.0.0) |
| @@ -200,7 +230,6 @@ GEM | |||
| 200 | marcel (1.0.2) | 230 | marcel (1.0.2) |
| 201 | meta-tags (2.19.0) | 231 | meta-tags (2.19.0) |
| 202 | actionpack (>= 3.2.0, < 7.2) | 232 | actionpack (>= 3.2.0, < 7.2) |
| 203 | method_source (1.0.0) | ||
| 204 | mime-types (3.5.1) | 233 | mime-types (3.5.1) |
| 205 | mime-types-data (~> 3.2015) | 234 | mime-types-data (~> 3.2015) |
| 206 | mime-types-data (3.2023.1003) | 235 | mime-types-data (3.2023.1003) |
| @@ -209,12 +238,13 @@ GEM | |||
| 209 | rake | 238 | rake |
| 210 | mini_magick (4.12.0) | 239 | mini_magick (4.12.0) |
| 211 | mini_mime (1.1.5) | 240 | mini_mime (1.1.5) |
| 212 | mini_portile2 (2.8.4) | 241 | mini_portile2 (2.8.5) |
| 213 | mini_racer (0.8.0) | 242 | mini_racer (0.8.0) |
| 214 | libv8-node (~> 18.16.0.0) | 243 | libv8-node (~> 18.16.0.0) |
| 215 | minitest (5.20.0) | 244 | minitest (5.20.0) |
| 245 | mutex_m (0.1.2) | ||
| 216 | mysql2 (0.5.5) | 246 | mysql2 (0.5.5) |
| 217 | net-imap (0.4.1) | 247 | net-imap (0.4.3) |
| 218 | date | 248 | date |
| 219 | net-protocol | 249 | net-protocol |
| 220 | net-pop (0.1.2) | 250 | net-pop (0.1.2) |
| @@ -238,25 +268,32 @@ GEM | |||
| 238 | mime-types | 268 | mime-types |
| 239 | mimemagic (~> 0.3.0) | 269 | mimemagic (~> 0.3.0) |
| 240 | terrapin (~> 0.6.0) | 270 | terrapin (~> 0.6.0) |
| 271 | psych (5.1.1.1) | ||
| 272 | stringio | ||
| 241 | public_suffix (5.0.3) | 273 | public_suffix (5.0.3) |
| 242 | racc (1.7.1) | 274 | racc (1.7.1) |
| 243 | rack (2.2.8) | 275 | rack (2.2.8) |
| 276 | rack-session (1.0.1) | ||
| 277 | rack (< 3) | ||
| 244 | rack-test (2.1.0) | 278 | rack-test (2.1.0) |
| 245 | rack (>= 1.3) | 279 | rack (>= 1.3) |
| 246 | rails (7.0.8) | 280 | rackup (1.0.0) |
| 247 | actioncable (= 7.0.8) | 281 | rack (< 3) |
| 248 | actionmailbox (= 7.0.8) | 282 | webrick |
| 249 | actionmailer (= 7.0.8) | 283 | rails (7.1.1) |
| 250 | actionpack (= 7.0.8) | 284 | actioncable (= 7.1.1) |
| 251 | actiontext (= 7.0.8) | 285 | actionmailbox (= 7.1.1) |
| 252 | actionview (= 7.0.8) | 286 | actionmailer (= 7.1.1) |
| 253 | activejob (= 7.0.8) | 287 | actionpack (= 7.1.1) |
| 254 | activemodel (= 7.0.8) | 288 | actiontext (= 7.1.1) |
| 255 | activerecord (= 7.0.8) | 289 | actionview (= 7.1.1) |
| 256 | activestorage (= 7.0.8) | 290 | activejob (= 7.1.1) |
| 257 | activesupport (= 7.0.8) | 291 | activemodel (= 7.1.1) |
| 292 | activerecord (= 7.1.1) | ||
| 293 | activestorage (= 7.1.1) | ||
| 294 | activesupport (= 7.1.1) | ||
| 258 | bundler (>= 1.15.0) | 295 | bundler (>= 1.15.0) |
| 259 | railties (= 7.0.8) | 296 | railties (= 7.1.1) |
| 260 | rails-dom-testing (2.2.0) | 297 | rails-dom-testing (2.2.0) |
| 261 | activesupport (>= 5.0.0) | 298 | activesupport (>= 5.0.0) |
| 262 | minitest | 299 | minitest |
| @@ -268,27 +305,34 @@ GEM | |||
| 268 | actionview (> 3.1) | 305 | actionview (> 3.1) |
| 269 | activesupport (> 3.1) | 306 | activesupport (> 3.1) |
| 270 | railties (> 3.1) | 307 | railties (> 3.1) |
| 271 | railties (7.0.8) | 308 | railties (7.1.1) |
| 272 | actionpack (= 7.0.8) | 309 | actionpack (= 7.1.1) |
| 273 | activesupport (= 7.0.8) | 310 | activesupport (= 7.1.1) |
| 274 | method_source | 311 | irb |
| 312 | rackup (>= 1.0.0) | ||
| 275 | rake (>= 12.2) | 313 | rake (>= 12.2) |
| 276 | thor (~> 1.0) | 314 | thor (~> 1.0, >= 1.2.2) |
| 277 | zeitwerk (~> 2.5) | 315 | zeitwerk (~> 2.6) |
| 278 | rake (13.0.6) | 316 | rake (13.1.0) |
| 279 | rb-fsevent (0.11.2) | 317 | rb-fsevent (0.11.2) |
| 280 | rb-inotify (0.10.1) | 318 | rb-inotify (0.10.1) |
| 281 | ffi (~> 1.0) | 319 | ffi (~> 1.0) |
| 320 | rdoc (6.5.0) | ||
| 321 | psych (>= 4.0.0) | ||
| 282 | redcarpet (3.6.0) | 322 | redcarpet (3.6.0) |
| 323 | reline (0.3.9) | ||
| 324 | io-console (~> 0.5) | ||
| 283 | request_store (1.5.1) | 325 | request_store (1.5.1) |
| 284 | rack (>= 1.4) | 326 | rack (>= 1.4) |
| 285 | responders (3.1.0) | 327 | responders (3.1.1) |
| 286 | actionpack (>= 5.2) | 328 | actionpack (>= 5.2) |
| 287 | railties (>= 5.2) | 329 | railties (>= 5.2) |
| 288 | rexml (3.2.6) | 330 | rexml (3.2.6) |
| 289 | rouge (4.1.3) | 331 | rice (4.1.0) |
| 290 | ruby-vips (2.1.4) | 332 | rouge (4.2.0) |
| 333 | ruby-vips (2.2.0) | ||
| 291 | ffi (~> 1.12) | 334 | ffi (~> 1.12) |
| 335 | ruby2_keywords (0.0.5) | ||
| 292 | rubyzip (2.3.2) | 336 | rubyzip (2.3.2) |
| 293 | sassc (2.4.0) | 337 | sassc (2.4.0) |
| 294 | ffi (~> 1.9) | 338 | ffi (~> 1.9) |
| @@ -321,10 +365,11 @@ GEM | |||
| 321 | sshkit (1.21.5) | 365 | sshkit (1.21.5) |
| 322 | net-scp (>= 1.1.2) | 366 | net-scp (>= 1.1.2) |
| 323 | net-ssh (>= 2.8.0) | 367 | net-ssh (>= 2.8.0) |
| 368 | stringio (3.0.8) | ||
| 324 | temple (0.10.3) | 369 | temple (0.10.3) |
| 325 | terrapin (0.6.0) | 370 | terrapin (0.6.0) |
| 326 | climate_control (>= 0.0.3, < 1.0) | 371 | climate_control (>= 0.0.3, < 1.0) |
| 327 | thor (1.2.2) | 372 | thor (1.3.0) |
| 328 | tilt (2.3.0) | 373 | tilt (2.3.0) |
| 329 | timeout (0.4.0) | 374 | timeout (0.4.0) |
| 330 | turbolinks (5.2.1) | 375 | turbolinks (5.2.1) |
| @@ -385,7 +430,7 @@ DEPENDENCIES | |||
| 385 | normalize-rails | 430 | normalize-rails |
| 386 | paperclip | 431 | paperclip |
| 387 | pokeviewer! | 432 | pokeviewer! |
| 388 | rails (~> 7.0.3) | 433 | rails (~> 7.1.0) |
| 389 | rails_autolink | 434 | rails_autolink |
| 390 | redcarpet | 435 | redcarpet |
| 391 | rouge | 436 | rouge |
| @@ -401,6 +446,7 @@ DEPENDENCIES | |||
| 401 | web-console (>= 3.3.0) | 446 | web-console (>= 3.3.0) |
| 402 | webrick (~> 1.7) | 447 | webrick (~> 1.7) |
| 403 | will_paginate (~> 4.0) | 448 | will_paginate (~> 4.0) |
| 449 | wittle! | ||
| 404 | 450 | ||
| 405 | BUNDLED WITH | 451 | BUNDLED WITH |
| 406 | 2.2.3 | 452 | 2.2.3 |
| diff --git a/config/routes.rb b/config/routes.rb index 1671d54..81b5de2 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -83,4 +83,5 @@ Rails.application.routes.draw do | |||
| 83 | 83 | ||
| 84 | mount Pokeviewer::Engine => '/poke3' | 84 | mount Pokeviewer::Engine => '/poke3' |
| 85 | mount Lingo::Engine => '/lingo' | 85 | mount Lingo::Engine => '/lingo' |
| 86 | mount Wittle::Engine => '/wittle' | ||
| 86 | end | 87 | end |
| diff --git a/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb b/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb new file mode 100644 index 0000000..9accf92 --- /dev/null +++ b/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # This migration comes from wittle (originally 20231028205751) | ||
| 2 | class CreateWittlePuzzles < ActiveRecord::Migration[7.1] | ||
| 3 | def change | ||
| 4 | create_table :wittle_puzzles do |t| | ||
| 5 | t.text :data | ||
| 6 | t.text :solved_data | ||
| 7 | t.string :category | ||
| 8 | |||
| 9 | t.timestamps | ||
| 10 | end | ||
| 11 | end | ||
| 12 | end | ||
| diff --git a/db/migrate/20231030181440_create_wittle_scores.wittle.rb b/db/migrate/20231030181440_create_wittle_scores.wittle.rb new file mode 100644 index 0000000..5110221 --- /dev/null +++ b/db/migrate/20231030181440_create_wittle_scores.wittle.rb | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # This migration comes from wittle (originally 20231028210722) | ||
| 2 | class CreateWittleScores < ActiveRecord::Migration[7.1] | ||
| 3 | def change | ||
| 4 | create_table :wittle_scores do |t| | ||
| 5 | t.references :puzzle, null: false | ||
| 6 | t.string :name | ||
| 7 | t.string :ip | ||
| 8 | t.integer :seconds_taken | ||
| 9 | |||
| 10 | t.timestamps | ||
| 11 | end | ||
| 12 | end | ||
| 13 | end | ||
| diff --git a/db/schema.rb b/db/schema.rb index 541f1c1..b036d7f 100644 --- a/db/schema.rb +++ b/db/schema.rb | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | # | 10 | # |
| 11 | # It's strongly recommended that you check this file into your version control system. | 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_10_21_020306) do | 13 | ActiveRecord::Schema[7.1].define(version: 2023_10_30_181440) do |
| 14 | create_table "active_storage_attachments", force: :cascade do |t| | 14 | create_table "active_storage_attachments", force: :cascade do |t| |
| 15 | t.string "name", null: false | 15 | t.string "name", null: false |
| 16 | t.string "record_type", null: false | 16 | t.string "record_type", null: false |
| @@ -416,6 +416,24 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_21_020306) do | |||
| 416 | t.index ["votable_type", "votable_id"], name: "index_votes_on_votable" | 416 | t.index ["votable_type", "votable_id"], name: "index_votes_on_votable" |
| 417 | end | 417 | end |
| 418 | 418 | ||
| 419 | create_table "wittle_puzzles", force: :cascade do |t| | ||
| 420 | t.text "data" | ||
| 421 | t.text "solved_data" | ||
| 422 | t.string "category" | ||
| 423 | t.datetime "created_at", null: false | ||
| 424 | t.datetime "updated_at", null: false | ||
| 425 | end | ||
| 426 | |||
| 427 | create_table "wittle_scores", force: :cascade do |t| | ||
| 428 | t.integer "puzzle_id", null: false | ||
| 429 | t.string "name" | ||
| 430 | t.string "ip" | ||
| 431 | t.integer "seconds_taken" | ||
| 432 | t.datetime "created_at", null: false | ||
| 433 | t.datetime "updated_at", null: false | ||
| 434 | t.index ["puzzle_id"], name: "index_wittle_scores_on_puzzle_id" | ||
| 435 | end | ||
| 436 | |||
| 419 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" | 437 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
| 420 | add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" | 438 | add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
| 421 | add_foreign_key "blogs", "users" | 439 | add_foreign_key "blogs", "users" |
