Sha256: 7fa2020f71db7f82899df17375766c427d6345f8f5d123332e70327d7a17f1aa

Contents?: true

Size: 546 Bytes

Versions: 90

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

class AddAttachmentCollectionToAttachments < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_attachments, :attachment_collection_id, :integer, null: true, index: { name: "index_decidim_attachments_attachment_collection_id" }
    add_foreign_key :decidim_attachments, :decidim_attachment_collections, column: :attachment_collection_id, on_delete: :nullify,
                                                                           name: "fk_decidim_attachments_attachment_collection_id"
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.4 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.27.9 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.29.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.3 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.27.8 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.29.0.rc4 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.29.0.rc3 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.29.0.rc2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.29.0.rc1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.27.7 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.27.6 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.26.10 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.26.9 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.27.5 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.0.rc5 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.28.0.rc4 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb