Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 6 deletions.
  1. +7 −5 app/views/erd/erd/index.html.erb
  2. +1 −1 lib/erd/version.rb
View
12 app/views/erd/erd/index.html.erb
@@ -8,12 +8,14 @@
<div id="executed">
<h2>Successfully executed the following migrations!</h2>
<%- [:up, :down].each do |direction| -%>
- <h3><%= direction %></h3>
- <ul>
- <%- flash[:executed_migrations][direction].each do |m| -%>
- <li><%= m %></li>
+ <%- if flash[:executed_migrations][direction].present? -%>
+ <h3><%= direction %></h3>
+ <ul>
+ <%- flash[:executed_migrations][direction].each do |m| -%>
+ <li><%= m %></li>
+ <%- end -%>
+ </ul>
<%- end -%>
- </ul>
<%- end -%>
</div>
<%- end -%>
View
2 lib/erd/version.rb
@@ -1,3 +1,3 @@
module Erd
- VERSION = '0.1.4'
+ VERSION = '0.1.5'
end

No commit comments for this range

Something went wrong with that request. Please try again.