Class: CreateGo
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateGo
- Defined in:
- lib/bio/ngs/db/migrate/ontology/201105030708_create_go.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/bio/ngs/db/migrate/ontology/201105030708_create_go.rb', line 14 def self.down drop_table :go end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bio/ngs/db/migrate/ontology/201105030708_create_go.rb', line 3 def self.up create_table :go do |t| t.string :go_id t.string :name t.string :namespace t.string :is_a end add_index :go, :go_id end |