Commit 3f31c186ae38731f379d713758f553ee365caa52
1 parent
923cad5c
Exists in
master
and in
28 other branches
ActionItem261: add the lat and lng columns to products
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1956 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
1 | +class AddLatAndLngToProducts < ActiveRecord::Migration | ||
2 | + def self.up | ||
3 | + add_column :products, :lat, :float | ||
4 | + add_column :products, :lng, :float | ||
5 | + end | ||
6 | + | ||
7 | + def self.down | ||
8 | + remove_column :products, :lat | ||
9 | + remove_column :products, :lng | ||
10 | + end | ||
11 | +end |