Skip to content
Permalink
Browse files

Drop unread entries id.

  • Loading branch information...
benubois committed Nov 10, 2014
1 parent 997edc1 commit 1376bcc001efb82b73497355dfeb52668769b82c
Showing with 7 additions and 35 deletions.
  1. +5 −0 db/migrate/20141110225053_remove_id_from_unread_entries.rb
  2. +2 −35 db/structure.sql
@@ -0,0 +1,5 @@
class RemoveIdFromUnreadEntries < ActiveRecord::Migration
def change
remove_column :unread_entries, :id
end
end
@@ -724,7 +724,6 @@ ALTER SEQUENCE tags_id_seq OWNED BY tags.id;
--

CREATE TABLE unread_entries (
id integer NOT NULL,
user_id integer,
feed_id integer,
entry_id integer,
@@ -735,25 +734,6 @@ CREATE TABLE unread_entries (
);


--
-- Name: unread_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE unread_entries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: unread_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE unread_entries_id_seq OWNED BY unread_entries.id;


--
-- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@@ -931,13 +911,6 @@ ALTER TABLE ONLY taggings ALTER COLUMN id SET DEFAULT nextval('taggings_id_seq':
ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--

ALTER TABLE ONLY unread_entries ALTER COLUMN id SET DEFAULT nextval('unread_entries_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@@ -1097,14 +1070,6 @@ ALTER TABLE ONLY tags
ADD CONSTRAINT tags_pkey PRIMARY KEY (id);


--
-- Name: unread_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--

ALTER TABLE ONLY unread_entries
ADD CONSTRAINT unread_entries_pkey PRIMARY KEY (id);


--
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@@ -1670,3 +1635,5 @@ INSERT INTO schema_migrations (version) VALUES ('20140823094323');

INSERT INTO schema_migrations (version) VALUES ('20141022031229');

INSERT INTO schema_migrations (version) VALUES ('20141110225053');

0 comments on commit 1376bcc

Please sign in to comment.
You can’t perform that action at this time.