mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 04:48:49 +01:00
14 lines
311 B
Ruby
14 lines
311 B
Ruby
|
|
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
|