Module: Departure::Migration::ClassMethods
- Defined in:
- lib/departure/migration.rb
Instance Method Summary collapse
-
#disable_departure! ⇒ Object
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).
-
#uses_departure! ⇒ Object
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.
Instance Method Details
#disable_departure! ⇒ Object
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).
36 37 38 |
# File 'lib/departure/migration.rb', line 36 def disable_departure! self.uses_departure = false end |
#uses_departure! ⇒ Object
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.
29 30 31 |
# File 'lib/departure/migration.rb', line 29 def uses_departure! self.uses_departure = true end |