diff --git a/db/migrate/028_add_geokit_support.rb b/db/migrate/028_add_geokit_support.rb new file mode 100644 index 0000000..f034edb --- /dev/null +++ b/db/migrate/028_add_geokit_support.rb @@ -0,0 +1,20 @@ +class AddGeokitSupport < ActiveRecord::Migration + + TABLES = [ :profiles, :categories ] + + def self.up + TABLES.each do |table| + add_column table, :lat, :float + add_column table, :lng, :float + end + add_column :profiles, :geocode_precision, :integer + end + + def self.down + TABLES.each do |t| + remove_column t, :lat + remove_column t, :lng + end + remove_column :profiles, :geocode_precision + end +end -- libgit2 0.21.2