models: remove hack to ignore tsvector columns.

Previously we overrode `ActiveRecord::Base#columns` to make it ignore
tsvector columns so they wouldn't show up in API responses. These
columns have been removed, so this is no longer necessary.
This commit is contained in:
evazion
2022-01-07 11:23:53 -06:00
parent 53527b9b29
commit ea069c7b0d

View File

@@ -173,14 +173,6 @@ class ApplicationRecord < ActiveRecord::Base
end
end
concerning :PostgresExtensions do
class_methods do
def columns(*params)
super.reject {|x| x.sql_type == "tsvector"}
end
end
end
concerning :UserMethods do
class_methods do
def belongs_to_updater(**options)