forked from asonix/mastodon
* Add hashtag filter to profiles GET /@:username/tagged/:hashtag GET /api/v1/accounts/:id/statuses?tagged=:hashtag * Display featured hashtags on public profile * Use separate model for featured tags * Update featured hashtag counters on-write * Limit featured tags to 10
12 lines
363 B
Ruby
12 lines
363 B
Ruby
class CreateFeaturedTags < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :featured_tags do |t|
|
|
t.references :account, foreign_key: { on_delete: :cascade }
|
|
t.references :tag, foreign_key: { on_delete: :cascade }
|
|
t.bigint :statuses_count, default: 0, null: false
|
|
t.datetime :last_status_at
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|