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.25.0.rc4 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.25.0.rc3 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.25.0.rc2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.25.0.rc1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.3 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.6 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.5 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.0.rc2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.4 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.24.0.rc1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.3 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.2 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.1.rc1 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.23.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.22.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb
decidim-participatory_processes-0.21.0 db/migrate/20171215141722_add_attachment_collection_to_attachments.rb