Skip to content

Instantly share code, notes, and snippets.

@Benjmin
Created June 1, 2013 19:37
Show Gist options
  • Save Benjmin/5691494 to your computer and use it in GitHub Desktop.
Save Benjmin/5691494 to your computer and use it in GitHub Desktop.
-- Table: pages
-- DROP TABLE pages;
CREATE TABLE pages
(
id serial NOT NULL,
title character varying(255),
link character varying(255),
summary text,
book_id integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
CONSTRAINT pages_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE pages
OWNER TO dogears;
-- Index: index_pages_on_book_id
-- DROP INDEX index_pages_on_book_id;
CREATE INDEX index_pages_on_book_id
ON pages
USING btree
(book_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment