DEV: Minor fixes to b63b399799.

This commit is contained in:
Guo Xiang Tan 2019-01-10 09:38:22 +08:00
parent b63b399799
commit cb0f6d653b
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,10 @@
require_dependency 'distributed_cache'
class Category < ActiveRecord::Base
self.ignored_columns = %w{
uploaded_meta_id
}
include Searchable
include Positionable
include HasCustomFields

View File

@ -1,3 +1,5 @@
require 'migration/column_dropper'
class RemoveUploadedMetaIdFromCategory < ActiveRecord::Migration[5.2]
def up
Migration::ColumnDropper.execute_drop(:categories, %i{uploaded_meta_id})