Chatwoot/db/migrate/20220608084622_add_associated_article_id.rb

5 lines
170 B
Ruby

class AddAssociatedArticleId < ActiveRecord::Migration[6.1]
def change
add_reference :articles, :associated_article, foreign_key: { to_table: :articles }
end
end