Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibility with bootsnap #158

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generators/delayed_job/active_record_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ActiveRecordGenerator < ::DelayedJobGenerator
source_paths << File.join(File.dirname(__FILE__), "templates")

def create_migration_file
migration_template "migration.rb", "db/migrate/create_delayed_jobs.rb", migration_version: migration_version
migration_template "migration.rb.erb", "db/migrate/create_delayed_jobs.rb", migration_version: migration_version
end

def self.next_migration_number(dirname)
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/delayed_job/upgrade_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module DelayedJob
class UpgradeGenerator < ActiveRecordGenerator
def create_migration_file
migration_template(
"upgrade_migration.rb",
"upgrade_migration.rb.erb",
"db/migrate/add_queue_to_delayed_jobs.rb",
migration_version: migration_version
)
Expand Down
2 changes: 1 addition & 1 deletion spec/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
ActiveRecord::Base.logger = Delayed::Worker.logger
ActiveRecord::Migration.verbose = false

migration_template = File.open("lib/generators/delayed_job/templates/migration.rb")
migration_template = File.open("lib/generators/delayed_job/templates/migration.rb.erb")

# need to eval the template with the migration_version intact
migration_context =
Expand Down