From 3f31c186ae38731f379d713758f553ee365caa52 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Mon, 9 Jun 2008 13:50:12 +0000 Subject: [PATCH] ActionItem261: add the lat and lng columns to products --- db/migrate/038_add_lat_and_lng_to_products.rb | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) create mode 100644 db/migrate/038_add_lat_and_lng_to_products.rb diff --git a/db/migrate/038_add_lat_and_lng_to_products.rb b/db/migrate/038_add_lat_and_lng_to_products.rb new file mode 100644 index 0000000..a75454c --- /dev/null +++ b/db/migrate/038_add_lat_and_lng_to_products.rb @@ -0,0 +1,11 @@ +class AddLatAndLngToProducts < ActiveRecord::Migration + def self.up + add_column :products, :lat, :float + add_column :products, :lng, :float + end + + def self.down + remove_column :products, :lat + remove_column :products, :lng + end +end -- libgit2 0.21.2