mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
DEV: Minor fixes to b63b3997999bfbee9b8eac0dd1ba87b24325f840.
This commit is contained in:
@ -3,6 +3,10 @@
|
|||||||
require_dependency 'distributed_cache'
|
require_dependency 'distributed_cache'
|
||||||
|
|
||||||
class Category < ActiveRecord::Base
|
class Category < ActiveRecord::Base
|
||||||
|
self.ignored_columns = %w{
|
||||||
|
uploaded_meta_id
|
||||||
|
}
|
||||||
|
|
||||||
include Searchable
|
include Searchable
|
||||||
include Positionable
|
include Positionable
|
||||||
include HasCustomFields
|
include HasCustomFields
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
require 'migration/column_dropper'
|
||||||
|
|
||||||
class RemoveUploadedMetaIdFromCategory < ActiveRecord::Migration[5.2]
|
class RemoveUploadedMetaIdFromCategory < ActiveRecord::Migration[5.2]
|
||||||
def up
|
def up
|
||||||
Migration::ColumnDropper.execute_drop(:categories, %i{uploaded_meta_id})
|
Migration::ColumnDropper.execute_drop(:categories, %i{uploaded_meta_id})
|
||||||
|
Reference in New Issue
Block a user