diff --git a/app/views/home/_playlist_section.erb b/app/views/home/_playlist_section.erb index b1bffee..6fced65 100644 --- a/app/views/home/_playlist_section.erb +++ b/app/views/home/_playlist_section.erb @@ -23,7 +23,8 @@
<%= t(:by, name: playlist.user.username) %> diff --git a/db/migrate/20240722053122_add_position_to_playlist.rb b/db/migrate/20240722053122_add_position_to_playlist.rb new file mode 100644 index 0000000..3420b9e --- /dev/null +++ b/db/migrate/20240722053122_add_position_to_playlist.rb @@ -0,0 +1,5 @@ +class AddPositionToPlaylist < ActiveRecord::Migration[7.1] + def change + add_column :playlists, :editor_choice_position, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index c86a6c8..5d95834 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: 2024_07_21_162149) do +ActiveRecord::Schema[7.1].define(version: 2024_07_22_053122) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -300,6 +300,7 @@ t.datetime "updated_at", null: false t.string "tags", default: [], array: true t.integer "label_id" + t.integer "editor_choice_position" t.index ["label_id"], name: "index_playlists_on_label_id" t.index ["slug"], name: "index_playlists_on_slug" t.index ["tags"], name: "index_playlists_on_tags", using: :gin