Class: CreateGoannotation

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/bio/ngs/db/migrate/homology/201105030709_create_goannotation.rb

Class Method Summary collapse

Class Method Details

.downObject



25
26
27
# File 'lib/bio/ngs/db/migrate/homology/201105030709_create_goannotation.rb', line 25

def	self.down
	drop_table :go_annotations
end

.upObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/bio/ngs/db/migrate/homology/201105030709_create_goannotation.rb', line 3

def self.up
	create_table :go_annotations do |t|
		t.string :db
		t.string :entry_id
		t.string :symbol
		t.string :qualifier
		t.string :go_id
		t.string :db_ref
		t.string :evidence
		t.string :additional_identifier
		t.string :aspect
		t.string :name
		t.string :synonym
		t.string :molecule_type
		t.string :taxon_id
		t.string :date
		t.string :assigned_by
	end
	
	add_index :go_annotations, :entry_id
end