diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-03-19 19:37:50 +0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-04-15 09:54:52 +0400 |
commit | ae33fdf297e03866ecc6c31c5470dd5ad72d1328 (patch) | |
tree | 6b3b8fb315fbc3e0b6ebf6dbb527abe9bcb3d245 /db | |
parent | e996c52636f46b193b5ff7291e9b835c317e5438 (diff) |
updated fork feature to use gitlab-shell for v5 of gitlab
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130319214458_create_forked_project_links.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20130319214458_create_forked_project_links.rb b/db/migrate/20130319214458_create_forked_project_links.rb new file mode 100644 index 00000000000..55aad12093e --- /dev/null +++ b/db/migrate/20130319214458_create_forked_project_links.rb @@ -0,0 +1,11 @@ +class CreateForkedProjectLinks < ActiveRecord::Migration + def change + create_table :forked_project_links do |t| + t.integer :forked_to_project_id, :null => false + t.integer :forked_from_project_id, :null => false + + t.timestamps + end + add_index :forked_project_links, :forked_to_project_id, :unique => true + end +end diff --git a/db/schema.rb b/db/schema.rb index 33407e600a4..1af91a3b8ee 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -32,6 +32,15 @@ ActiveRecord::Schema.define(:version => 20130410175022) do add_index "events", ["target_id"], :name => "index_events_on_target_id" add_index "events", ["target_type"], :name => "index_events_on_target_type" + create_table "forked_project_links", :force => true do |t| + t.integer "forked_to_project_id", :null => false + t.integer "forked_from_project_id", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "forked_project_links", ["forked_to_project_id"], :name => "index_forked_project_links_on_forked_to_project_id", :unique => true + create_table "issues", :force => true do |t| t.string "title" t.integer "assignee_id" |