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
21 22 23 24 25 26 27 28 29 |
# File 'lib/switchman_inst_jobs/active_record/migration.rb', line 21 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
14 15 16 17 18 19 |
# File 'lib/switchman_inst_jobs/active_record/migration.rb', line 14 def migrate(direction) ::ActiveRecord::Migration.open_migrations += 1 super ensure ::ActiveRecord::Migration.open_migrations -= 1 end |