discourse/db/migrate/20210318020143_add_pinned_column_to_bookmarks.rb
Martin Brennan 49f4c548ef
FEATURE: Bookmark pinning (#12431)
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.
2021-03-22 09:50:22 +10:00

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