mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-20 09:41:28 +09:00
25 lines
514 B
Ruby
25 lines
514 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# == Schema Information
|
||
|
#
|
||
|
# Table name: tag_follows
|
||
|
#
|
||
|
# id :bigint(8) not null, primary key
|
||
|
# tag_id :bigint(8) not null
|
||
|
# account_id :bigint(8) not null
|
||
|
# created_at :datetime not null
|
||
|
# updated_at :datetime not null
|
||
|
#
|
||
|
|
||
|
class TagFollow < ApplicationRecord
|
||
|
include RateLimitable
|
||
|
include Paginable
|
||
|
|
||
|
belongs_to :tag
|
||
|
belongs_to :account
|
||
|
|
||
|
accepts_nested_attributes_for :tag
|
||
|
|
||
|
rate_limit by: :account, family: :follows
|
||
|
end
|