Class: StandardizeInfoAndData

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/021_standardize_info_and_data.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
13
14
15
16
# File 'db/migrate/021_standardize_info_and_data.rb', line 10

def self.down
	remove_column :vulns, :info
	change_table :notes do |t|
		t.string :data, :limit => 65536

	end
end

.upObject



2
3
4
5
6
7
8
# File 'db/migrate/021_standardize_info_and_data.rb', line 2

def self.up
	# Remove the host requirement.  We'll add the column back in below.
	remove_column :vulns, :data
	change_table :vulns do |t|
		t.string :info, :limit => 65536
	end
end