diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170320171632_create_issue_assignees_table.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
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 |