feature/share-libs
rb 14 lines 344 Bytes
Raw
1 class CreateSongProviders < ActiveRecord::Migration[6.1]
2 def change
3 create_table :song_providers do |t|
4 t.references :user, foreign_key: true
5 t.references :song, foreign_key: true
6 t.string :provider_id
7 t.integer :provider_type
8 t.string :name
9 t.string :preview_url
10
11 t.timestamps
12 end
13 end
14 end