mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 03:09:43 +00:00
FIX: in Rails 4, ActiveRecord::Base.descendants includes ActiveRecord::SchemaMigration for some reason. Exclude it from export.
This commit is contained in:
parent
428fcb9841
commit
fe660ba52b
@ -12,7 +12,7 @@ module Export
|
|||||||
def self.models_included_in_export
|
def self.models_included_in_export
|
||||||
@models_included_in_export ||= begin
|
@models_included_in_export ||= begin
|
||||||
Rails.application.eager_load! # So that all models get loaded now
|
Rails.application.eager_load! # So that all models get loaded now
|
||||||
ActiveRecord::Base.descendants
|
ActiveRecord::Base.descendants - [ActiveRecord::SchemaMigration]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user