Class: ActiveRecord::Migration::ReversibleBlockHelper
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::Migration::ReversibleBlockHelper
- Defined in:
- lib/migration_revert/ext/migration.rb
Instance Attribute Summary collapse
-
#reverting ⇒ Object
Returns the value of attribute reverting.
Instance Method Summary collapse
Instance Attribute Details
#reverting ⇒ Object
Returns the value of attribute reverting
62 63 64 |
# File 'lib/migration_revert/ext/migration.rb', line 62 def reverting @reverting end |
Instance Method Details
#down ⇒ Object
67 68 69 |
# File 'lib/migration_revert/ext/migration.rb', line 67 def down yield if reverting end |
#up ⇒ Object
63 64 65 |
# File 'lib/migration_revert/ext/migration.rb', line 63 def up yield unless reverting end |