Skip to content

Commit

Permalink
FIX: in Rails 4, ActiveRecord::Base.descendants includes ActiveRecord…
Browse files Browse the repository at this point in the history
…::SchemaMigration for some reason. Exclude it from export.
  • Loading branch information
nlalonde committed Nov 11, 2013
1 parent 428fcb9 commit fe660ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/export/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.current_schema_version
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

Expand Down

0 comments on commit fe660ba

Please sign in to comment.