Commit 56813c7f authored by James Lopez's avatar James Lopez

Update migration to use encryption

parent 5fca26fa
......@@ -2777,8 +2777,8 @@ ActiveRecord::Schema.define(version: 20190305162221) do
t.datetime_with_timezone "created_at", null: false
t.datetime_with_timezone "updated_at", null: false
t.integer "group_id", null: false
t.string "token", null: false
t.index ["group_id", "token"], name: "index_scim_oauth_access_tokens_on_group_id_and_token", unique: true, using: :btree
t.string "token_encrypted", null: false
t.index ["group_id", "token_encrypted"], name: "index_scim_oauth_access_tokens_on_group_id_and_token_encrypted", unique: true, using: :btree
end
create_table "sent_notifications", force: :cascade do |t|
......
# frozen_string_literal: true
class CreateScimOauthAccessTokens < ActiveRecord::Migration[5.0]
DOWNTIME = false
......@@ -5,9 +7,9 @@ class CreateScimOauthAccessTokens < ActiveRecord::Migration[5.0]
create_table :scim_oauth_access_tokens do |t|
t.timestamps_with_timezone null: false
t.references :group, null: false, index: false
t.string "token", null: false
t.string :token_encrypted, null: false
t.index [:group_id, :token], unique: true
t.index [:group_id, :token_encrypted], unique: true
t.foreign_key :namespaces, column: :group_id, on_delete: :cascade
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment