Skip to content

Commit

Permalink
[CP] Add index to External ID
Browse files Browse the repository at this point in the history
  • Loading branch information
CapCap authored and aptos-bot committed Jun 3, 2022
1 parent fed698f commit cc1db02
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ecosystem/platform/server/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Metrics/AbcSize:
Style/Copyright:
Enabled: true
Notice: '^# Copyright \(c\) Aptos'
AutocorrectNotice: "# Copyright (c) Aptos\n# SPDX-License-Identifier: Apache-2.0"
AutocorrectNotice: "# Copyright (c) Aptos\n# SPDX-License-Identifier: Apache-2.0\n"

Lint/MissingSuper:
Exclude:
Expand Down
1 change: 1 addition & 0 deletions ecosystem/platform/server/app/helpers/node_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def metric_line_to_json(line)
[key, value, params]
end

module NodeHelper
class NodeVerifier
include Logging::Logs

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

# Copyright (c) Aptos
# SPDX-License-Identifier: Apache-2.0

class AddIndexesToUsers < ActiveRecord::Migration[7.0]
def change
add_index :users, :external_id
add_index :users, :current_sign_in_ip
add_index :users, :last_sign_in_ip
end
end
14 changes: 4 additions & 10 deletions ecosystem/platform/server/db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc1db02

Please sign in to comment.