Skip to content

Commit

Permalink
Remove the users.nearby column
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Nov 20, 2019
1 parent 6852bc9 commit 56d9b8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions db/migrate/20191120140058_remove_nearby_from_users.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -3137,6 +3136,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20190623093642'),
('20190702193519'),
('20190716173946'),
('20191120140058'),
('21'),
('22'),
('23'),
Expand Down

0 comments on commit 56d9b8a

Please sign in to comment.