Sha256: 85461c3503a104ce121afc57a8f6171a0b7db48ab76175f29ce3f37e488a5281

Contents?: true

Size: 1.24 KB

Versions: 17

Compression:

Stored size: 1.24 KB

Contents

class AddExifDataToImageUploads < ActiveRecord::Migration
  def self.up
    add_column :image_uploads, :bits_per_pixel, :integer
    add_column :image_uploads, :camera_make, :string
    add_column :image_uploads, :camera_model, :string
    add_column :image_uploads, :orientation, :integer
    add_column :image_uploads, :exposure_time, :string
    add_column :image_uploads, :f_number, :string
    add_column :image_uploads, :iso_speed_rating, :string
    add_column :image_uploads, :exposure_bias_value, :string
    add_column :image_uploads, :focal_length, :string
    add_column :image_uploads, :focal_length_in_35mm_film, :string
    add_column :image_uploads, :subsec_time, :integer
  end

  def self.down
    remove_column :image_uploads, :subsec_time
    remove_column :image_uploads, :focal_length_in_35mm_film
    remove_column :image_uploads, :focal_length
    remove_column :image_uploads, :exposure_bias_value
    remove_column :image_uploads, :iso_speed_rating
    remove_column :image_uploads, :f_number
    remove_column :image_uploads, :exposure_time
    remove_column :image_uploads, :orientation
    remove_column :image_uploads, :camera_model
    remove_column :image_uploads, :camera_make
    remove_column :image_uploads, :bits_per_pixel
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phocoder-rails-0.0.58 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.57 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.56 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.55 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.54 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.53 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.52 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.51 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.50 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.49 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.48 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.47 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.46 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.45 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.44 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.43 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb
phocoder-rails-0.0.42 spec/dummy/db/migrate/20120423030345_add_exif_data_to_image_uploads.rb