To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_bibliography / db / migrate / 003_create_authorships.rb @ 1081:b56a4c5afa35

History | View | Annotate | Download (391 Bytes)

1
class CreateAuthorships < ActiveRecord::Migration
2
  def self.up
3
    create_table :authorships do |t|
4
      t.column :author_id, :integer
5
      t.column :publication_id, :integer
6
      t.column :name_on_paper, :string
7
      t.column :auth_order, :integer
8
      t.column :institution, :string
9
      t.column :email, :string
10
    end
11
  end
12

    
13
  def self.down
14
    drop_table :authorships
15
  end
16
end