lib/fixture_fox/idr.rb in fixture_fox-0.2.6 vs lib/fixture_fox/idr.rb in fixture_fox-0.2.7

- old
+ new

@@ -7,11 +7,11 @@ def tables() @tables_hash.keys end # List of materialized views that depends on the tables. Assigned by the analyzer # FIXME: Is this in use? attr_accessor :materialized_views - + # Data as a hash from schema to table to id to record to field to value. # Ie. { "schema" => { "table" => { 1 => { id: 1, name: "Alice" } } } } attr_reader :data # Map from qualified table name to last used ID. FIXME: Unused? @@ -47,10 +47,10 @@ alias_method :to_h, :data def dump data.sort_by(&:first).each { |schema, tables| puts schema - tables.each { |table, records| + tables.each { |table, records| puts " #{table}" records.each { |id, fields| puts " #{fields.inspect}" } }