Class: CreateGene

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

Class Method Summary collapse

Class Method Details

.downObject



12
13
14
# File 'lib/bio/ngs/db/migrate/ontology/201105030711_create_gene.rb', line 12

def	self.down
	drop_table :genes
end

.upObject



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

def self.up
	create_table :genes do |t|
		t.string :gene_id
		t.string :library
	end
	
	add_index :genes, :gene_id
end