remove campaign_template in DB
This commit is contained in:
parent
f255d6e3ec
commit
aa4e2c37b7
3 changed files with 0 additions and 85 deletions
|
@ -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
|
|
@ -1,7 +0,0 @@
|
|||
class AddNonprofitIdToCampaignTemplates < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :campaign_templates do |t|
|
||||
t.references :nonprofit
|
||||
end
|
||||
end
|
||||
end
|
|
@ -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: -
|
||||
--
|
||||
|
|
Loading…
Reference in a new issue