collab/db/migrate/20100304040201_create_tasks.rb

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