From aa4e2c37b736b69b87dac346b7075938337634cf Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 8 Nov 2018 12:50:50 -0600 Subject: [PATCH] remove campaign_template in DB --- .../20180703165400_add_campaign_templates.rb | 22 -------- ..._add_nonprofit_id_to_campaign_templates.rb | 7 --- db/structure.sql | 56 ------------------- 3 files changed, 85 deletions(-) delete mode 100644 db/migrate/20180703165400_add_campaign_templates.rb delete mode 100644 db/migrate/20180703165403_add_nonprofit_id_to_campaign_templates.rb diff --git a/db/migrate/20180703165400_add_campaign_templates.rb b/db/migrate/20180703165400_add_campaign_templates.rb deleted file mode 100644 index 062f37b2..00000000 --- a/db/migrate/20180703165400_add_campaign_templates.rb +++ /dev/null @@ -1,22 +0,0 @@ -class AddCampaignTemplates < ActiveRecord::Migration - def change - create_table :campaign_templates do |t| - t.string :template_name, null: false - t.string :name - t.string :tagline - t.integer :goal_amount - t.string :main_image - t.text :video_url - t.string :vimeo_video_id - t.string :youtube_video_id - t.text :summary - t.text :body - - t.timestamps - end - - change_table :campaigns do |t| - t.references :campaign_template - end - end -end diff --git a/db/migrate/20180703165403_add_nonprofit_id_to_campaign_templates.rb b/db/migrate/20180703165403_add_nonprofit_id_to_campaign_templates.rb deleted file mode 100644 index 59693ac6..00000000 --- a/db/migrate/20180703165403_add_nonprofit_id_to_campaign_templates.rb +++ /dev/null @@ -1,7 +0,0 @@ -class AddNonprofitIdToCampaignTemplates < ActiveRecord::Migration - def change - change_table :campaign_templates do |t| - t.references :nonprofit - end - end -end diff --git a/db/structure.sql b/db/structure.sql index ac514211..7e06a244 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -355,47 +355,6 @@ CREATE SEQUENCE public.campaign_gifts_id_seq ALTER SEQUENCE public.campaign_gifts_id_seq OWNED BY public.campaign_gifts.id; --- --- Name: campaign_templates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.campaign_templates ( - id integer NOT NULL, - template_name character varying(255) NOT NULL, - name character varying(255), - tagline character varying(255), - goal_amount integer, - main_image character varying(255), - video_url text, - vimeo_video_id character varying(255), - youtube_video_id character varying(255), - summary text, - body text, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - nonprofit_id integer -); - - --- --- Name: campaign_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.campaign_templates_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: campaign_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.campaign_templates_id_seq OWNED BY public.campaign_templates.id; - - -- -- Name: campaigns; Type: TABLE; Schema: public; Owner: - -- @@ -2351,13 +2310,6 @@ ALTER TABLE ONLY public.campaign_gift_options ALTER COLUMN id SET DEFAULT nextva ALTER TABLE ONLY public.campaign_gifts ALTER COLUMN id SET DEFAULT nextval('public.campaign_gifts_id_seq'::regclass); --- --- Name: campaign_templates id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.campaign_templates ALTER COLUMN id SET DEFAULT nextval('public.campaign_templates_id_seq'::regclass); - - -- -- Name: campaigns id; Type: DEFAULT; Schema: public; Owner: - -- @@ -2743,14 +2695,6 @@ ALTER TABLE ONLY public.campaign_gifts ADD CONSTRAINT campaign_gifts_pkey PRIMARY KEY (id); --- --- Name: campaign_templates campaign_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.campaign_templates - ADD CONSTRAINT campaign_templates_pkey PRIMARY KEY (id); - - -- -- Name: campaigns campaigns_pkey; Type: CONSTRAINT; Schema: public; Owner: - --