Sha256: 7a231e23f60eb95fb0cb9819fb6e9eb7125980bc86e2849cc4cb9a57b46109fc

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

class CreatePictureFiles < ActiveRecord::Migration[4.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

8 entries across 8 versions & 5 rubygems

Version Path
enju_purchase_request-0.3.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_purchase_request-0.3.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_loc-0.3.0 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb