change vulns.data to vulns.info, fixes #1660

git-svn-id: file:///home/svn/framework3/trunk@9265 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee
2010-05-09 23:32:43 +00:00
parent 8f161576b5
commit abbd6aeef7
2 changed files with 23 additions and 4 deletions
@@ -0,0 +1,18 @@
class StandardizeInfoAndData < ActiveRecord::Migration
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
def self.down
remove_column :vulns, :info
change_table :notes do |t|
t.string :data, :limit => 65536
end
end
end