5 lines
170 B
Ruby
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
|