Class: AddTasks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddTasks
- Defined in:
- db/migrate/012_add_tasks.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
19 20 21 |
# File 'db/migrate/012_add_tasks.rb', line 19 def self.down drop_table :tasks end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'db/migrate/012_add_tasks.rb', line 3 def self.up create_table :tasks do |t| t.integer :workspace_id, :null => false, :default => 1 t.string :created_by t.string :module t.datetime :completed_at t.string :path, :limit => 1024 t.string :info t.string :description t.integer :progress t.text :options t.text :error t. end end |