Class: CreateVulnerableSoftwares

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

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/db/migrate/20101122175021_create_vulnerable_softwares.rb', line 13

def self.down
  drop_table :vulnerable_softwares
end

.upObject



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

def self.up
  create_table :vulnerable_softwares do |t|
    t.integer :nvd_entry_id
    t.integer :product_id

    t.timestamps
  end
  add_index :vulnerable_softwares, :nvd_entry_id
  add_index :vulnerable_softwares, :product_id
end