photomix/db/migrate/20090602120344_add_location_to_photo.rb

12 lines
258 B
Ruby
Raw Normal View History

2009-06-03 01:33:39 +02:00
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