Class: AddWorkspaceUserInfo

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/018_add_workspace_user_info.rb

Class Method Summary collapse

Class Method Details

.downObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'db/migrate/018_add_workspace_user_info.rb', line 15

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

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'db/migrate/018_add_workspace_user_info.rb', line 2

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