6 lines
170 B
Ruby
6 lines
170 B
Ruby
|
class AddAssociatedArticleId < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
add_reference :articles, :associated_article, foreign_key: { to_table: :articles }
|
||
|
end
|
||
|
end
|