Files
metasploit-gs/data/sql/migrate/019_add_workspace_desc.rb
T
Mike Smith 4c1aa287a5 Add workspace.description and host.comments database columns.
git-svn-id: file:///home/svn/framework3/trunk@9173 4d416f70-5f16-0410-b530-b9f4589650da
2010-04-29 22:22:05 +00:00

24 lines
372 B
Ruby

class AddWorkspaceDesc < ActiveRecord::Migration
def self.up
change_table :workspaces do |t|
t.string :description, :limit => 4096
end
change_table :hosts do |t|
t.string :comments, :limit => 4096
end
end
def self.down
change_table :workspaces do |t|
t.remove :description
end
change_table :hosts do |t|
t.remove :comments
end
end
end