Class: CreateGeneGo

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/bio/ngs/db/migrate/ontology/201105030710_create_gene_go.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/bio/ngs/db/migrate/ontology/201105030710_create_gene_go.rb', line 13

def	self.down
	drop_table :gene_gos
end

.upObject



3
4
5
6
7
8
9
10
11
# File 'lib/bio/ngs/db/migrate/ontology/201105030710_create_gene_go.rb', line 3

def self.up
	create_table :gene_gos do |t|
		t.integer :gene_id
		t.integer :go_id
	end
	
	add_index :gene_gos, :gene_id
	add_index :gene_gos, :go_id
end