Class: CreateBlastout

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

Class Method Summary collapse

Class Method Details

.downObject



17
18
19
# File 'lib/bio/ngs/db/migrate/homology/201105030707_create_blastout.rb', line 17

def self.down
drop_table :blast_outputs
end

.upObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/bio/ngs/db/migrate/homology/201105030707_create_blastout.rb', line 3

def self.up
create_table :blast_outputs do |t|
	t.string :query_id
	t.string :target_id
	t.string :target_description
	t.float :evalue, :precision => :double
	t.float	:identity
	t.float :positive
end

add_index :blast_outputs, :query_id

end