Sha256: a843b829ee075c5c0cf3527618cf258216639d6e8b556e272709347b8d82d1fb

Contents?: true

Size: 491 Bytes

Versions: 34

Compression:

Stored size: 491 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.text :filename
      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

34 entries across 34 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre13 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre12 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre11 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre10 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre9 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre8 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre7 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre6 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre5 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre4 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre3 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.1.0.pre spec/dummy/db/migrate/20081027150907_create_picture_files.rb
enju_library-0.0.2 spec/dummy/db/migrate/20081027150907_create_picture_files.rb