Class: RailsAsyncMigrations::Mutators::TurnAsync
- Defined in:
- lib/rails_async_migrations/mutators/turn_async.rb
Instance Attribute Summary collapse
-
#migration_class ⇒ Object
readonly
Returns the value of attribute migration_class.
Instance Method Summary collapse
-
#initialize(migration_class) ⇒ TurnAsync
constructor
A new instance of TurnAsync.
- #perform ⇒ Object
Constructor Details
#initialize(migration_class) ⇒ TurnAsync
Returns a new instance of TurnAsync.
6 7 8 |
# File 'lib/rails_async_migrations/mutators/turn_async.rb', line 6 def initialize(migration_class) @migration_class = migration_class end |
Instance Attribute Details
#migration_class ⇒ Object (readonly)
Returns the value of attribute migration_class.
4 5 6 |
# File 'lib/rails_async_migrations/mutators/turn_async.rb', line 4 def migration_class @migration_class end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 |
# File 'lib/rails_async_migrations/mutators/turn_async.rb', line 10 def perform Tracer.new.verbose '`turn_async` has been triggered' alter_migration end |