2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2013-03-19 15:37:50 +00:00
|
|
|
class CreateForkedProjectLinks < ActiveRecord::Migration
|
2016-11-30 15:15:02 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
2013-03-19 15:37:50 +00:00
|
|
|
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
|
|
|
|
2016-11-28 15:45:08 +00:00
|
|
|
t.timestamps null: true
|
2013-03-19 15:37:50 +00:00
|
|
|
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
|