Sha256: 3b4c25e372a661926eb6a6441597bb1e5345250b0ca1da600faa6199e42110e6

Contents?: true

Size: 234 Bytes

Versions: 5

Compression:

Stored size: 234 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
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commontator-6.1.1 db/migrate/1_add_replying_to_comments.rb
commontator-6.1.0 db/migrate/1_add_replying_to_comments.rb
commontator-6.0.1 db/migrate/1_add_replying_to_comments.rb
commontator-6.0.0 db/migrate/1_add_replying_to_comments.rb
commontator-6.0.0.pre.2 db/migrate/1_add_replying_to_comments.rb