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 d4bb309 commit c36fc65Copy full SHA for c36fc65
lib/rails_stats/json_formatter.rb
@@ -56,11 +56,16 @@ def stat_hash(name, statistics)
56
def schema_info
57
if File.exist?(calculator.schema_path)
58
{
59
- "schema_stats" => calculator.schema,
60
- "create_table_calls" => calculator.create_table_calls
+ "schema_path" => calculator.schema_path,
+ "create_table calls count" => calculator.schema,
61
+ }
62
+ elsif File.exist?(calculator.structure_path)
63
+ {
64
+ "structure_path" => calculator.structure_path,
65
+ "create_table calls count" => calculator.schema
66
}
67
else
- { "schema_stats" => "No schema.rb file found" }
68
+ { "schema_stats" => "No schema.rb or structure.sql file found" }
69
end
70
71
0 commit comments