diff --git a/lib/railroady/diagram_graph.rb b/lib/railroady/diagram_graph.rb index e139d22..49794a8 100644 --- a/lib/railroady/diagram_graph.rb +++ b/lib/railroady/diagram_graph.rb @@ -63,7 +63,7 @@ def dot_label "label=\"#{@diagram_type} diagram\\l" \ "Date: #{Time.now.strftime '%b %d %Y - %H:%M'}\\l" + (defined?(ActiveRecord::Migrator) ? 'Migration version: ' \ - "#{ActiveRecord::Migrator.current_version}\\l" : '') + + "#{Rails.logger.silence { ActiveRecord::Migrator.current_version } }\\l" : '') + "Generated by #{APP_HUMAN_NAME} #{APP_VERSION}\\l" + 'http://railroady.prestonlee.com' \ "\\l\", fontsize=13]\n" end