Sha256: 46f196f1a3f969301951659fd7f4db2c89d6237ff67134694dac16605945a19b
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
class CreateAttachments < ActiveRecord::Migration[5.0] def change create_table :attachments do |t| end 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-core-0.0.2 | db/migrate/20161116115156_create_attachments.rb |
decidim-core-0.0.1 | db/migrate/20161116115156_create_attachments.rb |