Sha256: 6baf2fde06d71349e6ff2286ad969cd024bb9d1199f84a6c5af119552358d19c
Contents?: true
Size: 719 Bytes
Versions: 14
Compression:
Stored size: 719 Bytes
Contents
module BuilderApm module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('templates', __dir__) def self.next_migration_number(dirname) Time.now.utc.strftime("%Y%m%d%H%M%S") end def copy_migrations # migration_template "create_builder_apm_requests.rb", "db/migrate/create_builder_apm_requests.rb" # migration_template "create_builder_apm_sql_queries.rb", "db/migrate/create_builder_apm_sql_queries.rb" end def copy_initializer_file copy_file 'builder_apm_config.rb', 'config/initializers/builder_apm.rb' end end end end
Version data entries
14 entries across 14 versions & 1 rubygems