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