Remove the users.nearby column

Refs #2417 and #2432
This commit is contained in:
Andy Allan 2019-11-20 15:07:42 +01:00
parent 6852bc9c92
commit 56d9b8a4ce
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class RemoveNearbyFromUsers < ActiveRecord::Migration[5.2]
def change
# We've already ignored this column in the model, so it is safe to remove
safety_assured { remove_column :users, :nearby, :integer, :default => 50 }
end
end

View file

@ -1394,7 +1394,6 @@ CREATE TABLE public.users (
home_lat double precision,
home_lon double precision,
home_zoom smallint DEFAULT 3,
nearby integer DEFAULT 50,
pass_salt character varying,
email_valid boolean DEFAULT false NOT NULL,
new_email character varying,
@ -3137,6 +3136,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20190623093642'),
('20190702193519'),
('20190716173946'),
('20191120140058'),
('21'),
('22'),
('23'),