module Departure::Migration::ClassMethods

Public Instance Methods

disable_departure!() click to toggle source

Declare `disable_departure!` in the class body of your migration to disable Departure for that migration only (when Departure.configuration.enabled_by_default is true, the default).

# File lib/departure/migration.rb, line 36
def disable_departure!
  self.uses_departure = false
end
uses_departure!() click to toggle source

Declare `uses_departure!` in the class body of your migration to enable Departure for that migration only when Departure.configuration.enabled_by_default is false.

# File lib/departure/migration.rb, line 29
def uses_departure!
  self.uses_departure = true
end