mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 06:22:44 +08:00

Users can now pin bookmarks from their bookmark list. This will anchor the bookmark to the top of the list, and show a pin icon next to it. This also applies in the nav bookmarks panel. If there are multiple pinned bookmarks they sort by last updated order.
8 lines
179 B
Ruby
8 lines
179 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddPinnedColumnToBookmarks < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_column :bookmarks, :pinned, :boolean, default: false
|
|
end
|
|
end
|