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