photomix/db/migrate/20090520230047_add_path_to_album_and_photo.rb

12 lines
242 B
Ruby
Raw Normal View History

2009-05-22 14:13:46 +02:00
class AddPathToAlbumAndPhoto < ActiveRecord::Migration
def self.up
add_column :albums, :path, :text
add_column :photos, :path, :text
end
def self.down
remove_column :albums, :path
remove_column :photos, :path
end
end