Sha256: 1dd2a603a6eae55f4042d1e2c983be4aacc791421410e8bf209bd1ecb83eb909
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
require 'rails/generators' module Sidejobs module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_initializer_file copy_file 'initializer.rb', 'config/initializers/sidejobs.rb' end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_sidejobs.rb' end def self.next_migration_number(path) Time.now.utc.strftime '%Y%m%d%H%M%S' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidejobs-4.0.0.0 | lib/generators/sidejobs/install/install_generator.rb |