Sha256: 3ebdfbf4f6b56745b7a9b4da310edcf70619a3facc84094f050a0c26d8802ea4
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
class AddReplyingToComments < ActiveRecord::Migration[5.2] def change add_reference :commontator_comments, :parent, foreign_key: { to_table: :commontator_comments, on_update: :restrict, on_delete: :cascade } add_column :commontator_comments, :ancestor_ids, :text add_column :commontator_comments, :descendant_ids, :text end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-6.0.0.pre.1 | db/migrate/1_add_replying_to_comments.rb |