Module: SeedMigrator::ActiveRecordMigrationCompatible
- Included in:
- Updater
- Defined in:
- lib/seed_migrator/updater.rb
Overview
Adds support for methods which are part of ActiveRecord::Migration interface. This is a convenience feature to make using data updates easier. The module should only implement methods relevant in the context of data
updates.
Instance Method Summary collapse
Instance Method Details
#execute(*args, &block) ⇒ Object
12 13 14 |
# File 'lib/seed_migrator/updater.rb', line 12 def execute(*args, &block) ::ActiveRecord::Base.connection.execute(*args, &block) end |