We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12903d9 commit e5d0acaCopy full SHA for e5d0aca
lib/rails_stats/json_formatter.rb
@@ -48,11 +48,16 @@ def stat_hash(name, statistics)
48
def schema_info
49
if File.exist?(calculator.schema_path)
50
{
51
- "schema_stats" => calculator.schema,
52
- "create_table_calls" => calculator.create_table_calls
+ "schema_path" => calculator.schema_path,
+ "create_table calls count" => calculator.schema,
53
+ }
54
+ elsif File.exist?(calculator.structure_path)
55
+ {
56
+ "structure_path" => calculator.structure_path,
57
+ "create_table calls count" => calculator.schema
58
}
59
else
- { "schema_stats" => "No schema.rb file found" }
60
+ { "schema_stats" => "No schema.rb or structure.sql file found" }
61
end
62
63
0 commit comments