Sha256: e7de808e8e513aeb53d9bf729e5a72401bb44156a7fc50ba19df4676d45c3b42
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
class CreateAttachments < ActiveRecord::Migration # Store application specific data for attachments a.k.a. uploaded files def change create_table :importable_attachments_attachments, :force => true do |t| t.string :attachable_type t.string :attachable_id # project might be using alpha-numeric IDs t.string :io_stream_file_name t.string :io_stream_content_type t.integer :io_stream_file_size, :limit => 8 t.datetime :io_stream_updated_at t.timestamps end add_index :importable_attachments_attachments, [:attachable_type, :attachable_id], name: 'idx_importable_attachments_on_attachable_type_and_id' add_index :importable_attachments_attachments, :io_stream_file_name end end
Version data entries
5 entries across 5 versions & 1 rubygems