Chatwoot/db/migrate/20220608084622_add_associated_article_id.rb

6 lines
170 B
Ruby
Raw Permalink Normal View History

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