Sha256: 809365b664a7f854eda713ffba7efa26b982024204b8e16e97efce3e8ccd6e80
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
<div id="erd_box"> <div id="erd_container"> <%=raw @erd %> </div> <div id="migration"> <%- if flash[:executed_migrations].present? -%> <div id="executed"> <h2>Successfully executed the following migrations!</h2> <%- [:up, :down].each do |direction| -%> <%- if flash[:executed_migrations][direction].present? -%> <h3><%= direction %></h3> <ul> <%- flash[:executed_migrations][direction].each do |m| -%> <li><%= m %></li> <%- end -%> </ul> <%- end -%> <%- end -%> </div> <%- end -%> <%- if flash[:failed_migrations].present? -%> <div id="failed"> <h2>failed migrations</h2> <ul> <%- flash[:failed_migrations].each do |m| -%> <li><%= m %></li> <%- end -%> </ul> </div> <%- end -%> <table id="changes"> <caption>schema changes</caption> <thead><tr><th>action</th><th>model</th><th>column</th><th>from</th><th>to</th></tr></thead> <tbody></tbody> </table> <%= form_tag '/erd', :method => :put, :id => 'changes_form' do %> <%= hidden_field_tag 'changes' %> <%= submit_tag 'save changes' %> <% end %> <%= form_tag '/erd/migrate', :method => :put do %> <table> <caption>migration status</caption> <thead><tr><th>status</th><th>version</th><th>name</th></tr></thead> <tbody> <%- @migrations.each do |m| -%> <tr><td><label><%= check_box_tag (m[:status] == 'up' ? 'down[]' : 'up[]'), m[:filename] %><%= m[:status] %></label></td><td><%= m[:version] %></td><td><%= m[:name] %></td></tr> <%- end -%> </tbody> </table> <%= submit_tag 'run migrations' %> <% end %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erd-0.1.5 | app/views/erd/erd/index.html.erb |