annotate plugins/redmine_bibliography/db/migrate/003_create_authorships.rb @ 1621:3a510bf6a9bc

Merge from live branch
author Chris Cannam
date Fri, 13 Jul 2018 10:44:33 +0100
parents b4b72f1eb644
children
rev   line source
luis@328 1 class CreateAuthorships < ActiveRecord::Migration
luis@328 2 def self.up
luis@328 3 create_table :authorships do |t|
luis@328 4 t.column :author_id, :integer
luis@328 5 t.column :publication_id, :integer
luis@328 6 t.column :name_on_paper, :string
luis@556 7 t.column :auth_order, :integer
luis@328 8 t.column :institution, :string
luis@328 9 t.column :email, :string
luis@328 10 end
luis@328 11 end
luis@328 12
luis@328 13 def self.down
luis@328 14 drop_table :authorships
luis@328 15 end
luis@328 16 end