Cache top tracks
This commit is contained in:
13
db/migrate/20230612061813_create_top_tracks.rb
Normal file
13
db/migrate/20230612061813_create_top_tracks.rb
Normal 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
|
Reference in New Issue
Block a user