Sha256: be460e79b2c119a05b00013ccdf661a618a08c0cf71d276055bd74ea57fc46d7

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

class CreateImportableAttachmentsVersions < ActiveRecord::Migration
  def change
    create_table :importable_attachments_versions, force: true do |t|
      t.string :item_type, null: false
      t.string :item_id, null: false  # item_type.id generally should be GUID
      t.string :event, null: false
      t.string :whodunnit
      t.text :object
      t.datetime :created_at
    end
    add_index :importable_attachments_versions, [:item_type, :item_id]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
importable_attachments-0.0.18 db/migrate/001_create_importable_attachments_versions.rb
importable_attachments-0.0.17 db/migrate/001_create_importable_attachments_versions.rb
importable_attachments-0.0.15 db/migrate/001_create_importable_attachments_versions.rb
importable_attachments-0.0.14 db/migrate/001_create_importable_attachments_versions.rb
importable_attachments-0.0.13 db/migrate/001_create_importable_attachments_versions.rb