Sha256: ba14b5d07c5d0973154441ac96819b3ce5947b437c66c920f77dfe439c7416a8

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

class CreateColorMapFiles < ActiveRecord::Migration
  def change
    create_table :pageflow_linkmap_page_color_map_files do |t|
      t.belongs_to :entry, index: true
      t.string     :state
      t.string     :rights
      t.integer    :parent_file_id
      t.string     :parent_file_model_type

      t.string  :attachment_file_name
      t.text    :attachment_colors
      t.integer :attachment_width
      t.integer :attachment_height
      t.integer :processing_progress, default: 0, null: false

      t.belongs_to :source_image_file

      t.timestamps

      t.index([:parent_file_id, :parent_file_model_type],
              name: 'index_color_map_files_on_parent_id_and_parent_model_type')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-linkmap-page-1.5.0 db/migrate/20180111145100_create_color_map_files.rb