25 lines
455 B
Ruby
25 lines
455 B
Ruby
class AddTasks < ActiveRecord::Migration
|
|
|
|
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.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :tasks
|
|
end
|
|
|
|
end
|
|
|