collab/db/migrate/20100304040201_create_tasks.rb
2010-03-04 01:22:45 -05:00

17 lines
271 B
Ruby

class CreateTasks < ActiveRecord::Migration
def self.up
create_table :tasks do |t|
t.string :name
t.belongs_to :project
t.text :description
t.integer :parent
t.timestamps
end
end
def self.down
drop_table :tasks
end
end