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