class User < ActiveRecord::Base
require "xml/libxml"
- self.ignored_columns = %w[image_file_name image_fingerprint image_content_type]
-
has_many :traces, -> { where(:visible => true) }
has_many :diary_entries, -> { order(:created_at => :desc) }
has_many :diary_comments, -> { order(:created_at => :desc) }
--- /dev/null
+class RemoveUserImages < ActiveRecord::Migration[5.2]
+ def change
+ safety_assured do
+ remove_column :users, :image_file_name, :image
+ remove_column :users, :image_fingerprint, :string
+ remove_column :users, :image_content_type, :string
+ end
+ end
+end
home_zoom smallint DEFAULT 3,
nearby integer DEFAULT 50,
pass_salt character varying,
- image_file_name text,
email_valid boolean DEFAULT false NOT NULL,
new_email character varying,
creation_ip character varying,
preferred_editor character varying,
terms_seen boolean DEFAULT false NOT NULL,
description_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL,
- image_fingerprint character varying,
changesets_count integer DEFAULT 0 NOT NULL,
traces_count integer DEFAULT 0 NOT NULL,
diary_entries_count integer DEFAULT 0 NOT NULL,
image_use_gravatar boolean DEFAULT false NOT NULL,
- image_content_type character varying,
auth_provider character varying,
home_tile bigint,
tou_agreed timestamp without time zone
('20190518115041'),
('20190623093642'),
('20190702193519'),
+('20190716173946'),
('21'),
('22'),
('23'),