Revert "DEV: Remove stale ignored_columns from models."

This reverts commit 9f5c8644d060b462395135bf7ea2a48f831e129d.

Have to revert because the ignored columns have not been dropped.
This commit is contained in:
Alan Guo Xiang Tan
2022-01-11 10:57:21 +08:00
parent c2afc3915b
commit 6fb89c153a
13 changed files with 51 additions and 0 deletions

View File

@ -1,6 +1,10 @@
# frozen_string_literal: true
class UserApiKey < ActiveRecord::Base
self.ignored_columns = [
"scopes" # TODO(2020-12-18): remove
]
REVOKE_MATCHER = RouteMatcher.new(actions: "user_api_keys#revoke", methods: :post, params: [:id])
belongs_to :user