2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2013-03-19 11:37:50 -04:00
|
|
|
class CreateForkedProjectLinks < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :forked_project_links do |t|
|
2013-05-02 16:27:40 -04:00
|
|
|
t.integer :forked_to_project_id, null: false
|
|
|
|
t.integer :forked_from_project_id, null: false
|
2013-03-19 11:37:50 -04:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
2013-05-02 16:27:40 -04:00
|
|
|
add_index :forked_project_links, :forked_to_project_id, unique: true
|
2013-03-19 11:37:50 -04:00
|
|
|
end
|
|
|
|
end
|