4c1aa287a5
git-svn-id: file:///home/svn/framework3/trunk@9173 4d416f70-5f16-0410-b530-b9f4589650da
24 lines
372 B
Ruby
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
|
|
|