Sha256: ee7aa50ecbe98ce755802582bf241e44cde198ab185a401d80ceeec2def25410
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
<div> <div id="erd_container"> <%=raw @erd %> </div> <div id="migration"> <%- if flash[:failed_migrations].present? -%> <div id="failed"> failed migrations <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[:version] %><%= 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
erd-0.1.2 | app/views/erd/erd/index.html.erb |
erd-0.1.1 | app/views/erd/erd/index.html.erb |
erd-0.1.0 | app/views/erd/erd/index.html.erb |