Permalink
Browse files

Add migration for geo fields

  • Loading branch information...
1 parent f8d22ce commit 93eeaebd545c9f58a4303e144efb4756ee2da11b @pat pat committed Sep 29, 2008
Showing with 11 additions and 0 deletions.
  1. +11 −0 db/migrate/20080929080846_add_geo_fields.rb
@@ -0,0 +1,11 @@
+class AddGeoFields < ActiveRecord::Migration
+ def self.up
+ add_column :contacts, :latitude, :float
+ add_column :contacts, :longitude, :float
+ end
+
+ def self.down
+ remove_column :contacts, :latitude
+ remove_column :contacts, :longitude
+ end
+end

0 comments on commit 93eeaeb

Please sign in to comment.