schema.html.erb 475 B

123456789101112131415161718
  1. <% @schema.each do |table| %>
  2. <h4>
  3. <%= table[:table] %>
  4. <% if table[:schema] != "public" %>
  5. <small><%= table[:schema] %></small>
  6. <% end %>
  7. </h4>
  8. <table class="table" style="max-width: 500px;">
  9. <tbody>
  10. <% table[:columns].each do |column| %>
  11. <tr>
  12. <td style="width: 60%;"><%= column[:name] %></td>
  13. <td class="text-muted"><%= column[:data_type] %></td>
  14. </tr>
  15. <% end %>
  16. </tbody>
  17. </table>
  18. <% end %>