mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 16:36:08 +01:00
#300: Added migration for dependencies support
This commit is contained in:
parent
45d9ab60bf
commit
9871755140
1 changed files with 13 additions and 0 deletions
13
db/migrate/20090516000646_add_todo_dependencies.rb
Normal file
13
db/migrate/20090516000646_add_todo_dependencies.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class AddTodoDependencies < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :dependencies do |t|
|
||||
t.integer :todo_id, :null => false
|
||||
t.integer :predecessor_id, :null => false
|
||||
t.string :relationship_type
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :dependencies
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue