mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
13 lines
316 B
Ruby
13 lines
316 B
Ruby
class AddTodoDependencies < ActiveRecord::Migration[5.2]
|
|
def self.up
|
|
create_table :dependencies do |t|
|
|
t.integer :successor_id, :null => false
|
|
t.integer :predecessor_id, :null => false
|
|
t.string :relationship_type
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :dependencies
|
|
end
|
|
end
|