From 6028b64cd73af2f3869c59569b05b166075ae93e Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 2 Jun 2020 17:01:46 -0500 Subject: [PATCH] Remove picture column from profile --- db/structure.sql | 3 --- .../migrate/20200602215911_remove_picture_from_profile.rb | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 gems/houdini_upgrade/db/migrate/20200602215911_remove_picture_from_profile.rb diff --git a/db/structure.sql b/db/structure.sql index bd0d7e3e..7a350c1f 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -95,8 +95,6 @@ WHERE (supporters.id=NEW.supporter_id)) AS data SET default_tablespace = ''; -SET default_with_oids = false; - -- -- Name: active_storage_attachments; Type: TABLE; Schema: public; Owner: - -- @@ -1691,7 +1689,6 @@ CREATE TABLE public.profiles ( state_code character varying(255), city character varying(255), privacy_settings text, - picture character varying(255), phone character varying(255), address character varying(255), anonymous boolean, diff --git a/gems/houdini_upgrade/db/migrate/20200602215911_remove_picture_from_profile.rb b/gems/houdini_upgrade/db/migrate/20200602215911_remove_picture_from_profile.rb new file mode 100644 index 00000000..b40f03bf --- /dev/null +++ b/gems/houdini_upgrade/db/migrate/20200602215911_remove_picture_from_profile.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later +class RemovePictureFromProfile < ActiveRecord::Migration[6.0] + def change + remove_column :profiles, :picture + end +end