Sha256: 830ec394d2def8ced0bd1916b6c9058eb52fc5972d1fa90252efa6d34681291a

Contents?: true

Size: 296 Bytes

Versions: 6

Compression:

Stored size: 296 Bytes

Contents

class AddImageDimensions < ActiveRecord::Migration
  def self.up
    add_column :assets, :attachment_width,  :integer
    add_column :assets, :attachment_height, :integer
  end


  def self.down
    remove_column :assets, :attachment_width
    remove_column :assets, :attachment_height
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20090705101511_add_image_dimensions.rb
spree-0.9.4 db/migrate/20090705101511_add_image_dimensions.rb
spree-0.9.3 db/migrate/20090705101511_add_image_dimensions.rb
spree-0.9.2 db/migrate/20090705101511_add_image_dimensions.rb
spree-0.9.1 db/migrate/20090705101511_add_image_dimensions.rb
spree-0.9.0 db/migrate/20090705101511_add_image_dimensions.rb