BigW Consortium Gitlab

20130319214458_create_forked_project_links.rb 384 Bytes
Newer Older
1
# rubocop:disable all
2
class CreateForkedProjectLinks < ActiveRecord::Migration
3 4
  DOWNTIME = false

5 6
  def change
    create_table :forked_project_links do |t|
7 8
      t.integer :forked_to_project_id, null: false
      t.integer :forked_from_project_id, null: false
9

10
      t.timestamps null: true
11
    end
12
    add_index :forked_project_links, :forked_to_project_id, unique: true
13 14
  end
end