photomix/db/migrate/20090602120344_add_location_to_photo.rb
2009-06-03 01:33:39 +02:00

11 lines
258 B
Ruby

class AddLocationToPhoto < ActiveRecord::Migration
def self.up
add_column :photos, :longitude, :float
add_column :photos, :latitude, :float
end
def self.down
remove_column :photos, :latitude
remove_column :photos, :longitude
end
end