Sha256: fd8e495abdf3a0dbcda27e452ddb1f1ac8a2bde332c9252fec5b3339070ffaa0

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

class AddReplyingToComments < ActiveRecord::Migration[6.0]
  def change
    add_reference :commontator_comments, :parent, foreign_key: {
      to_table: :commontator_comments, on_update: :restrict, on_delete: :cascade
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
commontator-7.0.1 db/migrate/11_add_replying_to_comments.rb
commontator-7.0.0 db/migrate/11_add_replying_to_comments.rb
commontator-6.3.2 db/migrate/11_add_replying_to_comments.rb
commontator-6.3.1 db/migrate/11_add_replying_to_comments.rb
commontator-6.3.0 db/migrate/11_add_replying_to_comments.rb
commontator-6.2.1 db/migrate/11_add_replying_to_comments.rb
commontator-6.2.0 db/migrate/11_add_replying_to_comments.rb