mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 13:37:37 +08:00
49f4c548ef
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
|