From 86ac69b394e6edae54e272f2940560c5ee25a9c3 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 29 Mar 2010 22:26:35 +0000 Subject: [PATCH] Add columns to workspaces & hosts tables. git-svn-id: file:///home/svn/framework3/trunk@8956 4d416f70-5f16-0410-b530-b9f4589650da --- .../migrate/018_add_workspace_user_info.rb | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/sql/migrate/018_add_workspace_user_info.rb diff --git a/data/sql/migrate/018_add_workspace_user_info.rb b/data/sql/migrate/018_add_workspace_user_info.rb new file mode 100644 index 0000000000..fb5e101fc3 --- /dev/null +++ b/data/sql/migrate/018_add_workspace_user_info.rb @@ -0,0 +1,29 @@ +class AddWorkspaceUserInfo < ActiveRecord::Migration + def self.up + change_table :workspaces do |t| + t.string :boundary, :limit => 4096 + end + + change_table :users do |t| + t.string :fullname + t.string :email + t.string :phone + t.string :company + end + end + + def self.down + change_table :workspaces do |t| + t.remove :boundary + end + + change_table :users do |t| + t.remove :fullname + t.remove :email + t.remove :phone + t.remove :company + end + end + +end +