Sha256: e55e56011ae26e2c4275a11b47dec7aef173274c963f2f4a208ebdeaf1d29f5f

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

class AddPhotoToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :photo_file_name, :string
    add_column :users, :photo_content_type, :string
    add_column :users, :photo_file_size, :integer
  end

  def self.down
    remove_column :users, :photo_file_name
    remove_column :users, :photo_content_type
    remove_column :users, :photo_file_size
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
muck-users-0.1.4 db/migrate/20090512013727_add_photo_to_user.rb
muck-users-0.1.0 db/migrate/20090512013727_add_photo_to_user.rb
muck-users-0.1.1 db/migrate/20090512013727_add_photo_to_user.rb
muck-users-0.1.2 db/migrate/20090512013727_add_photo_to_user.rb
muck-users-0.1.3 db/migrate/20090512013727_add_photo_to_user.rb