Sha256: 549ea0cbfd472e0baf0658e6482bd16ff9381738b52965b5e5c8efd8e765ea0d

Contents?: true

Size: 468 Bytes

Versions: 618

Compression:

Stored size: 468 Bytes

Contents

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

618 entries across 610 versions & 23 rubygems

Version Path
enju_bookmark-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_subject-0.2.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_message-0.2.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_biblio-0.2.3 db/migrate/20081027150907_create_picture_files.rb
enju_library-0.2.3 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_seed-0.2.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_grid-0.2.0 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_biblio-0.2.2 db/migrate/20081027150907_create_picture_files.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_event-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_message-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_subject-0.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/20081027150907_create_picture_files.rb