Class: ActualDbSchema::SchemaDiffHtml
- Inherits:
-
SchemaDiff
- Object
- SchemaDiff
- ActualDbSchema::SchemaDiffHtml
- Defined in:
- lib/actual_db_schema/schema_diff_html.rb
Overview
Generates an HTML representation of the schema diff, annotated with the migrations responsible for each change.
Constant Summary
Constants inherited from SchemaDiff
ActualDbSchema::SchemaDiff::CHANGE_PATTERNS, ActualDbSchema::SchemaDiff::SIGN_COLORS
Constants included from OutputFormatter
OutputFormatter::UNICODE_COLORS
Instance Method Summary collapse
Methods inherited from SchemaDiff
Methods included from OutputFormatter
Constructor Details
This class inherits a constructor from ActualDbSchema::SchemaDiff
Instance Method Details
#render_html(table_filter) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/actual_db_schema/schema_diff_html.rb', line 7 def render_html(table_filter) return unless old_schema_content && !old_schema_content.strip.empty? @full_diff_html ||= generate_diff_html filter = table_filter.to_s.strip.downcase filter.empty? ? @full_diff_html : extract_table_section(@full_diff_html, filter) end |