update with changes from Production branch
This commit is contained in:
13
db/migrate/20110119170853_add_geolocation_to_feed.rb
Normal file
13
db/migrate/20110119170853_add_geolocation_to_feed.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class AddGeolocationToFeed < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :feeds, :latitude, :decimal, :precision => 15, :scale => 10
|
||||
add_column :feeds, :longitude, :decimal, :precision => 15, :scale => 10
|
||||
add_column :feeds, :elevation, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :feeds, :latitude
|
||||
remove_column :feeds, :longitude
|
||||
remove_column :feeds, :elevation
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user