Skip to content

Commit

Permalink
Mention config.background_migrations.migrations_module in the initi…
Browse files Browse the repository at this point in the history
…alizer template
  • Loading branch information
fatkodima committed Jan 17, 2024
1 parent aa39e66 commit 22629cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/generators/online_migrations/templates/initializer.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ OnlineMigrations.configure do |config|
# end

# ==> Background migrations configuration

# The module in which background migrations will be placed.
# config.background_migrations.migrations_module = "OnlineMigrations::BackgroundMigrations"

# The number of rows to process in a single background migration run.
# config.background_migrations.batch_size = 20_000

Expand Down
2 changes: 1 addition & 1 deletion lib/online_migrations/background_migrations/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module OnlineMigrations
module BackgroundMigrations
# Class representing configuration options for background migrations.
class Config
# The module to namespace background migrations in
# The module in which background migrations will be placed
# @return [String] defaults to "OnlineMigrations::BackgroundMigrations"
attr_accessor :migrations_module

Expand Down

0 comments on commit 22629cc

Please sign in to comment.