class MigratorTest::Sensor

Use this class to sense if migrations have gone up or down.

Attributes

went_down[R]
went_up[R]

Public Class Methods

new(name = self.class.name, version = nil) click to toggle source
Calls superclass method ActiveRecord::Migration::new
# File activerecord/test/cases/migrator_test.rb, line 14
def initialize(name = self.class.name, version = nil)
  super
  @went_up = false
  @went_down = false
end

Public Instance Methods

down() click to toggle source
# File activerecord/test/cases/migrator_test.rb, line 21
def down; @went_down = true; end
up() click to toggle source
# File activerecord/test/cases/migrator_test.rb, line 20
def up; @went_up = true; end