FIX: in Rails 4, ActiveRecord::Base.descendants includes ActiveRecord::SchemaMigration for some reason. Exclude it from export.

This commit is contained in:
Neil Lalonde 2013-11-11 10:27:58 -05:00
parent 428fcb9841
commit fe660ba52b

View file

@ -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