From fe660ba52bb9ad85883085dc88a77e5fccaf712a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 11 Nov 2013 10:27:58 -0500 Subject: [PATCH] FIX: in Rails 4, ActiveRecord::Base.descendants includes ActiveRecord::SchemaMigration for some reason. Exclude it from export. --- lib/export/export.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/export/export.rb b/lib/export/export.rb index f857bd45f..fb9d77fa8 100644 --- a/lib/export/export.rb +++ b/lib/export/export.rb @@ -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