1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 22:38:27 +09:00
mastodon/app/models/preview_cards_status.rb

17 lines
393 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# == Schema Information
#
# Table name: preview_cards_statuses
#
# preview_card_id :bigint(8) not null, primary key
# status_id :bigint(8) not null, primary key
# url :string
#
class PreviewCardsStatus < ApplicationRecord
self.primary_key = [:preview_card_id, :status_id]
belongs_to :preview_card
belongs_to :status
end