Class: RailsAsyncMigrations::Config
- Inherits:
-
Object
- Object
- RailsAsyncMigrations::Config
- Defined in:
- lib/rails_async_migrations/config.rb
Instance Attribute Summary collapse
-
#locked_methods ⇒ Object
Returns the value of attribute locked_methods.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 |
# File 'lib/rails_async_migrations/config.rb', line 7 def initialize @locked_methods = %i[change up down] @mode = :quiet # verbose, quiet @workers = :sidekiq # delayed_job, sidekiq end |
Instance Attribute Details
#locked_methods ⇒ Object
Returns the value of attribute locked_methods.
5 6 7 |
# File 'lib/rails_async_migrations/config.rb', line 5 def locked_methods @locked_methods end |
#mode ⇒ Object
Returns the value of attribute mode.
5 6 7 |
# File 'lib/rails_async_migrations/config.rb', line 5 def mode @mode end |
#workers ⇒ Object
Returns the value of attribute workers.
5 6 7 |
# File 'lib/rails_async_migrations/config.rb', line 5 def workers @workers end |