<%= image_tag("/assets/erd/angle-right.png") %>
<%- if flash[:executed_migrations].present? -%>
Successfully executed following <%= flash[:executed_migrations].values.flatten.count %> migrations!
<%- [:up, :down].each do |direction| -%>
<%- if flash[:executed_migrations][direction].present? -%>
<%= direction %>
<%- flash[:executed_migrations][direction].each do |m| -%>
- <%= File.basename m.to_s %>
<%- end -%>
<%- end -%>
<%- end -%>
<%- end -%>
<%- if flash[:failed_migrations].present? -%>
failed migrations
<%- flash[:failed_migrations].each do |m| -%>
- <%= m %>
<%- end -%>
<%- end -%>
schema changes
action | model | column | from | to |
<%= form_tag '/erd', :method => :put, :id => 'changes_form' do %>
<%= hidden_field_tag 'changes' %>
<%= submit_tag 'save changes' %>
<% end %>
<%= form_tag '/erd/migrate', :method => :put, :id => 'migrate_form' do %>
migration status
status | version | name |
<%= @migrations.count %> migrations in total (up: <%= @migrations.count {|m| m[:status] == 'up'} %>, down: <%= @migrations.count {|m| m[:status] == 'down'} %>)
|
<%- @migrations.each do |m| -%>
|
<%= m[:version] %> |
<%= m[:name] %> |
<%- end -%>
<%= submit_tag 'run migrations' %>
<% end %>