Change link previews to keep original URL from the status (#27312)
parent
9dc3ce878b
commit
0d14fcebae
@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: preview_cards_statuses
|
||||
#
|
||||
# preview_card_id :bigint(8) not null
|
||||
# status_id :bigint(8) not null
|
||||
# url :string
|
||||
#
|
||||
class PreviewCardsStatus < ApplicationRecord
|
||||
# Composite primary keys are not properly supported in Rails. However,
|
||||
# we shouldn't need this anyway...
|
||||
self.primary_key = nil
|
||||
|
||||
belongs_to :preview_card
|
||||
belongs_to :status
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddURLToPreviewCardsStatuses < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :preview_cards_statuses, :url, :string
|
||||
end
|
||||
end
|
Loading…
Reference in new issue