annotate plugins/redmine_bibliography/db/migrate/004_create_bibtex_entries.rb @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents b4b72f1eb644
children
rev   line source
luis@392 1 class CreateBibtexEntries < ActiveRecord::Migration
luis@392 2 def self.up
luis@392 3 create_table :bibtex_entries do |t|
luis@402 4 t.column :publication_id, :integer
luis@542 5 t.column :entry_type, :integer
luis@392 6 t.column :address, :string
luis@392 7 t.column :annote, :string
luis@392 8 t.column :booktitle, :string
luis@392 9 t.column :chapter, :string
luis@392 10 t.column :crossref, :string
luis@392 11 t.column :edition, :string
luis@392 12 t.column :editor, :string
luis@392 13 t.column :eprint, :string
luis@392 14 t.column :howpublished, :string
luis@392 15 t.column :journal, :string
luis@392 16 t.column :key, :string
luis@392 17 t.column :month, :string
luis@392 18 t.column :note, :text
luis@392 19 t.column :number, :string
luis@392 20 t.column :organization, :string
luis@392 21 t.column :pages, :string
luis@392 22 t.column :publisher, :string
luis@392 23 t.column :school, :string
luis@392 24 t.column :series, :string
luis@392 25 t.column :type, :string
luis@392 26 t.column :url, :string
luis@392 27 t.column :volume, :integer
luis@392 28 t.column :year, :integer
luis@392 29 end
luis@392 30 end
luis@392 31
luis@392 32 def self.down
luis@392 33 drop_table :bibtex_entries
luis@392 34 end
luis@392 35 end