collab/db/migrate/20100304040201_create_tasks.rb

17 lines
271 B
Ruby
Raw Permalink Normal View History

2010-03-04 06:22:45 +00:00
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