Class: CreateVulnerabilityReferences

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/20101125140254_create_vulnerability_references.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/db/migrate/20101125140254_create_vulnerability_references.rb', line 13

def self.down
  drop_table :vulnerability_references
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/db/migrate/20101125140254_create_vulnerability_references.rb', line 2

def self.up
  create_table :vulnerability_references do |t|
    t.string :name
    t.string :link
    t.string :source
    t.integer :nvd_entry_id

    t.timestamps
  end
end