diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 09:29:30 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 09:29:30 -0500 |
commit | 0380a97230023a78ad08b738c4520e901485ed63 (patch) | |
tree | 2f3b4e91453962fd5bb36cf652c808cb7f41c3a7 /rails/test/dummy/db | |
parent | 6af7b09fa551c6cc980bb54fefd1db88c904654f (diff) | |
download | lingo-0380a97230023a78ad08b738c4520e901485ed63.tar.gz lingo-0380a97230023a78ad08b738c4520e901485ed63.tar.bz2 lingo-0380a97230023a78ad08b738c4520e901485ed63.zip |
Added Rails engine for scoreboard
refs #13
Diffstat (limited to 'rails/test/dummy/db')
-rw-r--r-- | rails/test/dummy/db/migrate/20221210141051_create_lingo_scores.lingo.rb | 13 | ||||
-rw-r--r-- | rails/test/dummy/db/schema.rb | 23 |
2 files changed, 36 insertions, 0 deletions
diff --git a/rails/test/dummy/db/migrate/20221210141051_create_lingo_scores.lingo.rb b/rails/test/dummy/db/migrate/20221210141051_create_lingo_scores.lingo.rb new file mode 100644 index 0000000..f56790f --- /dev/null +++ b/rails/test/dummy/db/migrate/20221210141051_create_lingo_scores.lingo.rb | |||
@@ -0,0 +1,13 @@ | |||
1 | # This migration comes from lingo (originally 20221210011146) | ||
2 | class CreateLingoScores < ActiveRecord::Migration[7.0] | ||
3 | def change | ||
4 | create_table :lingo_scores do |t| | ||
5 | t.integer :user_id | ||
6 | t.string :username | ||
7 | t.string :avatar_url | ||
8 | t.integer :score | ||
9 | |||
10 | t.timestamps | ||
11 | end | ||
12 | end | ||
13 | end | ||
diff --git a/rails/test/dummy/db/schema.rb b/rails/test/dummy/db/schema.rb new file mode 100644 index 0000000..2f757d6 --- /dev/null +++ b/rails/test/dummy/db/schema.rb | |||
@@ -0,0 +1,23 @@ | |||
1 | # This file is auto-generated from the current state of the database. Instead | ||
2 | # of editing this file, please use the migrations feature of Active Record to | ||
3 | # incrementally modify your database, and then regenerate this schema definition. | ||
4 | # | ||
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 | # | ||
11 | # It's strongly recommended that you check this file into your version control system. | ||
12 | |||
13 | ActiveRecord::Schema[7.0].define(version: 2022_12_10_141051) do | ||
14 | create_table "lingo_scores", force: :cascade do |t| | ||
15 | t.integer "user_id" | ||
16 | t.string "username" | ||
17 | t.string "avatar_url" | ||
18 | t.integer "score" | ||
19 | t.datetime "created_at", null: false | ||
20 | t.datetime "updated_at", null: false | ||
21 | end | ||
22 | |||
23 | end | ||