Files
openfoodnetwork/db/migrate/20230213060209_drop_suburbs.rb
Maikel Linke 80f015912a Remove unused suburbs table
Once upon a time it was used to search for enterprises in a certain
suburb. But we let Google Maps do that these days and the feature was
removed in 2015.

* c4fb4a8510
2023-02-13 17:18:02 +11:00

14 lines
323 B
Ruby

# frozen_string_literal: true
class DropSuburbs < ActiveRecord::Migration[6.1]
def change
drop_table "suburbs", id: :serial, force: :cascade do |t|
t.string "name", limit: 255
t.string "postcode", limit: 255
t.float "latitude"
t.float "longitude"
t.integer "state_id"
end
end
end