Cache top tracks

This commit is contained in:
2023-06-12 16:48:37 +10:00
parent a50018f712
commit e075e6e3ef
7 changed files with 62 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
ROM::SQL.migration do
change do
create_table :top_tracks do
column :artist, :text
column :name, :text
column :url, :text
column :mb_id, :text # musicbrainz.org ID
foreign_key :post_id, :posts, null: false, unique: true
end
end
end