lib/engines/plugin/migrator.rb
# 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)
    ActiveRecord::Base.connection.update(<<-ESQL
      UPDATE #{self.class.schema_info_table_name} 
      SET version = #{down? ? version.to_i - 1 : version.to_i} 
      WHERE plugin_name = '#{self.current_plugin.name}'
    ESQL
    )
  end
def record_version_state_after_migrating ( version ) ActiveRecord :: Base . connection . update ( <<-ESQL 
      UPDATE  #{ self . class . schema_info_table_name }  
      SET version =  #{ down? ? version . to_i - 1 : version . to_i }  
      WHERE plugin_name = ' #{ self . current_plugin . name } '
     ESQL ) 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