Class: CreateCvsses

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

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/db/migrate/20101122153216_create_cvsses.rb', line 16

def self.down
  drop_table :cvsses
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/db/migrate/20101122153216_create_cvsses.rb', line 2

def self.up
  create_table :cvsses do |t|
    t.float :score
    t.string :source
    t.datetime :generated_on
    t.string :access_vector
    t.string :access_complexity
    t.string :authentication
    t.integer :nvd_entry_id

    t.timestamps
  end
end