thirteen-tien-len/db/migrate/20231121150256_add_followable_to_relationship.rb
2023-11-21 17:19:33 +00:00

6 lines
153 B
Ruby

class AddFollowableToRelationship < ActiveRecord::Migration[6.1]
def change
add_reference :relationships, :followable, polymorphic: true
end
end