diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-20 18:41:11 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-07 12:46:23 +0300 |
commit | 70716a1292ca5910908ba37a9d113c8b5a221bb7 (patch) | |
tree | ebff7a1289e85444170669761fcd2233a5757d54 /db | |
parent | d328007214786c7137c31d2c73e9ee76b025e6ed (diff) |
Allow creating merge requests across forks of a project
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170928133643_create_fork_network_members.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170928133643_create_fork_network_members.rb b/db/migrate/20170928133643_create_fork_network_members.rb index c1d94e7d52e..836f023efdc 100644 --- a/db/migrate/20170928133643_create_fork_network_members.rb +++ b/db/migrate/20170928133643_create_fork_network_members.rb @@ -18,7 +18,7 @@ class CreateForkNetworkMembers < ActiveRecord::Migration end def down - if foreign_key_exists?(:fork_network_members, column: :forked_from_project_id) + if foreign_keys_for(:fork_network_members, :forked_from_project_id).any? remove_foreign_key :fork_network_members, column: :forked_from_project_id end drop_table :fork_network_members |