class Pghero::Generators::QueryStatsGenerator

Public Instance Methods

copy_migration() click to toggle source
# File lib/generators/pghero/query_stats_generator.rb, line 10
def copy_migration
  migration_template "query_stats.rb", "db/migrate/create_pghero_query_stats.rb", migration_version: migration_version
end
migration_version() click to toggle source
# File lib/generators/pghero/query_stats_generator.rb, line 14
def migration_version
  "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
end