From 0380a97230023a78ad08b738c4520e901485ed63 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 09:29:30 -0500 Subject: Added Rails engine for scoreboard refs #13 --- .../20221210141051_create_lingo_scores.lingo.rb | 13 ++++++++++++ rails/test/dummy/db/schema.rb | 23 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 rails/test/dummy/db/migrate/20221210141051_create_lingo_scores.lingo.rb create mode 100644 rails/test/dummy/db/schema.rb (limited to 'rails/test/dummy/db') 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 @@ +# This migration comes from lingo (originally 20221210011146) +class CreateLingoScores < ActiveRecord::Migration[7.0] + def change + create_table :lingo_scores do |t| + t.integer :user_id + t.string :username + t.string :avatar_url + t.integer :score + + t.timestamps + end + end +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 @@ +# 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. +# +# 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[7.0].define(version: 2022_12_10_141051) do + create_table "lingo_scores", force: :cascade do |t| + t.integer "user_id" + t.string "username" + t.string "avatar_url" + t.integer "score" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end -- cgit 1.4.1