Sha256: d8f7cae37ca0b239a65da903acf8fb386b6f0577f00396f208c0ca0990a8b745

Contents?: true

Size: 457 Bytes

Versions: 90

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimAttachmentCollections < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_attachment_collections do |t|
      t.jsonb :name, null: false
      t.jsonb :description, null: false
      t.integer :weight, null: false, default: 0
      t.references :collection_for, polymorphic: true, null: false, index: { name: "decidim_attachment_collections_collection_for_id_and_type" }
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-core-0.13.0 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.12.1 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.13.0.pre1 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.12.0 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.11.2 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.12.0.pre db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.11.1 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.11.0.pre1 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.10.1 db/migrate/20171207182729_create_decidim_attachment_collections.rb
decidim-core-0.10.0 db/migrate/20171207182729_create_decidim_attachment_collections.rb