Sha256: 3c72e1f0be70976d20fe90934baef3a68e4a7bd93731e3bd709fc677792cd334

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

class CreatePictureFiles < ActiveRecord::Migration[5.2]
  def change
    create_table :picture_files do |t|
      t.integer :picture_attachable_id
      t.string :picture_attachable_type
      t.string :content_type
      t.text :title
      t.string :thumbnail
      t.integer :position

      t.timestamps
    end
    add_index :picture_files, [:picture_attachable_id, :picture_attachable_type], name: "index_picture_files_on_picture_attachable_id_and_type"
  end
end

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb