Skip to content

Instantly share code, notes, and snippets.

@rsinger
Created May 26, 2011 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsinger/993906 to your computer and use it in GitHub Desktop.
Save rsinger/993906 to your computer and use it in GitHub Desktop.
DB.create_table :journals do
primary_key :id
string :title, :size=>1024, :index=>true
string :issn, :size=>8, :index=>true
string :e_issn, :size=>8, :index=>true
text :journal_url
text :publisher
text :abbreviation
text :cjdb_note
text :local_note
end
@rsinger
Copy link
Author

rsinger commented May 26, 2011

CREATE TABLE journals (id integer PRIMARY KEY AUTOINCREMENT, title varchar(1024), issn string(8), e_issn string(8), journal_url varchar(255), publisher varchar(255), abbreviation varchar(255), cjdb_note varchar(255), local_note varchar(255));

INSERT INTO journals (id, issn) VALUES (2, "00005678");

select * from journals; 2||5678||||||

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment