class WprofModelGenerator

Public Instance Methods

wprof_migrations() click to toggle source
# File lib/generators/wprof_model_generator.rb, line 3
def wprof_migrations
  making_wprof_migrations
end

Private Instance Methods

making_wprof_migrations() click to toggle source
# File lib/generators/wprof_model_generator.rb, line 9
def making_wprof_migrations
  generate 'model', 'WprofController transaction_id:string:index total_time:float start_dt:datetime end_dt:datetime code:integer:index controller:string url:string:index db_runtime:float'
  generate 'model', 'WprofService transaction_id:string:index total_time:float start_dt:datetime end_dt:datetime code:integer:index service_hostname:string:index request_uri:string:index'
  generate 'model', 'WprofMethod transaction_id:string:index total_time:float start_dt:datetime end_dt:datetime method:string:index'
end