Remove GUID as primary key in ppid table

This commit is contained in:
theworldbright 2015-09-13 15:03:55 -07:00
parent 21175e7eee
commit 4e18f3849d
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@ class CreatePairwisePseudonymousIdentifiers < ActiveRecord::Migration
t.belongs_to :o_auth_application, index: true t.belongs_to :o_auth_application, index: true
t.belongs_to :user, index: true t.belongs_to :user, index: true
t.primary_key :guid, :string, limit: 32 t.string :guid, :string, limit: 32
t.string :sector_identifier t.string :sector_identifier
end end
add_foreign_key :ppid, :o_auth_applications add_foreign_key :ppid, :o_auth_applications

View file

@ -465,6 +465,7 @@ ActiveRecord::Schema.define(version: 20150828132451) do
t.integer "o_auth_application_id", limit: 4 t.integer "o_auth_application_id", limit: 4
t.integer "user_id", limit: 4 t.integer "user_id", limit: 4
t.string "guid", limit: 32 t.string "guid", limit: 32
t.string "string", limit: 32
t.string "sector_identifier", limit: 255 t.string "sector_identifier", limit: 255
end end