Sha256: 9e0dbc11476fafddaa96fee4a00f82c6024757e8a29a01ef8db6e1252301f26e

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

h3
  | Current database schema
  small= "Version #{schema_version}"

ul.list-unstyled.tables
  - @ar_classes.each do |ar_class|
    - first_record = ar_class.unscoped.order(:id).first

    li.ar_class data-table-name=ar_class.table_name
      table.table.table-striped.table-hover.table-bordered
        caption
          span.name= ar_class.table_name
          small.count #{ar_class.unscoped.count} rows
        thead
          tr
            th.col-sm-1.pk PK
            th.col-sm-2.name  Name
            th.col-sm-1.type  Type
            th.col-sm-1.null  Non-Null
            th.col-sm-1.limit Limit
            th.col-sm-2.default  Default
            th.col-sm-4.data  unscoped.first
        tbody
          - ar_class.columns.each do |column|
            tr
              td.pk.icon= column.primary ? icon_fa('check-circle') : ''
              td.monospace= column.name
              td= column.type
              td.null.icon= column.null ? '' : icon_fa('check')
              td.limit.number= column.limit
              td= column.default
              td.monospace= first_record.try {|r| truncate(r.read_attribute_before_type_cast(column.name).to_s, length: 50) }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhoq-0.0.3 app/views/adhoq/current_tables/index.html.slim