Skip to content

Commit

Permalink
Fix bug with Rails 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Dec 27, 2018
1 parent 873e520 commit d55bb74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/active_record/annotate/dumper.rb
Expand Up @@ -16,7 +16,11 @@ def dump(table_name, connection = ActiveRecord::Base.connection)

private
def dumper(connection)
ActiveRecord::SchemaDumper.send(:new, connection)
if connection.respond_to?(:create_schema_dumper)
connection.create_schema_dumper(generate_options(config))
else
ActiveRecord::SchemaDumper.send(:new, connection)
end
end

def process_annotation(string_io)
Expand Down

0 comments on commit d55bb74

Please sign in to comment.