Class: AddWorkspaceDesc
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddWorkspaceDesc
- Defined in:
- db/migrate/019_add_workspace_desc.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'db/migrate/019_add_workspace_desc.rb', line 12 def self.down change_table :workspaces do |t| t.remove :description end change_table :hosts do |t| t.remove :comments end end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'db/migrate/019_add_workspace_desc.rb', line 2 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 |