# frozen_string_literal: true class CreateAttachments < ActiveRecord::Migration[5.0] def change create_table :decidim_participatory_process_attachments do |t| t.jsonb :title, null: false t.jsonb :description, null: false t.string :file, null: false t.string :content_type, null: false t.string :file_size, null: false t.references :decidim_participatory_process, foreign_key: true, index: { name: "index_decidim_processes_attachments_on_decidim_process_id" } t.timestamps end end end