summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-05-05 13:41:35 +0300
committerValery Sizov <valery@gitlab.com>2017-05-05 15:30:19 +0300
commit34be1835af2913c86bc468131e6bcbd530daf48d (patch)
tree67122da950643c4f91791bfb007636c16db774c3 /db
parentc4094b7ec4699811f928699ad67c90e1686da6e2 (diff)
downloadgitlab-ce-34be1835af2913c86bc468131e6bcbd530daf48d.tar.gz
[Multiple issue assignee] Fix a number of specs
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170320171632_create_issue_assignees_table.rb2
-rw-r--r--db/schema.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170320171632_create_issue_assignees_table.rb b/db/migrate/20170320171632_create_issue_assignees_table.rb
index 72b70baa8d9..23b8da37b6d 100644
--- a/db/migrate/20170320171632_create_issue_assignees_table.rb
+++ b/db/migrate/20170320171632_create_issue_assignees_table.rb
@@ -26,7 +26,7 @@ class CreateIssueAssigneesTable < ActiveRecord::Migration
# disable_ddl_transaction!
def up
- create_table :issue_assignees, id: false do |t|
+ create_table :issue_assignees do |t|
t.references :user, foreign_key: { on_delete: :cascade }, index: true, null: false
t.references :issue, foreign_key: { on_delete: :cascade }, null: false
end
diff --git a/db/schema.rb b/db/schema.rb
index 340d4064c02..7b960f79c1f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -452,7 +452,7 @@ ActiveRecord::Schema.define(version: 20170502091007) do
add_index "identities", ["user_id"], name: "index_identities_on_user_id", using: :btree
- create_table "issue_assignees", id: false, force: :cascade do |t|
+ create_table "issue_assignees", force: :cascade do |t|
t.integer "user_id", null: false
t.integer "issue_id", null: false
end