Module: StandaloneMigrations
- Defined in:
- lib/standalone_migrations/tasks.rb,
lib/standalone_migrations/callbacks.rb,
lib/standalone_migrations/generator.rb,
lib/standalone_migrations/configurator.rb,
lib/standalone_migrations/minimal_railtie_config.rb
Defined Under Namespace
Classes: CacheMigrationGenerator, Configurator, Generator, InternalConfigurationsProxy, MinimalRailtieConfig, Tasks
Class Method Summary
collapse
Class Method Details
.on_loaded(&block) ⇒ Object
4
5
6
|
# File 'lib/standalone_migrations/callbacks.rb', line 4
def self.on_loaded(&block)
@@callbacks << block
end
|
.run_on_load_callbacks ⇒ Object
8
9
10
11
12
|
# File 'lib/standalone_migrations/callbacks.rb', line 8
def self.run_on_load_callbacks
@@callbacks.each do |callback|
callback.call
end
end
|