summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-06-01 14:32:48 -0600
committermo khan <mo@mokhan.ca>2014-06-01 14:32:48 -0600
commitaffc9921bed46e77d77ca85d0cba9f932401253e (patch)
treefd047ad0d97101c05fef9a0cfd3fcd4af493292f /db/migrate
parent84f3923e82f9ba8991aeb86f22beb0bf2e96dc00 (diff)
extract latitude and longitude from image.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20140601195859_add_geolocation_to_photos.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20140601195859_add_geolocation_to_photos.rb b/db/migrate/20140601195859_add_geolocation_to_photos.rb
new file mode 100644
index 00000000..78db94c6
--- /dev/null
+++ b/db/migrate/20140601195859_add_geolocation_to_photos.rb
@@ -0,0 +1,6 @@
+class AddGeolocationToPhotos < ActiveRecord::Migration
+ def change
+ add_column :photos, :latitude, :float
+ add_column :photos, :longitude, :float
+ end
+end