db/migrate/20150403121700_attach_dog_picture.rb
class AttachDogPicture < ActiveRecord::Migration
def self.up
add_column :dogs, :photo_file_name, :string
add_column :dogs, :photo_content_type, :string
add_column :dogs, :photo_file_size, :integer
add_column :dogs, :photo_updated_at, :datetime
end
def self.down
remove_column :dogs, :photo_file_name
remove_column :dogs, :photo_content_type
remove_column :dogs, :photo_file_size
remove_column :dogs, :photo_updated_at
end
end