<%=raw @erd %>
<%= image_tag '/erd/angle-left.png' %>
<%= image_tag '/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
actionmodelcolumnfromto
<%= form_tag '/erd', :method => :put, :id => 'changes_form' do %> <%= hidden_field_tag 'changes' %> <%= hidden_field_tag 'position_changes' %> <%= submit_tag 'save changes' %> <% end %> <%= form_tag '/erd/migrate', :method => :put, :id => 'migrate_form' do %> <%- @migrations.each do |m| -%> <%- end -%>
migration status
statusversionname
<%= @migrations.count %> migrations in total (up: <%= @migrations.count {|m| m[:status] == 'up'} %>, down: <%= @migrations.count {|m| m[:status] == 'down'} %>)
<%= m[:version] %> <%= m[:name] %>
<%= submit_tag 'run migrations' %> <% end %>
Create Model
Model Name:
:
Add More Column