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
|
||||
@models_included_in_export ||= begin
|
||||
Rails.application.eager_load! # So that all models get loaded now
|
||||
ActiveRecord::Base.descendants
|
||||
ActiveRecord::Base.descendants - [ActiveRecord::SchemaMigration]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue