Use bigserial for internal_ids table.

This commit is contained in:
Andreas Brandl 2018-03-12 18:12:38 +01:00
parent b1c7ee37ea
commit 3a8207a961
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ class CreateInternalIdsTable < ActiveRecord::Migration
disable_ddl_transaction!
def up
create_table :internal_ids do |t|
create_table :internal_ids, id: :bigserial do |t|
t.references :project
t.integer :usage, null: false
t.integer :last_value, null: false

View File

@ -866,7 +866,7 @@ ActiveRecord::Schema.define(version: 20180309160427) do
add_index "identities", ["user_id"], name: "index_identities_on_user_id", using: :btree
create_table "internal_ids", force: :cascade do |t|
create_table "internal_ids", id: :bigserial, force: :cascade do |t|
t.integer "project_id"
t.integer "usage", null: false
t.integer "last_value", null: false