Sha256: a630ed90d6ef2c71965617b6fd79846ef947149219cf6787e6e7219be00b1e02
Contents?: true
Size: 715 Bytes
Versions: 11
Compression:
Stored size: 715 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
11 entries across 11 versions & 1 rubygems