vendor/plugins/engines/lib/engines/plugin/migrator.rb
def record_version_state_after_migrating(version)
    sm_table = self.class.schema_migrations_table_name
    if down?
      ActiveRecord::Base.connection.update(%Q(
        DELETE FROM #{sm_table} 
        WHERE plugin_name = '#{self.current_plugin.name}' AND version = '#{version}'))
    else
      ActiveRecord::Base.connection.insert(%Q(
        INSERT INTO #{sm_table} (plugin_name, version) 
        VALUES ('#{self.current_plugin.name}', '#{version}')))
    end
  end
# Sets the version of the plugin in Engines::Plugin::Migrator.current_plugin to
# the given version.
Sets the version of the plugin in Engines::Plugin::Migrator.current_plugin to
the given version.
Sets the version of the plugin in Engines :: Plugin :: Migrator . current_plugin to the given version .
def record_version_state_after_migrating(version)
    sm_table = self.class.schema_migrations_table_name
    if down?
      ActiveRecord::Base.connection.update(%Q(
        DELETE FROM #{sm_table} 
        WHERE plugin_name = '#{self.current_plugin.name}' AND version = '#{version}'))
    else
      ActiveRecord::Base.connection.insert(%Q(
        INSERT INTO #{sm_table} (plugin_name, version) 
        VALUES ('#{self.current_plugin.name}', '#{version}')))
    end
  end
def record_version_state_after_migrating ( version ) sm_table = self . class . schema_migrations_table_name if down? ActiveRecord :: Base . connection . update ( %Q(
        DELETE FROM #{sm_table} 
        WHERE plugin_name = '#{self.current_plugin.name}' AND version = '#{version}') ) else ActiveRecord :: Base . connection . insert ( %Q(
        INSERT INTO #{sm_table} (plugin_name, version) 
        VALUES ('#{self.current_plugin.name}', '#{version}')) ) end end
Sets the version of the plugin in Engines::Plugin::Migrator.current_plugin to
the given version.
Sets the version of the plugin in Engines :: Plugin :: Migrator . current_plugin to the given version .
version