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