From 4a9bf38ef61b39e482458ba56cd1e6fea379b4d7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 21 Nov 2025 21:01:50 -0500 Subject: Added "listening to" box in sidebar --- db/migrate/20251122012500_create_scrobbles.rb | 12 ++++++++++++ db/schema.rb | 11 ++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20251122012500_create_scrobbles.rb (limited to 'db') diff --git a/db/migrate/20251122012500_create_scrobbles.rb b/db/migrate/20251122012500_create_scrobbles.rb new file mode 100644 index 0000000..9f00435 --- /dev/null +++ b/db/migrate/20251122012500_create_scrobbles.rb @@ -0,0 +1,12 @@ +class CreateScrobbles < ActiveRecord::Migration[7.1] + def change + create_table :scrobbles do |t| + t.string :title + t.string :artist + t.string :album + t.string :image + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 76e9ad8..74e1976 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2025_05_12_181245) do +ActiveRecord::Schema[7.1].define(version: 2025_11_22_012500) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -352,6 +352,15 @@ ActiveRecord::Schema[7.1].define(version: 2025_05_12_181245) do t.index ["recordable_type", "recordable_id"], name: "index_records_on_recordable_type_and_recordable_id" end + create_table "scrobbles", force: :cascade do |t| + t.string "title" + t.string "artist" + t.string "album" + t.string "image" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "streams", force: :cascade do |t| t.string "title" t.text "body" -- cgit 1.4.1