Module: SwitchmanInstJobs::ActiveRecord::Migration
- Defined in:
- lib/switchman_inst_jobs/active_record/migration.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#copy(destination, sources, options = {}) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/switchman_inst_jobs/active_record/migration.rb', line 23 def copy(destination, sources, = {}) if sources.delete("delayed_engine") # rubocop:disable Rails/Output puts "NOTE: Not installing delayed_engine migrations in an application using switchman-inst-jobs" puts "(use rake switchman_inst_jobs:install:migrations instead)" # rubocop:enable Rails/Output end super end |
#migrate(direction) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/switchman_inst_jobs/active_record/migration.rb', line 16 def migrate(direction) ::ActiveRecord::Migration.open_migrations += 1 super ensure ::ActiveRecord::Migration.open_migrations -= 1 end |