Class: SolidQueue::UpdateGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/solid_queue/update/update_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_new_migrationsObject



13
14
15
16
17
18
# File 'lib/generators/solid_queue/update/update_generator.rb', line 13

def copy_new_migrations
  Dir.glob(File.join(self.class.source_root, "db", "*.rb")).each do |migration_file|
    name = File.basename(migration_file)
    migration_template File.join("db", name), File.join(db_migrate_path, name), skip: true
  end
end